pdfly icon indicating copy to clipboard operation
pdfly copied to clipboard

ENH: Add command to export annotations as JSON

Open MartinThoma opened this issue 7 months ago • 5 comments

This was originally asked in https://github.com/py-pdf/pypdf/issues/2291

Proposed syntax:

$ pdfly annotations export
[
{"page_index": 0, "/Subtype": }
]

So essentially the idea is to export the same as defined in 12.5 Annotations (PDF 1.7 specifications), but add the "page_index" to the dictionary.

For the moment, we would only support the JSON export. If we want to add more export formats, we can add --format with a default value of JSON.

MartinThoma avatar Nov 12 '23 11:11 MartinThoma