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

Notification

Icon
Error

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

Rank: Newbie

Groups: Registered
Joined: 6/6/2019(UTC)
Posts: 5
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)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 3 times
Was thanked: 109 time(s) in 106 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)
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.