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
Try this:
add this.syncAnnotScan()
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...
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
Copy link to clipboard
Copied
Strange. What happens if you run the code manually, from the JS Console?
Copy link to clipboard
Copied
Try this:
add this.syncAnnotScan()
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.
Copy link to clipboard
Copied
Works thanks
Find more inspiration, events, and resources on the new Adobe Community
Explore Now