You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you give an example of a pdf or output of a pdftk dump_data_fields that the get_fields method in pdf-forms doesn't work. If I have this I can push this change to pdf-forms
# Return a hash of all fields in a given PDFdefget_fields(url)#note: we're talking to PDFTK directly here# the native @pdftk.get_field_names doesn't seem to work on many government PDFsfields=@pdftk.call_pdftk(open(URI.escape(url)).path,'dump_data_fields')fields=fields.split("---")@output=[]fields.eachdo |field|
@hash={}field.split("\n").each()do |line|
nextifline == ""key,value=line.split(": ")@hash[key]=valueendnextif@hash.empty?@output.push@hashend@outputend
The text was updated successfully, but these errors were encountered:
Can you give an example of a pdf or output of a pdftk dump_data_fields that the get_fields method in pdf-forms doesn't work. If I have this I can push this change to pdf-forms
The text was updated successfully, but these errors were encountered: