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

Email Javascript

New Here ,
Mar 30, 2020 Mar 30, 2020

I have a PDF document that has a mailto: link inside. When I click the link I am presented with an Outlook email to the recipient but I want to add the document as an attachment in the process.

 

Suggestions

TOPICS
Acrobat SDK and JavaScript
340
Translate
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 ,
Mar 31, 2020 Mar 31, 2020

If this is done using a script you need to use the mailDoc or submitForm commands.

Alternatively, you can use the built-in Submit Form command and set it to submit the complete PDF file.

Translate
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 ,
Mar 31, 2020 Mar 31, 2020

Did you create this PDF? If so, then did you setup the link, or is the email just text on the page. 

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

Translate
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
New Here ,
Apr 07, 2020 Apr 07, 2020

Thanks for the information. Unfortunately the mailto in the pdf is embedded using the tool that created the PDF (Crystal Reports) The challenge is piggy backing on the embedded mailto after it is created or picking up the email address from the doc after it is created. 

Translate
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 ,
Apr 07, 2020 Apr 07, 2020
LATEST

Please explain the process. Is the PDF automatically generated and sent to a client? At what point do you have the opportunity to modify the PDF? 

 

 

 

 

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

Translate
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