We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to flatten the pdf!
form_to_flatten.pdf
import fs from 'fs'; import { PDFDocument } from 'pdf-lib'; const flattenPDF = async () => { const pdfDocument = await PDFDocument.load( fs.readFileSync('form_to_flatten.pdf') ); const pdfForm = pdfDocument.getForm(); pdfForm.flatten(); const pdfBytes = await pdfDocument.save(); fs.writeFileSync('flattened.pdf', pdfBytes); }; flattenPDF();
the flattened pdf is missing check mark in check boxes.
the flattened pdf should not have missing check mark in check boxes. They should be intact.
we can reproduce this using pdf & script provided in How did you attempt to do it? section.
How did you attempt to do it?
1.17.1
Node
No response
The text was updated successfully, but these errors were encountered:
referenced in cantoo-scribe#41
Sorry, something went wrong.
No branches or pull requests
What were you trying to do?
Trying to flatten the pdf!
How did you attempt to do it?
form_to_flatten.pdf
What actually happened?
the flattened pdf is missing check mark in check boxes.
Visuals
What did you expect to happen?
the flattened pdf should not have missing check mark in check boxes.
They should be intact.
How can we reproduce the issue?
we can reproduce this using pdf & script provided in
How did you attempt to do it?
section.Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response
The text was updated successfully, but these errors were encountered: