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

Save file name acrobat when emailing document

New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi 

 

I have used this piece of code to within a button to send a file to 2 desginated recipients and included a text field as the subject line.

 

var customSubject = this.getField("Text1").value;
var mailtoUrl = "mailto:mark.surname@work.com;ian.surname@work.com?subject=" + customSubject;
this.submitForm({
cURL: mailtoUrl, cSubmitAs: "PDF" });

 

Whilst this works well, I would like to name the file the same as the Text1 field when sending the mail.

 

Any help is much appreciated.

 

Mark

TOPICS
JavaScript , PDF forms

Views

243

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

In order to do that you have to install a script file on the local machine of each user who will be using the file.

If that's not possible you can only ask the user to save the file under this name, and if they don't refuse to submit it, but you can't enforce it.

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
New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi try67

 

Thank you for your input. I won't be doing that; I am buidling something that essentially can be executed on a mobile phone and sent to mail recipients. I just wondered if there was a way this could be done on the submitting of the email.

I am using PDF expert on my mobile device.

 

Kind regards

Mark

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

On a mobile device it's not possible at all.

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
New Here ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Hi

 

It works a treat from my iphone using PDF expert

 

Thanks

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 ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

LATEST

I was referring to saving the file under a specific name.

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