• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript for emailing only one page of PDF in Acrobat

New Here ,
Oct 14, 2020 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

523

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

Community Expert , Oct 14, 2020 Oct 14, 2020

Votes

Translate

Translate
Community Expert ,
Oct 14, 2020 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.

Votes

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
Community Expert ,
Oct 14, 2020 Oct 14, 2020

Copy link to clipboard

Copied

deletePages...

Votes

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
Community Expert ,
Oct 15, 2020 Oct 15, 2020

Copy link to clipboard

Copied

Oups!

😉

Votes

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
Community Expert ,
Oct 15, 2020 Oct 15, 2020

Copy link to clipboard

Copied

Is that the French version of "Oops"? 🙂

Votes

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
Community Expert ,
Oct 15, 2020 Oct 15, 2020

Copy link to clipboard

Copied

LATEST

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. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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