Skip to main content
Participant
April 18, 2018
Question

transfer comments from one pdf to another

  • April 18, 2018
  • 1 reply
  • 940 views

Goal:  create javascript/Adobe SDK code that takes comments from one PDF and inserts them into another

Nice to have:  trigger this event from commandline, e.g. myScript source.pdf target.pdf

Is this goal feasible?  Is it possible to trigger this event without opening either PDF in Adobe Acrobat/Reader (if it's even possible to do this using reader only)?

Much thanks!

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
April 18, 2018

It's possible, but tricky, and of course, both PDFs have to be opened in Acrobat for this to work.  There are two techniques.

1. Save comments into an FDF file. The trick is to keep acrobat from writing the document ID into the FDF.  Then this file can be imported into any other file.  I don't think this technique will work in Reader, but haven't tried it so it might.

2. Write a script to copy comments from one PDF to another. This will work on Reader for sure.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
April 18, 2018

It can't be executed from the command-line, though. For that you would need a stand-alone application.