Skip to main content
Participant
March 1, 2021
Question

Track PDF document open and close from C# program

  • March 1, 2021
  • 1 reply
  • 1103 views

Hello

 

I have a c# application that stores documents in Sql Server FileStream.

One of my clients would like to be able to edit the document once it's been uploaded and save changes.

 

With Microsoft Word I do this by lanching a Word instance, opening a temporary copy of the file then capturing the close/save of the document and pushing the changes back to FileStream.

 

Can something similar be done with PDF files and Ado Pro 2020? If so can you please point me in the right direction where I can get more details on the interface?

 

Thanks in advance

Allan

This topic has been closed for replies.

1 reply

Legend
March 1, 2021

An Acrobat plug-in, which MUST be written in C++ and installed to the user's copy of Acrobat PRO, will be notified of saves. You could also just watch the filesystem to see when the file is saved.

allanjs4Author
Participant
March 8, 2021

Thanks for you reply. 

 

I looked into the COM interface in Adobe and decided to just got with monitoring the Acrobat process instead.

I've been able to catch the exit of the process and handle the file saves at that point.