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
Archlinux supplies the java port of pdftk as the 'pdftk' package, but apparently has not all required depencies declared.
Calling PdfForms#get_fields returns an empty hash in this case.
The cause is that #pdftk.call_pdftk path, dump_method in lib/pdf_forms/pdf.rb:35 returns the following string:
"Error: could not load a required library for this operation.\njava.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils\nMake sure that bcprov and commons-lang3 are installed and included in the\nclasspath. See also https://gitlab.com/pdftk-java/pdftk/issues/2.\n No output created.\n"
and the underlying process terminates with exit status 1.
Maybe a solution would be to use SafeShell.execute! instead of SafeShell.execute in PdftkWrapper#call_pdftk
The text was updated successfully, but these errors were encountered:
- not every non-zero exit code is an error, take that into account and
only fail hard in case of 'real' errors
- you can still check $? to find out about the actual execution success / failure.
Archlinux supplies the java port of pdftk as the 'pdftk' package, but apparently has not all required depencies declared.
Calling PdfForms#get_fields returns an empty hash in this case.
The cause is that #pdftk.call_pdftk path, dump_method in lib/pdf_forms/pdf.rb:35 returns the following string:
"Error: could not load a required library for this operation.\njava.lang.NoClassDefFoundError: org/apache/commons/lang3/StringEscapeUtils\nMake sure that bcprov and commons-lang3 are installed and included in the\nclasspath. See also https://gitlab.com/pdftk-java/pdftk/issues/2.\n No output created.\n"
and the underlying process terminates with exit status 1.
Maybe a solution would be to use SafeShell.execute! instead of SafeShell.execute in PdftkWrapper#call_pdftk
The text was updated successfully, but these errors were encountered: