On Dec 28, 2017, at 5:07 AM, Peter Bozek via 4D_Tech <[email protected]> 
wrote:
> 
> On Thu, Dec 28, 2017 at 12:57 AM, Jim Crate via 4D_Tech 
> <[email protected]> wrote:
>> 
>> The ScripTel also integrates with Adobe Reader for cryptographically
>> signing PDF documents, if that’s necessary. I used 4D to create a PDF,
>> launch Adobe Reader with that PDF, monitor the file for an appropriate
>> number of changes (depending on how many signatures I needed), and email
>> the signed PDF to the appropriate recipients.
> 
> I would be interested to know how this part work for you. I did something
> similar - 4D generates .fdf file, it is open in Acrobat Readed and then 4d
> monitors changes in modification date. I tried to use lsof on Mac to
> monitor if file is still open, but this seems unreliable. Checking
> modification date has its shortcomings as well.

I just checked modification date (GET DOCUMENT PROPERTIES) every 30 ticks. The 
signing process takes a few seconds, so it really doesn’t have to be that 
often. Since the Scriptel plugin saves the PDF immediately on signing, the 
modification date changes. On macOS this has been reliable. I don’t perform any 
action when the appropriate number of file modifications has been made other 
than to enable a “signed" button in the 4D interface. So, even if they do 
something else which causes the document to be saved, nothing happens until the 
user says they’re done, so for example an incorrect signature (a dot or 
something) won’t cause the document to be processed as if it were signed.

Jim Crate

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to