Skip to content

Commit

Permalink
Go back to UTF8...
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Holland committed Mar 14, 2011
1 parent 9503777 commit cc0d9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdftk/pdf.rb
Expand Up @@ -37,7 +37,7 @@ def field(name)


def fields def fields
unless @_all_fields unless @_all_fields
field_output = `pdftk "#{path}" dump_data_fields` field_output = `pdftk "#{path}" dump_data_fields_utf8`
raw_fields = field_output.split(/^---\n/).reject {|text| text.empty? } raw_fields = field_output.split(/^---\n/).reject {|text| text.empty? }
@_all_fields = raw_fields.map do |field_text| @_all_fields = raw_fields.map do |field_text|
attributes = {} attributes = {}
Expand Down

0 comments on commit cc0d9f2

Please sign in to comment.