Class: EideticPDF::PdfObjects::PdfPageBase
Overview
common elements between a page and a collection of pages
Instance Attribute Summary
#gen, #seq
Instance Method Summary
collapse
#body, #dictionary
#body, #footer, #header, #reference_object, #reference_string, #to_s
Constructor Details
#initialize(seq, gen, parent = nil) ⇒ PdfPageBase
Returns a new instance of PdfPageBase.
713
714
715
716
717
|
# File 'lib/epdfo.rb', line 713
def initialize(seq, gen, parent=nil)
super(seq, gen)
dictionary['Parent'] = parent.reference_object unless parent.nil?
end
|
Instance Method Details
#additional_actions=(additional_actions) ⇒ Object
754
755
756
757
|
# File 'lib/epdfo.rb', line 754
def additional_actions=(additional_actions)
dictionary['AA'] = PdfDictionary.new(additional_actions)
end
|
#crop_box=(crop_box) ⇒ Object
729
730
731
732
|
# File 'lib/epdfo.rb', line 729
def crop_box=(crop_box)
dictionary['CropBox'] = crop_box
end
|
#duration=(duration) ⇒ Object
739
740
741
742
|
# File 'lib/epdfo.rb', line 739
def duration=(duration)
dictionary['Dur'] = PdfNumber.new(duration)
end
|
#hidden=(hidden) ⇒ Object
744
745
746
747
|
# File 'lib/epdfo.rb', line 744
def hidden=(hidden)
dictionary['Hid'] = PdfBoolean.new(hidden)
end
|
719
720
721
722
|
# File 'lib/epdfo.rb', line 719
def media_box=(media_box)
dictionary['MediaBox'] = media_box
end
|
#resources=(resources) ⇒ Object
724
725
726
727
|
# File 'lib/epdfo.rb', line 724
def resources=(resources)
dictionary['Resources'] = resources.reference_object
end
|
#rotate=(rotate) ⇒ Object
734
735
736
737
|
# File 'lib/epdfo.rb', line 734
def rotate=(rotate)
dictionary['Rotate'] = PdfInteger.new(rotate)
end
|
#transition=(transition) ⇒ Object
749
750
751
752
|
# File 'lib/epdfo.rb', line 749
def transition=(transition)
dictionary['Trans'] = PdfDictionary.new(transition)
end
|