tcocca / active_pdftk

ruby wrapper for the pdftk command line utility for working with editable pdf files
MIT License
46 stars 37 forks source link

utf-8 support #3

Closed elmatou closed 13 years ago

elmatou commented 13 years ago

Pdftk v 1.44 fully support utf-8 encoding we should too !

  class Wrapper
    def ut8_support?
      pdftk_version.to_f >= 1.44
    end

    def fields(template_path)
       dump_cmd =  'dump_data_fields'
       dump_cmd << '_utf8' if ut8_support?
      unless @all_fields
        field_output = call_pdftk(template_path, dump_cmd)
 ....
    end
  end
elmatou commented 13 years ago

Done on my specific branch : https://github.com/elmatou/pdftk_forms/tree/utf8 I'll pull it later.

tcocca commented 13 years ago

Done and merged