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

Notification

Icon
Error

Options
Go to last post Go to first unread
claudiu  
#1 Posted : Friday, August 2, 2019 5:26:46 PM(UTC)
claudiu

Rank: Newbie

Groups: Registered
Joined: 6/6/2019(UTC)
Posts: 4
Canada

Thanks: 2 times
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.

Edited by user Friday, August 2, 2019 6:00:08 PM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Sunday, August 4, 2019 2:48:28 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 814

Thanks: 1 times
Was thanked: 100 time(s) in 98 post(s)
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
thanks 1 user thanked Paul Rayman for this useful post.
claudiu on 8/14/2019(UTC)
Users browsing this topic
Forum Jump  
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.