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

Copying Comments To Every Page

New Here ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

I have a PDF, and I've created a rectangle using the Comment tool. I want to copy this shape to every page of a many-page document so it's in the same place on every page. Copy and paste doesn't preserve the position. 

Anyone know how to do this?

 

Thanks. 

TOPICS
Edit and convert PDFs

Views

17.4K

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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

Here's a short script that can be run from the console window.

It copies the currently selected comment to all pages of the PDF

 

var props = this.selectedAnnots[0].getProps();

var nPg = props.page;

for(var i=0;i<this.numPages;i++)

     if(nPg != i) {props.page = i;this.addAnnot(props)}

 

You'll find a tutorial on the Console Window here:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Votes

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 ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

Hi Alex,

 

I'm not sure that it can be done as a Comment, but it can be done as a Button.

  • Rich Media Toolbar (or Forms)
  • Add Button
  • Use Properties to format the rectangle and add text if desire
  • Right-Click and Duplicate Across Pages
  • There is no easy way to edit or delete, as it is now on each page.

 

2.png

 

 

Here's a second method:

  • Use the Prepare Form toolbar
  • Draw a Text field
  • Format with Properties to have a Fill and Stroke
  • Right click and choose Duplicate Across All Pages
  • If you need text, then as long as all text boxes have the same name in Properties, then changing the text in one will update all

 

3.png

 

Does either of these methods work for you?

 

~ Jane

Votes

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 ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

Here's a short script that can be run from the console window.

It copies the currently selected comment to all pages of the PDF

 

var props = this.selectedAnnots[0].getProps();

var nPg = props.page;

for(var i=0;i<this.numPages;i++)

     if(nPg != i) {props.page = i;this.addAnnot(props)}

 

You'll find a tutorial on the Console Window here:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
New Here ,
Jul 07, 2021 Jul 07, 2021

Copy link to clipboard

Copied

Hi @Thom Parker, would that be an eay tweak if I want to do the same on multi-selected annotation? (as opposed to single selected annotation)

Votes

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 ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

Here's the code. I put the copy to all pages script into a function, then call that function for all selected annots.

Haven't tested it, so debugging is up to you. 

 

function CopyAnnotToAllPages(oAnt)
{
   var props = oAnt.getProps();
   var nPg = props.page;
   for(var i=0;i<oAnt.doc.numPages;i++)
      if(nPg != i) {props.page = i;oAnt.doc.addAnnot(props)}
}
this.selectedAnnots.forEach(CopyAnnotToAllPages);
Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
New Here ,
Jul 08, 2021 Jul 08, 2021

Copy link to clipboard

Copied

LATEST

Thank you. That did the job.

Votes

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 ,
Feb 29, 2020 Feb 29, 2020

Copy link to clipboard

Copied

You can use this (paid-for) tool I've developed to do it with a single click:

http://try67.blogspot.com/2009/07/acrobat-duplicate-annotations-to.html

Votes

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