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!
![]() |
Issue when adding Signature to the file |
Post Reply
|
| Author | |
Marat.Chariev
Team Player
Joined: 18 Oct 13 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Topic: Issue when adding Signature to the filePosted: 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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Marat.Chariev
Team Player
Joined: 18 Oct 13 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Marat.Chariev
Team Player
Joined: 18 Oct 13 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 Nov 13 at 5:07PM |
|
Sorry, I mean Ingo
|
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Marat.Chariev
Team Player
Joined: 18 Oct 13 Status: Offline Points: 24 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Nov 13 at 3:02PM |
|
Thanks, Rowan
That is exactly what I was looking for. Regards Marat |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store