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

All Digital Signature info goes missing after adding annotations #76

@aashishvanand

Description

@aashishvanand

Hi,
I have an existing PDF that is digitally signed. I wanted to add some basic annotations.
Let's say I have added a simple square as per the code below and then I save the PDF all the signature info is lost.
Probably the best way to do it by supporting incremental updates to the pdf. I am not sure if pdf-annotate supports that

from pdf_annotate import PdfAnnotator, Location, Appearance
a = PdfAnnotator('input_signed.pdf')
a.add_annotation(
'square',
Location(x1=50, y1=50, x2=100, y2=100, page=0),
Appearance(stroke_color=(1, 0, 0), stroke_width=5),
)
a.write('output.pdf')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions