diff --git a/docs/user/adding-pdf-annotations.md b/docs/user/adding-pdf-annotations.md index 083d6ccd8..bdececf51 100644 --- a/docs/user/adding-pdf-annotations.md +++ b/docs/user/adding-pdf-annotations.md @@ -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