Class PdfLoadedFieldImportError
Represents errors on importing loaded field.
Inheritance
System.Object
PdfLoadedFieldImportError
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.NET.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)