Skip to content

Commit

Permalink
Update adding-pdf-annotations.md (#2897)
Browse files Browse the repository at this point in the history
Added notes about updating the annotation flag to allow printing.
  • Loading branch information
MarleTangible authored Oct 9, 2024
1 parent e14b991 commit 0ae7dac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/user/adding-pdf-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ annotation = FreeText(
border_color="0000ff",
background_color="cdcdcd",
)

# Set annotation flags to 4 for printable annotations.
# See "AnnotationFlag" for other options, e.g. hidden etc.
annotation.flags = 4

writer.add_annotation(page_number=0, annotation=annotation)

# Write the annotated file to disk
Expand Down

0 comments on commit 0ae7dac

Please sign in to comment.