PdfDocumentForms
OfficeIMO.Pdf
Fluent simple AcroForm operations for a PdfDocument.
Inheritance
- object
- PdfDocumentForms
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property PdfDocument.Forms
Methods
public PdfDocument AppendRevision(IReadOnlyDictionary<string, string> fieldValues, bool keepNeedAppearances = true) #Appends a simple AcroForm field-value revision without rewriting the existing PDF bytes.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
- keepNeedAppearances bool = true
Returns
PdfDocumentpublic PdfDocument AppendRevision(IReadOnlyDictionary<string, string> fieldValues, PdfIncrementalFormFieldUpdateOptions? formOptions, CancellationToken cancellationToken = default) #Appends a simple AcroForm field-value revision without rewriting the existing PDF bytes.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
- formOptions OfficeIMO.Pdf.PdfIncrementalFormFieldUpdateOptions?
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument AppendRevision(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues, bool keepNeedAppearances = true) #Appends a simple AcroForm field-value revision, including multi-value fields, without rewriting the existing PDF bytes.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
- keepNeedAppearances bool = true
Returns
PdfDocumentpublic PdfDocument AppendRevision(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues, PdfIncrementalFormFieldUpdateOptions? formOptions, CancellationToken cancellationToken = default) #Appends a simple AcroForm field-value revision, including multi-value fields, without rewriting the existing PDF bytes.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
- formOptions OfficeIMO.Pdf.PdfIncrementalFormFieldUpdateOptions?
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfAcroFormEditResult Edit(Action<PdfAcroFormEditSession> edit) #Transactionally creates or edits fields, widgets, ordering, and selective flattening.
Parameters
- edit System.Action<OfficeIMO.Pdf.PdfAcroFormEditSession>
Returns
PdfAcroFormEditResultpublic PdfAcroFormEditResult Edit(Action<PdfAcroFormEditSession> edit, PdfFormFillerOptions appearanceOptions, CancellationToken cancellationToken = default) #Transactionally creates or edits fields using the configured embedded-font policy for generated appearances.
Parameters
- edit System.Action<OfficeIMO.Pdf.PdfAcroFormEditSession>
- appearanceOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfAcroFormEditResultpublic PdfFormDataSet ExportData() #Exports readable field values as a typed data set.
Returns
PdfFormDataSetpublic PdfDocument Fill(IReadOnlyDictionary<string, string> fieldValues) #Creates a new PDF with simple form fields filled.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
Returns
PdfDocumentpublic PdfDocument Fill(IReadOnlyDictionary<string, string> fieldValues, PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with simple form fields filled.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument Fill(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues) #Creates a new PDF with simple form fields filled, including multi-value fields.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
Returns
PdfDocumentpublic PdfDocument Fill(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues, PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with simple form fields filled, including multi-value fields.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument FillAndFlatten(IReadOnlyDictionary<string, string> fieldValues) #Creates a new PDF with simple form fields filled and flattened.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
Returns
PdfDocumentpublic PdfDocument FillAndFlatten(IReadOnlyDictionary<string, string> fieldValues, PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with simple form fields filled and flattened.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, string>
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument FillAndFlatten(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues) #Creates a new PDF with simple form fields filled and flattened, including multi-value fields.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
Returns
PdfDocumentpublic PdfDocument FillAndFlatten(IReadOnlyDictionary<string, PdfFormFieldValue> fieldValues, PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with simple form fields filled and flattened, including multi-value fields.
Parameters
- fieldValues System.Collections.Generic.IReadOnlyDictionary<string, OfficeIMO.Pdf.PdfFormFieldValue>
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument Flatten() #Creates a new PDF with simple form fields flattened.
Returns
PdfDocumentpublic PdfDocument Flatten(PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with simple form fields flattened.
Parameters
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument Flatten(params string[] fieldNames) #Creates a new PDF with only the named simple form fields flattened.
Parameters
- fieldNames string[]
Returns
PdfDocumentpublic PdfDocument Flatten(IReadOnlyCollection<string> fieldNames, PdfFormFillerOptions formOptions, CancellationToken cancellationToken = default) #Creates a new PDF with only the named simple form fields flattened.
Parameters
- fieldNames System.Collections.Generic.IReadOnlyCollection<string>
- formOptions OfficeIMO.Pdf.PdfFormFillerOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfFormInteractionInfo GetForInteraction() #Reads the fields and widgets needed to display and fill a form, without extracting page content.
Returns
PdfFormInteractionInfopublic PdfDocument ImportData(PdfFormDataSet data, PdfFormFillerOptions? options = null, CancellationToken cancellationToken = default) #Imports a typed data set through the validated form filler.
Parameters
- data OfficeIMO.Pdf.PdfFormDataSet
- options OfficeIMO.Pdf.PdfFormFillerOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfDocument ImportXfdf(string xfdf, PdfFormFillerOptions? options = null, CancellationToken cancellationToken = default) #Imports XFDF through the validated form filler.
Parameters
- xfdf string
- options OfficeIMO.Pdf.PdfFormFillerOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfDocumentpublic PdfStaticFormRecognitionReport RecognizeStaticLayout(PdfStaticFormRecognitionOptions? options = null, IReadOnlyList<PdfStaticFormTextEvidence>? ocrText = null, CancellationToken cancellationToken = default) #Proposes fields from static page outlines and labels without changing the document.
Parameters
- options OfficeIMO.Pdf.PdfStaticFormRecognitionOptions? = null
- ocrText System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfStaticFormTextEvidence>? = null
- cancellationToken System.Threading.CancellationToken = default