Skip to content

Added function to export the annotated PDF. #6

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

somefoo
Copy link

@somefoo somefoo commented Mar 18, 2025

I added the function to export the annotated document as a new PDF.

I am aware this isn't the perfect solution, but I believe it is a nice workaround for now to get an annotated PDF :)

It uses pdf-lib and some additional functions in annotation.js.

image

@salcc salcc added the enhancement New feature or request label Mar 20, 2025
@salcc salcc self-assigned this Mar 20, 2025
@Asakamizu
Copy link

I suggest allowing annotation to be exported as FDF or XFDF, which enables the user to import the annotation into the original pdf file in Acrobat to save the annotations made in the extension.

@somefoo
Copy link
Author

somefoo commented Apr 2, 2025

Agree this would be a nice addition. This could be an option in the already existing screen used to store the annotations? In fact, it may be a good format to store in every time?

Replacing your existing PDF with the PDF stored using the pull-request approach will have the same effect and is more portable (it doesn't require Adobe Acrobat, which is not available under Linux per default).

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

Successfully merging this pull request may close these issues.

3 participants