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
Ability to set NeedAppearances value through config #740
Comments
OK - The necessity of setting this to true really depends on the PDF form you are dealing with. |
@hhrutter These are pdfs created without pdfcpu, currently I use pymupdf for adding this flag since I've faced issue post filling fields in such pdfs but after adding the flag that issue was resolved. IIRC unipdf also supports adding the NeedsAppearence field as part of a config that you can pass pre filling or performing form operations. This is the only thing missing in pdfcpu right now other than it covering all my use cases, so would be greatful if it can be added as well. |
What PDF viewers do you use for looking at your filled PDF forms? It looks like you have a need to turn this on after filling with pdfcpu.. Thank you for using pdfcpu 💚 |
@hhrutter I've faced this issue with Adobe Reader as well as browsers such as Arc and Chrome. I noticed the following ->
|
My point is that any form filled by pdfcpu should have It would be awesome if you could share a simple file before and after filling for a thorough analysis and possibly a fix. |
@hhrutter Yes ideally we want to resolve the appearance issues to be resolved before PDF 2.0 is adopted by PDFCPU. Sharing the files on email |
Did you send me anything, because I haven't gotten anything.. |
@hhrutter Shared the updated files |
Your input file is suspicious, because it was already filled by some PDFWriter yet the included appearance streams don't get picked up by PDF Viewers. So definitely something strange about this file.. Anyhow, this is part of https://github.com/pdfcpu/pdfcpu/releases/tag/v0.6.0 |
@hhrutter Thanks a lot for resolving this. Curious to know what was the bug and how was it resolved. |
Hey, Like I said the file you were sharing is troublesome, because viewers did not render the form field values (the form was already filled) even before trying to fill with pdfcpu, eg. that must be a subtle problem with the provided appearance streams. .. So I just added |
Similar to pymupdf it would be great if we can have the ability to set NeedAppearances flag through pdfcpu. Currently I've to set this field in all of my pdf templates beforehand since I've faced issues with fields not rendering properly on some pdf viewers. Having the ability to set this field through pdfcpu would solve a major use case.
The text was updated successfully, but these errors were encountered: