Created
July 2, 2019 19:25
-
-
Save mjbryant/75bf3b60496d12f739a6d4aa6c3ac36d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pdf_annotate import PdfAnnotator, Appearance, Location | |
annotator = PdfAnnotator('test.pdf') | |
annotator.add_annotation( | |
'square', | |
Location=Location(x1=10, y1=20, x2=100, y2=100, page=0), | |
Appearance=Appearance(fill=(1, 0, 0)) | |
) | |
annotator.write('annotated.pdf') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment