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 - error code 11 could not apply signature
  FAQ FAQ  Forum Search   Register Register  Login Login

error code 11 could not apply signature

 Post Reply Post Reply
Author
Message
dsnglfedh View Drop Down
Beginner
Beginner


Joined: 03 Nov 22
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote dsnglfedh Quote  Post ReplyReply Direct Link To This Post Topic: error code 11 could not apply signature
    Posted: 03 Nov 22 at 9:38AM
using Debenu 18.11 getting error while calling sign process

"Could not apply signature". error code 11. from the GetSignProcessResult.

begin
  DPL.SetSignProcessPFXFromStream(SignProcessID, KeyStream, password);
  DPL.SetSignProcessInfo(SignProcessID, Reason, Location, ContactInfo);
  DPL.SetSignProcessField(SignProcessID, 'DigitalSignature');
  DPL.SetSignProcessFieldBounds(SignProcessID, SignLogoLeft, SignLogoTop, 95, 60);  
  SealJpeg.SaveToStream(Stream);
  DPL.SetSignProcessFieldImageFromStream(SignProcessID, Stream, 0);
  DPL.AddSignProcessOverlayText(SignProcessID, 27, 0, 8, 'Declatrion', DateTimeOfSeal);
  DPL.EndSignProcessToFile(SignProcessID, DocumentPath + postfixFileName);
  DPL.GetSignProcessResult(SignProcessID);

  // answer here is 11 and not 1.
end;

what could be the reason. or how to investigate this case?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3463
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 03 Nov 22 at 10:49AM
Hi Barak :)

After each call you can insert a LastErrorCode to check where's the first error in this process.
The 11 at the end is only a common error which helps less ;-)
What can help: What are the properties of the pdf-file? In which path the file is processed? How are the policies there?

Cheers and welcome here,
Ingo



Cheers,
Ingo

Back to Top
dsnglfedh View Drop Down
Beginner
Beginner


Joined: 03 Nov 22
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote dsnglfedh Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 22 at 9:00AM
Thank you for the reply. Adding 
DPL.LastErrorCode;

yields a '01' 
which is not in the manual:  LastErrorCode page 532 out of 950. pdf 12.12 referance

the error code is after 
DPL.SetSignProcessFieldImageFromStream


Edited by dsnglfedh - 06 Nov 22 at 9:02AM
Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 410
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 22 at 12:40PM
Please show the actual code where you call the LastErrorCode function and display its return value. In my source version of QPDF there is nowhere that this value is set to 1. And since it is an integer, how did its value become '01'? Note also that when you call the function, the internal value it reports is zeroized after the result is set, so you must check or display it after each call.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3463
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 22 at 3:25PM
The returning value from LastErrorCode is always a three digits value.
My sugestion was to insert a lasterrorcode after EACH function call to know directly where's something wrong the very first time.

Cheers,
Ingo

Back to Top
dsnglfedh View Drop Down
Beginner
Beginner


Joined: 03 Nov 22
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote dsnglfedh Quote  Post ReplyReply Direct Link To This Post Posted: 07 Nov 22 at 8:59AM
Sorry i read the log wrongly.
all the last error code is 0.

the debug is :
1 added DigitalSignature field. Last Error Code:0
1 postion. Last Error Code:0
1 image. Last Error Code:0
1 text overlay. Last Error Code:0
0 End sign process. Last Error Code:0
11 GetSignProcessResult.LastErrorCode:0
11 write to file 
1 release

At the Site we asked to configuring the anti-virus to exclude the folder. and it works.Confused

Thank you for all the answers.

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