Class: EideticPDF::PdfObjects::PdfPageBase

Inherits:
PdfDictionaryObject show all
Defined in:
lib/epdfo.rb

Overview

common elements between a page and a collection of pages

Direct Known Subclasses

PdfPage, PdfPages

Instance Attribute Summary

Attributes inherited from IndirectObject

#gen, #seq

Instance Method Summary collapse

Methods inherited from PdfDictionaryObject

#body, #dictionary

Methods inherited from IndirectObject

#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)
  # parent: IndirectObjectRef
  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)
  # additional_actions: hash
  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)
  # crop_box: Rectangle
  dictionary['CropBox'] = crop_box
end

#duration=(duration) ⇒ Object



739
740
741
742
# File 'lib/epdfo.rb', line 739

def duration=(duration)
  # duration: integer or float
  dictionary['Dur'] = PdfNumber.new(duration)
end

#hidden=(hidden) ⇒ Object



744
745
746
747
# File 'lib/epdfo.rb', line 744

def hidden=(hidden)
  # hidden: boolean
  dictionary['Hid'] = PdfBoolean.new(hidden)
end

#media_box=(media_box) ⇒ Object



719
720
721
722
# File 'lib/epdfo.rb', line 719

def media_box=(media_box)
  # media_box: Rectangle
  dictionary['MediaBox'] = media_box
end

#resources=(resources) ⇒ Object



724
725
726
727
# File 'lib/epdfo.rb', line 724

def resources=(resources)
  # resources: IndirectObjectRef
  dictionary['Resources'] = resources.reference_object
end

#rotate=(rotate) ⇒ Object



734
735
736
737
# File 'lib/epdfo.rb', line 734

def rotate=(rotate)
  # rotate: integer
  dictionary['Rotate'] = PdfInteger.new(rotate)
end

#transition=(transition) ⇒ Object



749
750
751
752
# File 'lib/epdfo.rb', line 749

def transition=(transition)
  # transition: hash
  dictionary['Trans'] = PdfDictionary.new(transition)
end