Preserve annotations (not flattened) when saving pdf #1487
Unanswered
thomasmarr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using pdf-lib to add annotations to an existing document (e.g. using page.drawText() ), then passing the resolved promise from pdfDoc.save() into pdf.js to render in the browser.
pdf.js does recognize annotations added using other pdf software, but does not recognize annotations added using pdf-lib. It does render them correctly but it sees them as part of the underlying document, not as annotations.
I have the same experience when downloading the document and opening in other software.
Is this expected, is there any way to preserve the annotations?
Beta Was this translation helpful? Give feedback.
All reactions