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

Batch export to fdf

New Here ,
Jul 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

Hi

I'm using the below as an action to export annotations to an fdf file:

this.exportAsFDF({cPath:this.path.replace(/\.pdf$/i,".fdf"),bAnnotations:true})

It works on a single file, but if I run it on multiple files it only exports the annotations for the first page.

Can anyone help?

Thanks

Aaron

TOPICS
Acrobat SDK and JavaScript , Windows

Views

812

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

correct answers 1 Correct answer

Community Expert , Jul 06, 2017 Jul 06, 2017

Try this:

add this.syncAnnotScan()

Votes

Translate

Translate
Community Expert ,
Jul 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

That's very odd. This command will export the values of annotations in the file. It's actually not possible to limit it to just one page...

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 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

I know.

I'm running it as an action on Acrobat Pro DC. No annotations beyond the first page are exported if I run it on multiple files.

Would be helpful if someone could confirm the same for them?

Thanks

Aaron

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 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

Strange. What happens if you run the code manually, from the JS Console?

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 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

Try this:

add this.syncAnnotScan()

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 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

Bernd: That's the issue. Acrobat won't even load the annotations unless you force it to by using syncAnnotScan() first. I've run into this before with Actions.

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, 2017 Jul 07, 2017

Copy link to clipboard

Copied

LATEST

Works thanks

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