Hi all,
I would like to copy an annotation from one PDF to an other. Both PDFs are identical (with the exception of the notes/annotations, of course).
I have tried with Preview, Acrobat Pro, and PDF Reader Pro Lite, without success…
Here is the script I managed to prepare so far:
tell application "PDF Reader Pro Lite" -- or Acrobat or Preview
-- I have 2 documents already opened
set openedDocs to every document
--> {document "test_1.pdf", document "test_2.pdf", document "Home"}
set myproperties to properties of note 2 of document 1
--> {text:"quantitative genomics", page:page 2 of document "test_1.pdf", color:{62625, 14538, 6030, 39321}, selection:{characters 919 thru 939 of text of page 2 of document "test_1.pdf"}, modification date:date "Sunday, 11 November 2018 at 06:07:12", user name:"ldicroce", type:highlight note, path list:{{{194, 505}, {293, 505}, {194, 494}, {293, 494}}}, bounds:{194, 505, 293, 494}}
-- ideally: make a new note in document 2 with properties myproperties
end tell
I want now to make a new note in the “test_2.pdf” with the same properties obtained from “test_1.pdf”.
Any suggestion?
Thanks