Skip to main content
Ryan_Oliver_02445
Known Participant
January 2, 2019
Answered

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

  • January 2, 2019
  • 1 reply
  • 1069 views

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

This topic has been closed for replies.
Correct answer try67

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

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 2, 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

Ryan_Oliver_02445
Known Participant
January 2, 2019

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

try67
Community Expert
Community Expert
January 2, 2019

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