Table of Contents

Class PdfLoadedFieldImportError

Namespace
Syncfusion.Pdf.Parsing
Assembly
Syncfusion.Pdf.Portable.dll

Represents errors on importing loaded field.

public class PdfLoadedFieldImportError
Inheritance
PdfLoadedFieldImportError
Inherited Members

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.

public Exception Exception { get; }

Property Value

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.

public PdfLoadedField Field { get; }

Property Value

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)