Highlighted

Javascript for emailing only one page of PDF in Acrobat

New Here ,
Oct 14, 2020

Copy link to clipboard

Copied

Looking for a script for forms button that will email only the second page of a two page PDF.

I understand that this script would not work within Reader, only Acrobat. The users that will be utilizing this script (emailing the form out) will all be using Adobe Acrobat Pro DC. 

 

If there is a way to accomplish this, would the PDF that's sent be viewable in Reader or mobile PDF viewers? The people within the company and using that email function button will be using Acrobat, but those viewing the PDF we send may not be. So it's not going to work if that's not viewable. 

 

Thank you! Very new to javascript. 

 

TOPICS
How to, PDF forms

Views

50

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

Javascript for emailing only one page of PDF in Acrobat

New Here ,
Oct 14, 2020

Copy link to clipboard

Copied

Looking for a script for forms button that will email only the second page of a two page PDF.

I understand that this script would not work within Reader, only Acrobat. The users that will be utilizing this script (emailing the form out) will all be using Adobe Acrobat Pro DC. 

 

If there is a way to accomplish this, would the PDF that's sent be viewable in Reader or mobile PDF viewers? The people within the company and using that email function button will be using Acrobat, but those viewing the PDF we send may not be. So it's not going to work if that's not viewable. 

 

Thank you! Very new to javascript. 

 

TOPICS
How to, PDF forms

Views

51

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
Oct 14, 2020 0
Adobe Community Professional ,
Oct 14, 2020

Copy link to clipboard

Copied

- Sure, you must use the "deletePage" method:
https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/Acro12_MasterBook/JS_API_AcroJS/Do...

 

- Yes, no problemo.

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...
Oct 14, 2020 0
Most Valuable Participant ,
Oct 14, 2020

Copy link to clipboard

Copied

deletePages...

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...
Oct 14, 2020 1
Adobe Community Professional ,
Oct 15, 2020

Copy link to clipboard

Copied

Oups!

😉

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...
Oct 15, 2020 1
Most Valuable Participant ,
Oct 15, 2020

Copy link to clipboard

Copied

Is that the French version of "Oops"? 🙂

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...
Oct 15, 2020 0
Adobe Community Professional ,
Oct 15, 2020

Copy link to clipboard

Copied

While deleting or extracting pages does work if the user has Acrobat Pro. It's not a particularly robust methodology.  A better solution would be to include the single page that needs to be mailed as an attachment. Then email the attachment. This method will work on 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...
Oct 15, 2020 0