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

code for sending pdf as a email

Community Beginner ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

Hello,

 

I have a question.

I am using the javascript code below to email a pdf file as an attachment in my email.

But the only problem is that it will create a attachment for the complete document.

Is there a way to send only a specific page ?

 

var url = "mailto:testemail@test.com?subject=My Subject&body=Here is my form data.";
this.submitForm({cURL: url, cSubmitAs: "PDF"})

TOPICS
Acrobat SDK and JavaScript

Views

517

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 Beginner , Oct 15, 2020 Oct 15, 2020
  • Thank you very much

Votes

Translate

Translate
LEGEND ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

Will your end users (the people sending the mail) all have Acrobat Pro? (I ask because the free Reader can't extract pages).

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 Beginner ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

Thank you very much for youre reply

They are all using Acrobat Reader DC (not the pro)

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
LEGEND ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

In that case they cannot extract pages, which is the only way to email a single page.

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 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

You should rename the "url" variable to something else, as there's a property of the Document object with that name and it will conflict with your code.

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

Copy link to clipboard

Copied

LATEST
  • Thank you very much

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