Class XmlSaveOptions
Contents
[
Hide
]XmlSaveOptions class
Save options for export to Xml format
public class XmlSaveOptions : SaveOptions
Constructors
Name | Description |
---|---|
XmlSaveOptions() | The default constructor. |
Properties
Name | Description |
---|---|
CacheGlyphs { get; set; } | Gets or sets boolean value which indicates if will font glyphs be cached while preparing aps pages. Improves performance of conversion pdf to other formats but increases memory consumption. |
CloseResponse { get; set; } | Gets or sets boolean value which indicates will Response object be closed after document saved into response. |
SaveFormat { get; } | Format of data save. |
WarningHandler { get; set; } | Callback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Save operation continues, however the user may also return Abort in which case the Save operation should cease. |
Examples
The following example shows how to convert PDF file to XML file
[C#]
// The path to the documents directory.
string dataDir = "YOUR_DATA_DIRECTORY";
// The path to your PDF File.
var pdfFile = Path.Combine(dataDir, "PDF-to-XML.pdf");
// The path to output XML File.
var xmlFile= Path.Combine(dataDir, "PDF-to-XML.xml");
using (Document pdfDocument = new Document(pdfFile)){
// Initialize XmlSaveOptions
XmlSaveOptions saveOptions = new XmlSaveOptions();
// Save XML file
pdfDocument.Save(xmlFile, saveOptions);
}
[VB.NET]
' The path to the documents directory.
Dim dataDir As String = "YOUR_DATA_DIRECTORY"
' The path to your PDF File.
Dim pdfFile = Path.Combine(dataDir, "PDF-to-XML.pdf")
' The path to output XML File.
Dim xmlFile = Path.Combine(dataDir, "PDF-to-XML.xml")
Using pdfDocument As Document = New Document(pdfFile)
' Initialize XmlSaveOptions
Dim saveOptions As XmlSaveOptions = New XmlSaveOptions()
' Save XML file
pdfDocument.Save(xmlFile, saveOptions)
End Using
See Also
- class SaveOptions
- namespace Aspose.Pdf
- assembly Aspose.PDF