menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedFieldImportError - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedFieldImportError

    Represents errors on importing loaded field.

    Inheritance
    System.Object
    PdfLoadedFieldImportError
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfLoadedFieldImportError : Object
    Examples
    //Load an existing document.
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Load the existing form
    PdfLoadedForm form = doc.Form;      
    //Import
    PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true);
    //Get the exception.
    Exception exception = error[0].Exception;
    //Get field
    PdfLoadedField field = error[0].Field;
    doc.Save("Import.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Load the existing form
    Dim form As PdfLoadedForm = doc.Form
    'Import
    Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True)
    'Get the exception.
    Dim exception As Exception = [error](0).Exception
    'Get field
    Dim field As PdfLoadedField = [error](0).Field
    doc.Save("Import.pdf")
    doc.Close(True)

    Properties

    Exception

    Gets the exception.

    Declaration
    public Exception Exception { get; }
    Property Value
    Type Description
    System.Exception

    The exception.

    Examples
    //Load an existing document.
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Load the existing form
    PdfLoadedForm form = doc.Form;      
    //Import
    PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true);
    //Get the exception.
    Exception exception = error[0].Exception;
    //Get field
    PdfLoadedField field = error[0].Field;
    doc.Save("Import.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Load the existing form
    Dim form As PdfLoadedForm = doc.Form
    'Import
    Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True)
    'Get the exception.
    Dim exception As Exception = [error](0).Exception
    'Get field
    Dim field As PdfLoadedField = [error](0).Field
    doc.Save("Import.pdf")
    doc.Close(True)

    Field

    Gets the field.

    Declaration
    public PdfLoadedField Field { get; }
    Property Value
    Type Description
    PdfLoadedField

    The field.

    Examples
    //Load an existing document.
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Load the existing form
    PdfLoadedForm form = doc.Form;      
    //Import
    PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true);
    //Get the exception.
    Exception exception = error[0].Exception;
    //Get field
    PdfLoadedField field = error[0].Field;
    doc.Save("Import.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Load the existing form
    Dim form As PdfLoadedForm = doc.Form
    'Import
    Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True)
    'Get the exception.
    Dim exception As Exception = [error](0).Exception
    'Get field
    Dim field As PdfLoadedField = [error](0).Field
    doc.Save("Import.pdf")
    doc.Close(True)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved