These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Save PDF Doc to Share / UNC via JavaScript

ysegura
Registered: Feb 16 2011
Posts: 12

I know the JS Reference stays you can save PDF Doc to "save path", but is it possible to Save the open document to a share drive such as: \\SRV03\SALESDOCS\myfile.pdf ?
 
how to save PDF to share drive using Javascript:

YS

My Product Information:
Acrobat Pro 8.1.7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Acrobat will save to anything the operating system recognizes as a valid drive path. If the shared drive shows up in the File Explorer as a Drive letter or in the network drives, then you can save to it.

Do this experiment. Open a PDF file into Acrobat from the shared drive in the File Explorer. If you can do this, then run the following code in the Console Window.

this.path

This code will return the path you need to use in the doc.saveAs function to save to this location.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script