py-pdf / pypdf

A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
https://pypdf.readthedocs.io/en/latest/
Other
8.22k stars 1.4k forks source link

Import/Export annotations to FDF/JSON format #2291

Closed mah-emad closed 11 months ago

mah-emad commented 11 months ago

Support importing/exporting annotations to FDF format or json format.

stefan6419846 commented 11 months ago

For me this sounds like something which is better suited in https://github.com/py-pdf/pdfly.

MartinThoma commented 11 months ago

We could already export annotations in JSON format in pdfly. We could make imports also work in pdfly.

For FDF, we would need the basis in pypdf.

MartinThoma commented 11 months ago

FDF was already mentioned here: https://github.com/py-pdf/pypdf/discussions/1181

I'm closing this issue as there is nothing to do in pypdf.

MartinThoma commented 11 months ago

@mah-emad Would adding the import/export feature to pdfly solve your issue?

mah-emad commented 11 months ago

@MartinThoma Yes, I can use pdfly for import/export. does pdfly support exporting annotations/signatures to JSON already?

MartinThoma commented 11 months ago

Not so far, but we can add that :-)

At the moment, this is possible:

image

Let's continue the discussion at https://github.com/py-pdf/pdfly/issues/37 :-) Please let us know what your requirements are and also a bit of the background (what do you want to do/why do you want to do that/what have you tried before and why didn't that work for you)