Batch export to fdf

New Here ,
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

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

Try this:

add this.syncAnnotScan()

TOPICS
Acrobat SDK and JavaScript, Windows

Views

380

Likes

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

Batch export to fdf

New Here ,
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

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

Try this:

add this.syncAnnotScan()

TOPICS
Acrobat SDK and JavaScript, Windows

Views

381

Likes

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
Jul 06, 2017 0
Most Valuable Participant ,
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...

Likes

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
Reply
Loading...
Jul 06, 2017 0
New Here ,
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

Likes

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
Reply
Loading...
Jul 06, 2017 0
Most Valuable Participant ,
Jul 06, 2017

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jul 06, 2017 0
Adobe Community Professional ,
Jul 06, 2017

Copy link to clipboard

Copied

Try this:

add this.syncAnnotScan()

Likes

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
Reply
Loading...
Jul 06, 2017 1
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
Jul 06, 2017 0
New Here ,
Jul 07, 2017

Copy link to clipboard

Copied

Works thanks

Likes

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
Reply
Loading...
Jul 07, 2017 0