Method: PDF::Reader::Page#raw_content

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

#raw_contentObject

returns the raw content stream for this page. This is plumbing, nothing to see here unless you’re a PDF nerd like me.



117
118
119
120
121
122
123
124
# File 'lib/pdf/reader/page.rb', line 117

def raw_content
  contents = objects.deref(@page_object[:Contents])
  [contents].flatten.compact.map { |obj|
    objects.deref(obj)
  }.map { |obj|
    obj.unfiltered_data
  }.join(" ")
end