logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Saturday, August 3, 2019 11:48:28 PM(UTC)
 
Quote:
Is it possible to get a list of all the signature fields in a PDF and check if they contain a signature or not?

It is possible. Something like this

Code:
using(var doc = PdfDocument.Load(@"e:\0\1GB\signatureFields.pdf", new PdfForms()))
{
    foreach(var field in doc.FormFill.InterForm.Fields)
    {
        if (field.Type != FormFieldTypesEx.Sign)
            continue;

        if (field.Dictionary.ContainsKey("V"))
        {
            //the field contains a signature
            //your code here
        }
    }
}


Quote:
is it possible to add use pdfium to add signature fields to a pdf file

It is possible at a low level. You can form the appropriate dictionaries according to the PDF specification (p. 695) here: https://www.adobe.com/co...ve/pdf_reference_1-7.pdf
claudiu Posted: Friday, August 2, 2019 2:26:46 PM(UTC)
 
Is it possible to get a list of all the signature fields in a PDF and check if they contain a signature or not?
Also, is it possible to add use pdfium to add signature fields to a pdf file.