Export individual page button

Community Beginner ,
Feb 12, 2019

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?

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

153

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

Export individual page button

Community Beginner ,
Feb 12, 2019

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?

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

154

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
Feb 12, 2019 0
Adobe Community Professional ,
Feb 12, 2019

Copy link to clipboard

Copied

What do you mean by exporting?  Exporting form data or extracting the page to a separate pdf file?

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...
Feb 12, 2019 0
Community Beginner ,
Feb 13, 2019

Copy link to clipboard

Copied

That would be extracting the full page (visually and with the filled up fields)

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...
Feb 13, 2019 0
Most Valuable Participant ,
Feb 13, 2019

Copy link to clipboard

Copied

Is the file going to be used in Reader?

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...
Feb 13, 2019 0
Community Beginner ,
Feb 13, 2019

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.

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...
Feb 13, 2019 0
Most Valuable Participant ,
Feb 13, 2019

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);

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...
Feb 13, 2019 0
Community Beginner ,
Feb 13, 2019

Copy link to clipboard

Copied

Ok!

What does the "(0,0)" means?

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...
Feb 13, 2019 0
Most Valuable Participant ,
Feb 13, 2019

Copy link to clipboard

Copied

It's the page numbers of the first and last page to extract.

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...
Feb 13, 2019 0
Adobe Community Professional ,
Feb 13, 2019

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

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...
Feb 13, 2019 0
Adobe Community Professional ,
Feb 13, 2019

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.

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...
Feb 13, 2019 0