How to export/import PDF's data with java script?

Explorer ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

Good evening, I am trying to create a way to export, and import PDF's data with java script. 

Here is what I have so far in terms of code:

this.extractPages({

    nStart: this.numPages-1,

    cPath: 'C:\Users\dell\Documents\Adobe REC complete' + this.documentFileName

});

this.closeDoc(false);

It will delete the pages but not export the data to the specified folder. 

The java script runs after deleting all-but-one page, so perhaps my 'this.numpages' is wrong

TOPICS
Acrobat SDK and JavaScript, Windows

Views

125

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
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Jan 02, 2019 Jan 02, 2019
The way you specified the file-path is incorrect. You need to use the following format:cPath: '/C/Users/dell/Documents/Adobe REC complete' + this.documentFileName

Likes

Translate

Translate
Most Valuable Participant ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

The way you specified the file-path is incorrect. You need to use the following format:

cPath: '/C/Users/dell/Documents/Adobe REC complete' + this.documentFileName

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
community guidelines
Explorer ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

I went and changed the file-path to the correct version, it now prompts for me to save it before closing the file down.

It seems that "this.extractpages" is not what I need to export the form data, which makes much more sense.  I believe I have the wrong line of code

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
community guidelines
Most Valuable Participant ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

If that folder is called "Adobe REC complete" then you need to add another forward-slash at the end of it...

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
community guidelines
Explorer ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

LATEST

Your suggestion worked, and the file is now in the folder it's directed to be in.

Thank you

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
community guidelines