What were you trying to do?
I was using this PDF. I want to keep and delete the form fields and comments based on user decision. Some thing like Docusign does.
TBD%20Pin%20Hook%20Road%20Scheutz%20Contract%20DRAFT.pdf
How did you attempt to do it?
Have tried flattening to keep but it removes annotations.
pdfDoc.getForm().flatten();
What actually happened?
It removes the comments
What did you expect to happen?
To keep the comments and form fields intact after flattening
How can we reproduce the issue?
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response
What were you trying to do?
I was using this PDF. I want to keep and delete the form fields and comments based on user decision. Some thing like Docusign does.
TBD%20Pin%20Hook%20Road%20Scheutz%20Contract%20DRAFT.pdf
How did you attempt to do it?
Have tried flattening to keep but it removes annotations.
pdfDoc.getForm().flatten();
What actually happened?
It removes the comments
What did you expect to happen?
To keep the comments and form fields intact after flattening
How can we reproduce the issue?
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response