Artikel: How to save a PDF with Acrobat JavaScript

Being able to save a file to disk is a critical activity for Acrobat workflow automation, and fortunately, there are a couple ways to do this from a script. This article presents scripts for not only saving a PDF file to disk, but also for saving the PDF to different formats, such as an image file, MS Word, text and even HTML.

Placing a custom save button on a form

This is a common form feature requested in the forums. Let me start right off by saying that it cannot be done. Or, to be more specific, it can only be done under very special circumstances. In the Acrobat/Reader environment, saving a PDF to disk is a protected operation. It’s a security issue. Users would not be very happy if random PDFs downloaded from the internet could silently save themselves to disk. The user has to know what’s going on. They have to either explicitly save the file using the „File > Save…“ menu item, or implicitly allow the save through a trust mechanism.