Print Page | Close Window

Issue when adding Signature to the file

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2772
Printed Date: 27 Jan 26 at 10:19PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Issue when adding Signature to the file
Posted By: Marat.Chariev
Subject: Issue when adding Signature to the file
Date Posted: 31 Oct 13 at 2:15PM

I am facing a strange  issue when  trying to add Visual signature field to existed PDF file. Existed PDF file (created with the QuickPDF.DLL) has 3 pages with 2 Form fields on each page, lets name it Field_1 and Field_2. So, pages 1,2, and 3  have identical value in those fields - Field_1 and Field_2.

There is no issues at this stage, I can open PDF file, modify the value of those fields, and save it. Further I try to add Visual digital signature follow exact this instructions I found in this Forum’s thread http://www.quickpdf.org/forum/topic2563&OB=ASC.html" rel="nofollow - http://www.quickpdf.org/forum/topic2563&OB=ASC.html (see Rowan’s message):

 

 

      SignProcessID := DPL.NewSignProcessFromFile('TheUnsignedFile.pdf', '');

      if (SignProcessID > 0) then

      begin

        DPL.SetSignProcessPFXFromFile(SignProcessID, 'qpl_test.pfx', 'testing');

        DPL.SetSignProcessInfo(SignProcessID, 'To test digital signatures', 'The World', 'Contact me');

        DPL.SetSignProcessField(SignProcessID, 'Contract Signature');

        DPL.SetSignProcessFieldBounds(SignProcessID, 100, 600, 200, 100);

        DPL.SetSignProcessFieldImageFromFile(SignProcessID, 'visualsignature.jpg', 0);

        DPL.EndSignProcessToFile(SignProcessID, 'TheSignedFile.pdf');

      end;

 

 

Here is the issue: Resulting PDF file has a Visual Digital signature on the first page, but missing Field_1 and Field_2 on pages 2 and 3.

I noticed that DPL.EndSignProcessToFile() returns 0, and I have a filling I am missing something or doing something wrong. Any thoughts?  

 

Thanks

Marat




Replies:
Posted By: Ingo
Date Posted: 01 Nov 13 at 11:41AM
Hi Marat,
 
i would advice you to change the form fieldnames of page 2 and 3 to unique names and then try again.
I don't know the actual state regarding form field issues but in the past there were probs with multiple identical formfieldnames in a document.
Try it.
 
Cheers, Ingo


-------------
Cheers,
Ingo



Posted By: Marat.Chariev
Date Posted: 01 Nov 13 at 5:06PM
Thanks, Indigo
Using unique names for each field resolved the issue.
Now I am facing another one... I am using same PDF file with 3 pages and 2 fields on each page with unique names. But this time I am trying to place the visual signature on the third page. To accomplish that I use follow command:

lnResult = DPLSelectPage(lnInstanceID, 3)

 
But the signature always appears on the first page, and DPLPageCount(lnInstanceID) returns 1.
I guess that is because I use DPLNewSignProcessFromFile() command instead of DPLLoadFromFile() 
Is there any way to place Visual Digital Signature on the page other than first page?
 
 
 

 

 

 

  
 


Posted By: Marat.Chariev
Date Posted: 01 Nov 13 at 5:07PM
Sorry, I mean Ingo Embarrassed


Posted By: Rowan
Date Posted: 18 Nov 13 at 12:29AM
Hello Marat,

You can control the page on which the digital signature is placed by calling the SetSignProcessFieldPage function.

Cheers,
- Rowan.


Posted By: Marat.Chariev
Date Posted: 21 Nov 13 at 3:02PM
Thanks, Rowan
That is exactly what I was looking for.

Regards
Marat



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