Skip to main content
Participant
January 5, 2024
Question

Acrobat Reader Plugin - how to detect save

  • January 5, 2024
  • 1 reply
  • 261 views

Hello,

we are developing a plugin for Acrobat / Acrobat Reader.

 

The user opens a PDF with form-fields. Now he want to save his inputs.

 

In Acrobat he could do this without problems but in Acrobat Reader only a "Save As" is possible.

 

To write back the PDF in our system I need to detect when the user saves the PDF and under which filename it was saved.

 

I need an event in the plugin like "DocumentSaved" which passes the filename or some other mechanism to store back the saved document in our system.

 

Any ideas?

 

Greetings

 

Stefan Westner

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
January 5, 2024

If by plug-in, you mean the writting a C++ DLL using the Acrobat SDK, then there several events related Saving a PDF that can be registered. 

But if you are talking about a JavaScript Add-in, then there is no direct way to easily detect when a file is saved. One indirect method might be to monitor the  "dirty" property of the open PDFs. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often