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

Need to save file in server

Guide ,
Nov 30, 2016 Nov 30, 2016

Hi All,

I am novice in Acrobat scripting. My requirement is to save as the pdf in to specific location of server.

this.saveAs() is working perfectly.

My concern is, I created a form and have submit button. I need to create a copy of that form in server when i click submit button. I aware i can't run the script from Button except i use folder level script.

Because i need to send the form to 100+ users and they are using different machines. So saving the script in every system is not possible.

Is there any other way to do this? Please suggest. And please correct me if i said anything wrong.

Advance thanks to all.

Regards,

K

TOPICS
Acrobat SDK and JavaScript , Windows
619
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 ,
Nov 30, 2016 Nov 30, 2016

You must run the saveAs method from a privileged context, so your only options are either a folder-level script or to certify the document.

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
Guide ,
Nov 30, 2016 Nov 30, 2016

Hi try67,

Thanks for your reply. I am not sure what you meant "certify the document."?

@Test Screen Name: There is no restriction but the 100 of systems are in different places. So i cant go and instal the script unfortunately. Am also thinking for gDoc from. Thanks for your suggestion.

Is it any chance we can run the script automatically without aassigningin button? I meant any eventlistener we have like Indesign?

Thanks,

K

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
LEGEND ,
Nov 30, 2016 Nov 30, 2016

It may be useful to consider why there is such a restriction and that it is intentionally difficult. An intranet solution may be better, with a web Script doing the submit task. File based saves tend not to scale well and lack auditability.

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
LEGEND ,
Dec 01, 2016 Dec 01, 2016
LATEST

You cannot have any self-installing script INSIDE a PDF. This is to protect against a PDF being used as an attack vector. I think a server solution (CGI, ASP, PHP etc.) is much more suitable for you than embedded JavaScript. Much more likely to work in browsers and mobiles too.

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