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

Scipt to save pdf to ftp.

msg730
Registered: May 7 2008
Posts: 8
Answered

Hi,

I'm fairly new to working with adobe acrobat. So far I've created a form to submit to an online url, but don't want to parse any of the information from an fdf Just want to go straight into a pdf file. I made the http submit button in the form of url: ftp://username:pass [at] www [dot] examplewebsite [dot] com/info when I click the button, the page ftp address opens and all, however I'm having a difficult time trying to get it to actually submit the edit'd pdf file. I was wondering if this was at all possible? and yes the ftp has write access/but its a locked down account for testing purposes.

-Thanks

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Acrobat does not implement FTP, so it cannot communicate with an FTP server.

It does implement HTTP, so you can submit the entire PDF to a script on a server. It also implements WebDav, so you can save your file to a server that also implements this protocal.

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

msg730
Registered: May 7 2008
Posts: 8
thanks for the response, what would be the best way to accomplish this?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Many of the Acrobat JavaScript functions that use file paths offer the ability to read/write from/to a WebDav server. I haven't used this particular functionality so I don't know how well it works. But supposidly, if everything is setup properly it's just like reading and writing to the local disk.

I have used submitForm to send files to a server script. From the document, just submit the entire PDF. Then on the server side you need a script to extract out all the HTTP Request bytes, in the body, and write them to a file.

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

msg730
Registered: May 7 2008
Posts: 8
Thanks again, one last thing. Do you have an example of a script that I can look at?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you've done CGI/server scripting then it shouldn't be a problem to write a script to extract the body bytes from a request. If you haven't, then this is a whole new thing for you to learn. And this is not the forum for that topic.

I would suggest finding out which scripting environments are set up for your server, PHP, ColdFusion, Perl, ASP, ASP.NET, etc. Then pick one and get a book .

If you want to avoid writing any code, then I'd suggest looking into WebDav. See if it's already set up on your server and look up information on how to format an URL to reference a WebDav site. This might be the easier route.

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

msg730
Registered: May 7 2008
Posts: 8
server is setup with .net but will do some more research thanks for the reponse again.