-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
28 lines (21 loc) · 847 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using DevExpress.Pdf;
namespace GetCheckboxCheckedValue
{
class Program
{
static void Main(string[] args)
{
// Load a document with an interactive form.
PdfDocumentProcessor processor = new PdfDocumentProcessor();
processor.LoadDocument("..\\..\\InteractiveForm.pdf");
PdfDocumentFacade documentFacade = processor.DocumentFacade;
PdfAcroFormFacade acroForm = documentFacade.AcroForm;
// Obtain the check box form field:
PdfCheckBoxFormFieldFacade genderField = acroForm.GetCheckBoxFormField("Female");
// Specify a checked value for the Female form field:
genderField.IsChecked = true;
// Save the modified document.
processor.SaveDocument("..\\..\\Result.pdf");
}
}
}