Print Page | Close Window

error code 11 could not apply signature

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=3996
Printed Date: 27 Jan 23 at 9:49PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: error code 11 could not apply signature
Posted By: dsnglfedh
Subject: error code 11 could not apply signature
Date 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?



Replies:
Posted By: Ingo
Date 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



Posted By: dsnglfedh
Date 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


Posted By: tfrost
Date 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.


Posted By: Ingo
Date 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



Posted By: dsnglfedh
Date 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.




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