-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging Issues #29
Comments
Seems like this is related to pdfcpu. Please respond. |
You have to update your PDFs version from 1.5 to 1.7. |
We chose GhostScript for merging PDFs, it was already installed in our project for ImageMagick. It's definetely a pdfcpu issue. |
Merge should work with new version ( When |
please use pdftk 3.0.9-2.when exceptions come. Unhandled Java Exception in create_output(): java.lang.ClassCastException: class pdftk.com.lowagie.text.pdf.PdfNull cannot be cast to class pdftk.com.lowagie.text.pdf.PdfDictionary (pdftk.com.lowagie.text.pdf.PdfNull and pdftk.com.lowagie.text.pdf.PdfDictionary are in unnamed module of loader 'app') at com.gitlab.pdftk_java.bookmarks.ReadOutlines(bookmarks.java:237) at com.gitlab.pdftk_java.bookmarks.ReadOutlines(bookmarks.java:270) at com.gitlab.pdftk_java.TK_Session.create_output(TK_Session.java:2773) at com.gitlab.pdftk_java.pdftk.main(pdftk.java:177) There was a problem with pdftk-java. |
I keep getting error when merging PDF files: PdfNull cannot be cast to class pdftk.com.lowagie.text.pdf.PdfDictionary "please use pdftk 3.0.9-2.when exceptions come." What version of pdftk is Gotenberg currently using? Currently I am using Gotenberg 6.3.0 |
I do not know the exact version. Could you try with |
I will try with 6.3.1 and let you know. |
I just tried it with 6.3.1 seems to be same issue. |
Here is the Debug log: request failed","path":"/merge","method":"POST","bytes_out":"79","user_agent_details":{"os":{"family":"Other"}, op": "resource directory '/gotenberg/tmp/oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4' removed"," exit status 2","op":"xhttp.mergeHandler: xhttp.convertSync: printer.mergePrinter.Print: xexec.Run", "command 'pdftk /gotenberg/tmp/oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4/A_x2rs_data.pdf "op":"xexec.Run","trace":"oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4","level":"debug","time":"2020-10-08T15:57:36-06:00"} {"msg":"including the message above, the version of pdftk-java (3.0.2), and if possible steps to reproduce the error.", "op":"stderr.pdftk./gotenberg/tmp/oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4/A_x2rs_data.pdf. "trace":"oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4","level":"debug","time":"2020-10-08T15:57:36-06:00"} "msg":"https://gitlab.com/pdftk-java/pdftk/issues", "trace":"oOAyJbU47ObJeNvFYXF9TDkq4uwWk1w4","level":"debug","time":"2020-10-08T15:57:36-06:00"} {"msg":"There was a problem with pdftk-java. Please report it at",
|
Well I figured it out 6.3.1 is using pdftk-java (3.0.2)
So that is higher version than what is recommended before. |
Hello.
We experiencing some problems with file merging using /merge.
Result errors:
{"message":"dict=markupAnnot entry=IT: unsupported in version 1.5\nThis file could be PDF/A compliant but pdfcpu only supports versions \u003c= PDF V1.7\n"}
{"message":"Read: xRefTable failed: parse: duplicate key"}
{"message":"Read: xRefTable failed: Free: object #0 not found."}
Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: