Method: PDF::Reader::Content#initialize

Defined in:
lib/pdf/reader/content.rb

#initialize(receiver, xref) ⇒ Content

Create a new PDF::Reader::Content object to process the contents of PDF file

  • receiver - an object containing the required callback methods

  • xref - a PDF::Reader::Xref object that contains references to all the objects in a PDF file



249
250
251
252
253
# File 'lib/pdf/reader/content.rb', line 249

def initialize (receiver, xref)
  @receiver = receiver
  @xref     = xref
  @fonts ||= {}
end