cpdf-source icon indicating copy to clipboard operation
cpdf-source copied to clipboard

add/modify annotations

Open ghennequin opened this issue 10 years ago • 1 comments

Is there any plan to support addition/modification of annotations in the near future? I wouldn't mind contributing but I don't really know where to start.

ghennequin avatar Jan 17 '15 11:01 ghennequin

It's unlikely to happen soon.

Essentially, you would need to complete the unfinished function add_annotation in the pdfannot.ml file in the CamlPDF repo:

https://github.com/johnwhitington/camlpdf/blob/master/pdfannot.ml

And then, plumb it into cpdf, with an appropriate command line representation.

johnwhitington avatar Jan 21 '15 12:01 johnwhitington

Done in v2.6. Can now extract annotations to JSON, modify them, and then re-apply them.

johnwhitington avatar Aug 25 '23 13:08 johnwhitington