• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

transfer comments from one pdf to another

New Here ,
Apr 17, 2018 Apr 17, 2018

Copy link to clipboard

Copied

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!

TOPICS
Acrobat SDK and JavaScript , Windows

Views

552

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 17, 2018 Apr 17, 2018

Copy link to clipboard

Copied

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 18, 2018 Apr 18, 2018

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines