Skip to main content
Participating Frequently
July 6, 2017
Answered

Batch export to fdf

  • July 6, 2017
  • 2 replies
  • 1201 views

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

This topic has been closed for replies.
Correct answer Bernd Alheit

Try this:

add this.syncAnnotScan()

2 replies

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
July 6, 2017

Try this:

add this.syncAnnotScan()

Joel Geraci
Community Expert
Community Expert
July 6, 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.

try67
Community Expert
Community Expert
July 6, 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...

Participating Frequently
July 6, 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

try67
Community Expert
Community Expert
July 6, 2017

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