Make a new annotation/note on a PDFs

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

Hi there,

In Acrobat Pro you can open up a pdf and select ‘Import Data File…’ (under the small sub-menu which is part of the ‘Comments List’ palette). You then select the pdf file that contains the comments you wish to import.

Not sure if this is what you want but you could give it a try.

Thanks. This might work. I just need to see how to call ‘Import Data File…’ with AS or maybe I will need to use UI. Thanks again !