Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Add PDF 1.6 Spec Text (or Note) Annotation.#53

Open
mayanez wants to merge 2 commits into
plangrid:masterfrom
mayanez:master
Open

Add PDF 1.6 Spec Text (or Note) Annotation.#53
mayanez wants to merge 2 commits into
plangrid:masterfrom
mayanez:master

Conversation

@mayanez
Copy link
Copy Markdown

@mayanez mayanez commented May 14, 2020

This add the "Text" annotation as referred to by the PDF spec. These are the "Pop-up" style annotations typically used for comments.

I'm unsure about what the proper changes are for testing so let me know if it needs modification.

@mayanez mayanez force-pushed the master branch 2 times, most recently from 9504173 to 58c8b74 Compare May 15, 2020 00:00
mayanez and others added 2 commits May 15, 2020 00:01
This add the "Text" annotation as referred to by the PDF spec.
appearance,
)
# TODO: Proper way to enable?
# a.add_annotation(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks right. You'd have to run the test and then actually open the PDF and make sure the annotation appears as expected.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok great! I'll test it out and will post an update.

@mjbryant
Copy link
Copy Markdown
Contributor

This looks great! Thanks for the contribution. If you uncomment the integration test lines you added and check the file after the tests have run we can merge it in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants