Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - QuickPDF v6.04.3 - Added Digital Signatures
  FAQ FAQ  Forum Search   Register Register  Login Login

QuickPDF v6.04.3 - Added Digital Signatures

 Post Reply Post Reply
Author
Message
Michel_K17 View Drop Down
Newbie
Newbie
Avatar
www.exp-systems.com

Joined: 25 Jan 03
Status: Offline
Points: 297
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michel_K17 Quote  Post ReplyReply Direct Link To This Post Topic: QuickPDF v6.04.3 - Added Digital Signatures
    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 Delbeke and is available in the source code area [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 [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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store