Digital Certificate PDF

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Digital Certificate PDF

Post by atul » Mon Mar 03, 2008 8:11 pm

Hi,

I have downloaded the SDK but couldn't find any VB code sample on how to apply Digital Signature on existing PDF File.

Can you please provide a code for VB ?

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Mar 03, 2008 8:46 pm

Hi,

There is currently no example showing this specific function - please see the help file functions :

XCPRO35.chm : PXCp_SignDocumentUsingPFXW and PXCp_SignDocumentW

if you are still having problems please advise and I will ask our dev team to try and assist with VB example code.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Post by atul » Mon Mar 03, 2008 9:30 pm

Hi,

I tried to look into your other examples. It looks bit difficult for me to write a code for Digital Signature.

If you can ask your developer to write a simple code to digitally sign existing PDF, that will be of great help. If this works with my PDF files, I will purchase this component immediately.

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Tue Mar 04, 2008 9:41 am

Hi,

the dev team have agreed to provide this and should be ready later today.

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Post by atul » Wed Mar 05, 2008 2:57 am

Thanks. Looking forward to receiving the same.

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Mar 05, 2008 5:20 pm

Please see attached.
Attachments
VB_XCPRO35_Sign.zip
digi sig example
(19.2 KiB) Downloaded 225 times
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Signature Appearance

Post by atul » Wed Mar 05, 2008 9:21 pm

Hi,

It worked!! Thanks a lot. I have 2 more questions.

1. Although, I have included C:\Program Files\Tracker Software\PDF-XChange PRO 3 SDK\Examples\Bin in path (System Variable), from VB environment, it displays warning xcpro35.dll not found. However, when I copy the exe file in bin folder, it works.

2. Can we change the signature appearance ? e.g. if we want to display

"Signed at 04.03.2008 21:52 with Mr. X's digital certificate. No further signature is necessary"

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Mar 06, 2008 9:34 am

Hi,

1: I believe this is a well known issue with VB.

2: yes, by passing the required string as a Reason parameter, and set the Flags parameter as a value Sign_TX_Reason

or as Location parameter and Flag = Sign_TX_Location

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Good Job

Post by atul » Fri Mar 07, 2008 6:29 pm

Hi,

Thanks for your help. As promised, we have purchased the SDK.

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Mar 07, 2008 7:39 pm

Excellent - thanks Atul ! :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Digital Signature on Multiple Pages

Post by atul » Thu Mar 13, 2008 4:25 am

Hi,

How can I place digital signature on multiple pages e.g. 1 & 3 in a single existing PDF document. I am using PXCp_SignDocumentUsingPFXW to sign the document.

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Mar 13, 2008 11:19 am

Hi Atul,

It is only possible to add a single Digi Sig to a standard file, it is now technically possible in the PDF format to add multiple signatures to file using the incremental save options when writing a file - but we currently do not support this - though we expect to add this later this year in release 4.5 probably - some way off just yet.

The downside of this option however - is that a version of the PDF is stored within the file for every saved incremental change - meaning that if you change the file incrementally 5 times - you will in fact have 5 complete versions of the PDF stored within the file - making it potentially very, very large !
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

USB Token

Post by atul » Thu Mar 13, 2008 4:43 pm

Hi,

Ok. How can I use Digital Signature stored on USB Token ?

Regards,

Atul

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Post by Tracker - Clarion Support » Thu Mar 13, 2008 8:06 pm

When a USB Token containing a digital certificate is inserted into the USB port, any certificates are registered in the Windows "certificate store" and may be accessed by using the certificate number in the PXCp_SignDocumentW function.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

PXCp_SignDocumentW in VB

Post by atul » Fri Mar 14, 2008 6:52 am

Hi,

You are right. USB token puts the certificate in Windows Store. I can get the certificate details using Chilkat's Certificate DLL (See attached Sample project to list certificates from store. Register DLL before running the project). However, PXCp_SignDocumentW requires pointer to certificate context. I tried a lot but failed.

I have already purchased the SDK kit. But without this function, I can not use it in my application. My sincere request is please help me to use this function in VB.

One sample application in VB using this function will be a great help.

Best Regards,

Atul
Attachments
Project1.zip
(113.46 KiB) Downloaded 226 times

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Mar 14, 2008 3:04 pm

Hi Atul,

will see what can be done.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Hi

Post by atul » Sun Mar 16, 2008 7:24 pm

Hi,

I managed it. Thanks.

Regards,

Atul

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Mar 17, 2008 4:24 am

Excllent - thanks Atul.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Re: Digital Certificate PDF

Post by atul » Tue Apr 21, 2009 11:16 am

Hi,

I am back after one year.

I just saw one digitally signed PDF document where, if the digital signature is valid, there is one additional check mark that is printed and when it is unknown, addional question mark is displayed that is printed. See attached.

How to do that using the PDF SDK ?

Atul
Attachments
Doc1.zip
(24.13 KiB) Downloaded 216 times

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Digital Certificate PDF

Post by Ivan - Tracker Software » Wed Apr 22, 2009 5:39 am

We did realize to provide different appearances for different states of signature because viewer app place its own mark which indicates signature states (note top-right icons on your signatures).
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

atul
User
Posts: 21
Joined: Mon Mar 03, 2008 6:55 pm

Re: Digital Certificate PDF

Post by atul » Wed Apr 22, 2009 6:19 am

Do you mean that we can manage it today using current APIs ?

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Digital Certificate PDF

Post by Ivan - Tracker Software » Sun Apr 26, 2009 5:34 pm

sorry, was mistyping into my previous post: intead of "We did realize ..." should be "We didn't realize .."
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Post Reply