Skip to main content
Participant
October 8, 2020
Answered

code for sending pdf as a email

  • October 8, 2020
  • 2 replies
  • 1124 views

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 has been closed for replies.
Correct answer marten0D44
  • Thank you very much

2 replies

try67
Community Expert
Community Expert
October 8, 2020

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.

marten0D44AuthorCorrect answer
Participant
October 15, 2020
  • Thank you very much
Legend
October 8, 2020

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

Participant
October 8, 2020

Thank you very much for youre reply

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

Legend
October 8, 2020

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