Skip to content
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

fill_form with flatten option corrupts PDF file #74

Open
xenyal opened this issue Jul 22, 2019 · 0 comments
Open

fill_form with flatten option corrupts PDF file #74

xenyal opened this issue Jul 22, 2019 · 0 comments

Comments

@xenyal
Copy link

xenyal commented Jul 22, 2019

I'm trying to use pdftk's fill_form functionality with the below PDF along with the flatten option so that values populating text fields can be frozen. However, upon getting the output file, the PDF seems to become corrupted.

For additional context, I've embedded a TrueType font (Lato) into the Input PDF (using Apache PDFBox), and set the font_name on the appearance objects for all the text fields in the input document.

Input PDF: http://www.filedropper.com/prefilled

Output PDF (Cannot be opened): http://www.filedropper.com/output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant