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 > I need help - I can help
  New Posts New Posts RSS Feed - Issue when adding Signature to the file
  FAQ FAQ  Forum Search   Register Register  Login Login

Issue when adding Signature to the file

 Post Reply Post Reply
Author
Message
Marat.Chariev View Drop Down
Team Player
Team Player


Joined: 18 Oct 13
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marat.Chariev Quote  Post ReplyReply Direct Link To This Post Topic: Issue when adding Signature to the file
    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 (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

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Marat.Chariev View Drop Down
Team Player
Team Player


Joined: 18 Oct 13
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marat.Chariev Quote  Post ReplyReply Direct Link To This Post 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?
 
 
 

 

 

 

  
 
Back to Top
Marat.Chariev View Drop Down
Team Player
Team Player


Joined: 18 Oct 13
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marat.Chariev Quote  Post ReplyReply Direct Link To This Post Posted: 01 Nov 13 at 5:07PM
Sorry, I mean Ingo Embarrassed
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Marat.Chariev View Drop Down
Team Player
Team Player


Joined: 18 Oct 13
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marat.Chariev Quote  Post ReplyReply Direct Link To This Post Posted: 21 Nov 13 at 3:02PM
Thanks, Rowan
That is exactly what I was looking for.

Regards
Marat
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