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

Batch export to fdf

New Here ,
Jul 06, 2017 Jul 06, 2017

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
1.2K
Translate
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()

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

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...

Translate
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

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

Translate
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

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

Translate
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

Try this:

add this.syncAnnotScan()

Translate
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

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.

Translate
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
LATEST

Works thanks

Translate
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