Print Page | Close Window

QuickPDF v6.04.3 - Added Digital Signatures

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=941
Printed Date: 23 Nov 24 at 7:26AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF v6.04.3 - Added Digital Signatures
Posted By: Michel_K17
Subject: QuickPDF v6.04.3 - Added Digital Signatures
Date Posted: 01 Sep 08 at 1:31PM
Delbeke has managed to do something that we never thought we would see with this library: a major new feature. Well done Delbeke! He has added support for digital signatures.

This new version is provided by member_profile.asp?PF=129 - Delbeke and is available in the source code area [ http://www.quickpdf.org/forum/forum_posts.asp?TID=940 - here ]. Please note that you need to own the source code and have the password to access this area of the forum.

A "pre-compiled" and "DCU" versions of the library will be made available in the near future once development and testing of the new version has been completed.

List of Changes
  • Added ability to digitally sign a PDF file.
Notes
  • Note that this code is preliminary and that checks and security test code still needs to be added. However, if all of your parameters are correct, the program works!
  • You need to have CAPICOM.dll registered on your machine. This file is distributed by Microsoft. More information is available from Microsoft [ http://msdn.microsoft.com/en-us/library/aa388154.aspx - here ].

Instructions on New DigiSign Function
  • Load/Create a document usual way
  • Select the page you want the signature to be applied
  • Use the new DigiSign funtion. The parameters are:
    • DestFileName => The final name for the signed pdf
    • ImgFileName  => The Logo you want to apply as signature.
      • This parameter is optional. You can Leave it blank if you want.
      • The color white is used as the transparent color.
      • The image file formats accepted are the same as those used by AddImageFromFIle
    • Name => the signer's name
    • Reason => the reason for signing
      • Optional. May be left blank
      • Example: Approved
    • Location => The signer's location
      • Optional. May be left blank
      • Example: London
    • ContactInfo => the signer's contact info
      • Optional. May be left blank
      • Example: e-mail address, phone number, etc.
    • Certificate => the certificate's path and filename
      • Accepts certificates with the ".pfx" extension
      • You can create this certificate it by exporting your signature from the windows certificate store.
    • PassWord => the password for this certificate
    • Left,Top,Width,Height => the position and size for the signature
      • if Width and/or Height is set to zero, the signature is invisible.

Visual Basic Sample Code

  m_oDoc.LoadFromFile "c:\PdfVisu\PdfTest\test.pdf"
  m_oDoc.SelectPage (m_oDoc.PageCount)
  m_oDoc.SetOrigin 1
  m_oDoc.SetMeasurementUnits 1
  lRet = m_oDoc.DigiSign("c:\PdfVisu\PdfTest\TestSign.pdf", _
                  "c:\PdfVisu\PdfTest\Signat1.JPG", _
                  "JL Delbeke", _
                  "Why not", _
                  "France", _
                  "Jean-Luc@Delbeke.fr", _
                  "c:\cert.pfx", _
                  "MyPassword", _
                  10, 10, 30, 30)

Delphi Sample Code

 Qp.LoadFromFile('C:\PdfVisu\PdfTest\Test.pdf');
 Qp.SelectPage(Qp.PageCount) ;
 Qp.SetOrigin(1);
 Qp.SetMeasurementUnits(1);
 Qp.DigiSign('C:\PdfVisu\PdfTest\TestSign.Pdf',
             'C:\PdfVisu\PdfTest\Signat1.jpg',
             'Jean-Luc Delbeke',
             'Why Not',
             'France',
             'Jean-Luc@Delbeke.fr',
             'c:\Cert.pfx',
             'MyPassword',10,10,30,30);




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



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