Skip to main content
Participant
Oct 8, 2020 10:52 AM UTC
Answered

code for sending pdf as a email

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"})

This topic is closed to new replies. Start a new post to keep the conversation going.
marten0D44Correct answer
Participant
Oct 15, 2020 9:03 PM UTC
  • Thank you very much

5 replies

try67
Community Expert
Community Expert
Oct 8, 2020 12:06 PM UTC

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.

Translate
marten0D44AuthorCorrect answer
Participant
Oct 15, 2020 9:03 PM UTC
  • Thank you very much
Translate
Legend
Oct 8, 2020 10:56 AM UTC

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

Translate
Participant
Oct 8, 2020 11:03 AM UTC

Thank you very much for youre reply

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

Translate
Legend
Oct 8, 2020 11:19 AM UTC

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

Translate