Sha256: 4e3442f702e28671f4eacd99a8bfc2c2d816e40b6805bdc0b9191cb31a46ce65

Contents?: true

Size: 487 Bytes

Versions: 21

Compression:

Stored size: 487 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))

require 'ndr_import/acroform_reader'
require 'optparse'
require 'yaml'

def program_name
  File.basename(File.expand_path(__FILE__))
end

OptionParser.new do |opts|
  opts.banner = "Usage: #{program_name} [options] file"

  opts.on('-h', '--help', 'Prints this help') do
    puts opts
    exit
  end
end.parse!

reader = NdrImport::AcroFormReader.new(ARGV[0])

puts reader.fields_hash.to_yaml

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ndr_import-8.5.1 exe/pdf_acro_form_to_yaml