Copy link to clipboard
Copied
Hey everyone.
I'm looking for exporting only the second page of my document with a button.
Any hint? Is it possible?
Copy link to clipboard
Copied
What do you mean by exporting? Exporting form data or extracting the page to a separate pdf file?
Copy link to clipboard
Copied
That would be extracting the full page (visually and with the filled up fields)
Copy link to clipboard
Copied
Is the file going to be used in Reader?
Copy link to clipboard
Copied
Not necessarily.
The plan is to create the document from my computer, than send it to my client, which he will use on iPad through PDF Expert.
Copy link to clipboard
Copied
I highly doubt it's going to work on a mobile device, although if it will then it will only be in PDF Expert... You can test it out for yourself, though. The code to do it is very basic. For example, this will extract the first page as a new (temporary) file:
this.extractPages(0,0);
Copy link to clipboard
Copied
Ok!
What does the "(0,0)" means?
Copy link to clipboard
Copied
It's the page numbers of the first and last page to extract.
Copy link to clipboard
Copied
As try67 already explained, that's the first and last page to extract. You can find all that information (and more) in Acrobat's JavaScript documentation:
Acrobat DC SDK Documentation - Doc.extractPages()
Regarding the subset of JavaScript that is supported by PDF Expert, you can look that up here: https://helpspot.readdle.com/pdfexpert6/index.php?pg=kb.page&id=1154
Copy link to clipboard
Copied
Extracting pages on the iPad is not going to work.
What is your intended workflow? Maybe there is another way to do it. For example, submitting the data to a server script, that then returns the separate form with data.