Sha256: 6973b51539108fd33266cc36b7f74d5e374a2c72d21f3fa7584756601ad7f4ae
Contents?: true
Size: 1.19 KB
Versions: 6
Compression:
Stored size: 1.19 KB
Contents
=begin = File parsers/fdf.rb = Info Origami is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Origami is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Origami. If not, see <http://www.gnu.org/licenses/>. =end require 'origami/parser' module Origami class FDF class Parser < Origami::Parser 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems