Print Page | Close Window

QuickPDF v6.04.5

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=961
Printed Date: 23 Nov 24 at 7:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF v6.04.5
Posted By: Michel_K17
Subject: QuickPDF v6.04.5
Date Posted: 21 Sep 08 at 11:34PM
   Another (source code only) update is available in the source code download area [ http://www.quickpdf.org/forum/forum_posts.asp?TID=960 - here ] from Delbeke. This version adds incremental digital co-signing.

   This update requires 32 bytes more per object in the PDF files in the version of the document loaded in memory (to hold the MD5 hash key). Although Delbeke has not found a file large enough to create a problem, this might be an out-of-memory problem for some.
 
   The following units were modified and the changes are marked with "/Delbeke 09/20/2008 'Inc Save'""
  • uQuickPDF.pas
  • uPDFDocument.pas
  • uiSedQuickPdf.pas
    There are 3 new functions that have been added:
  • SaveIncToFile  Allows an incremental Save of a signed PDF file.
  • SaveIncToString Allows an incremental Save of a signed PDF file held in a string.
  • SaveIncToStream (DLL version only) Allows an incremental Save of a signed PDF file held in a TStream.
  • SaveIncToVariant (ActiveXversion only) Allows an incremental Save of a signed PDF file held in a variant.
   These functions work as before with the same parameters and the same return codes. Incremental save can fail in the following two cases:
  • The PDF file was not loaded (ie it is a new file created from scratch), or
  • An object in the original PDF file was deleted.
   The function DigiCoSign DigiSign now supports co-signing. parameters are the same as for signing. Return codes are also the same, namely:
  •  0 = OK
  •  1 = DestFileName omitted
  •  2 = Certificate omitted
  •  3 = Certificate file does not exists
  •  4 = Invalid certificate password
  •  5 = Certificate does not have a private key
  •  6 = Unknown error
   Therefore, the error code "already signed" is no longer required.  This function determines if incremental save is required. Another modification is that the signed document is removed from the document list once it is signed and saved. This prevents signing a document twice without having the PDF file loaded beforehand.



-------------
Michel



Replies:
Posted By: DELBEKE
Date Posted: 23 Sep 08 at 10:41AM
Hi michel
 
Some précisions, the incremental save is used internaly by the signing function, you are right, but can be also used for others purposes, instead of the legacy save functions.
 
There is no DigiCoSign function, just the DigiSign function. These one can make the co-signing as well the simple signing.
 


Posted By: Ingo
Date Posted: 23 Sep 08 at 5:18PM

Hello!

I've found problems working with the file tinyhash.pas...
It's using functions from a newer version of the advapi32.dll.
Older versions (before windows xp) of this dll doesn't offer this functions - so there are problems on older windows-installations like win2000 and winNT.

I don't want to put a new version of the advapi32.dll into my installation-package. Additionally you have to deregister an existing old advapi32.dll and register the new installed version. Perhpas it's not legal to distribute the new advapi32.dll... so my questionmainly to Jean-Luc et Loic:
Is it possible to change again to the capicom-module?

Best regards,
Ingo



Posted By: DELBEKE
Date Posted: 25 Sep 08 at 5:34AM
Hi, tinyhash removed
I've found a pure delphi code for calculating the Sha1 hash. Added to the unit uPDFDigest (there was a code for the md5 algorythm inside)
I have to rewrite the uPDFDocument to use the md5 functions from unit uPDFDigest
I'll do a new release with theses improvements and send it to Michel.
Note that the improvment for Subsetted Type 3 font will be inside too (unit uPDFFontConst and uPDFRenderer)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk