Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to get a list of all the signature fields in a PDF?
Rank: Newbie
Groups: Registered
Joined: 6/6/2019(UTC) Posts: 5  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 3:00:08 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 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
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to get a list of all the signature fields in a PDF?
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close