EldoS | Feel safer!

Software components for data protection, secure storage and transfer

What does "EElPDFDocumentError: Internal error ElPDFDocument.InsertActualSignatureInformation.2" mean?

This error happens when there's not enough space available for the signature in the document.

Here's what happens:

When the signature is made for the PDF document, there's certain free space reserved in the document, and then the actual signature data is inserted into this space. PDF (and especially PAdES) signature is a complex structure, and during signing various revocation- and timestamping-related information is retrieved and assembled into this structure. The total size of this information is not known before the procedure (eg. you make a signature, then it's timestamped; without making a signature you can't get a timestamp and without having a timestamp you can't know how much space is needed to accomodate timestamp-related information).

You can reserve some extra space if you expect the signature to be large, using Signature.ExtraSpace property. However, as there's no reliable way to estimate the extra size needed, you need to do the following:
1) open the document;
2) set ExtraSpace to some value (use larger value with each iteration);
3) try to sign the document;
4) if error happens, close the document and proceed to step one with increased value for ExtraSpace

Return to the list

|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!