class Origami::PDF::Revision

Class representing a particular revision in a PDF file. Revision contains :

Attributes

body[RW]
pdf[RW]
trailer[R]
xrefstm[RW]
xreftable[RW]

Public Class Methods

new(doc) click to toggle source
# File lib/origami/pdf.rb, line 86
def initialize(doc)
    @document = doc
    @body = {}
    @xreftable = nil
    @xrefstm = nil
    @trailer = nil
end

Public Instance Methods

each_object(&b) click to toggle source
# File lib/origami/pdf.rb, line 108
def each_object(&b)
    @body.each_value(&b)
end
has_xrefstm?() click to toggle source
# File lib/origami/pdf.rb, line 104
def has_xrefstm?
    not @xrefstm.nil?
end
has_xreftable?() click to toggle source
# File lib/origami/pdf.rb, line 100
def has_xreftable?
    not @xreftable.nil?
end
objects() click to toggle source
# File lib/origami/pdf.rb, line 112
def objects
    @body.values
end
trailer=(trl) click to toggle source
# File lib/origami/pdf.rb, line 94
def trailer=(trl)
    trl.document = @document

    @trailer = trl
end