Class: Origami::FDF::Parser
Constant Summary
Constants inherited from Parser
Parser::VERBOSE_DEBUG, Parser::VERBOSE_INFO, Parser::VERBOSE_INSANE, Parser::VERBOSE_QUIET
Instance Attribute Summary
Attributes inherited from Parser
Instance Method Summary collapse
-
#parse(stream) ⇒ Object
:nodoc:.
Methods inherited from Parser
#initialize, #parse_object, #parse_trailer, #parse_xreftable, #target_data, #target_filename, #target_filesize
Constructor Details
This class inherits a constructor from Origami::Parser
Instance Method Details
#parse(stream) ⇒ Object
:nodoc:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/origami/parsers/fdf.rb', line 28 def parse(stream) #:nodoc: super fdf = Adobe::FDF.new fdf.header = Adobe::FDF::Header.parse(stream) @options[:callback].call(fdf.header) loop do break if (object = parse_object).nil? fdf << object end fdf.revisions.first.xreftable = parse_xreftable fdf.revisions.first.trailer = parse_trailer fdf end |