Highlighted

code for sending pdf as a email

Community Beginner ,
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"})

Correct answer by marten0D44 | Community Beginner
  • Thank you very much
TOPICS
Acrobat SDK and JavaScript

Views

61

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

code for sending pdf as a email

Community Beginner ,
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"})

Correct answer by marten0D44 | Community Beginner
  • Thank you very much
TOPICS
Acrobat SDK and JavaScript

Views

62

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 08, 2020 0
Most Valuable Participant ,
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).

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 08, 2020 0
Community Beginner ,
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)

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

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

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

Copy link to clipboard

Copied

  • Thank you very much

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