Method: CombinePDF.parse

Defined in:
lib/combine_pdf.rb

.parse(data) ⇒ Object

Create a PDF object from a raw PDF data (parsing the data).

data

is a string that represents the content of a PDF file.

Raises:



168
169
170
171
# File 'lib/combine_pdf.rb', line 168

def parse(data)
  raise TypeError, "couldn't parse and data, expecting type String" unless data.is_a? String
  PDF.new( PDFParser.new(data) )
end