Class: EideticPDF::PdfObjects::PdfPages
- Inherits:
-
PdfPageBase
- Object
- IndirectObject
- PdfDictionaryObject
- PdfPageBase
- EideticPDF::PdfObjects::PdfPages
- Defined in:
- lib/epdfo.rb
Overview
collection of pages
Instance Attribute Summary collapse
-
#kids ⇒ Object
readonly
array of refs to PdfPageBase.
Attributes inherited from IndirectObject
Instance Method Summary collapse
-
#initialize(seq, gen, parent = nil) ⇒ PdfPages
constructor
A new instance of PdfPages.
- #to_s ⇒ Object
Methods inherited from PdfPageBase
#additional_actions=, #crop_box=, #duration=, #hidden=, #media_box=, #resources=, #rotate=, #transition=
Methods inherited from PdfDictionaryObject
Methods inherited from IndirectObject
#body, #footer, #header, #reference_object, #reference_string
Constructor Details
Instance Attribute Details
#kids ⇒ Object (readonly)
array of refs to PdfPageBase
800 801 802 |
# File 'lib/epdfo.rb', line 800 def kids @kids end |
Instance Method Details
#to_s ⇒ Object
808 809 810 811 812 |
# File 'lib/epdfo.rb', line 808 def to_s dictionary['Count'] = PdfInteger.new(@kids.size) dictionary['Kids'] = PdfArray.new(@kids.map { |page| page.reference_object }) super end |