Class PclLoadOptions
Contents
[
Hide
]PclLoadOptions class
Represents options for loading(import) PCL file into pdf document.
public sealed class PclLoadOptions : LoadOptions, IPipelineOptions
Constructors
Name | Description |
---|---|
PclLoadOptions() | The default constructor. |
Properties
Name | Description |
---|---|
BatchSize { get; set; } | Defines batch size if batched conversion is applicable to source and destination formats pair. |
DisableFontLicenseVerifications { get; set; } | Gets or sets flag to disable any license restrictions for all fonts while loading the file. When true , allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default false . |
LoadFormat { get; } | Represents file format which LoadOptions describes. |
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 Load operation continues, however the user may also return Abort in which case the Load operation should cease. |
Fields
Name | Description |
---|---|
ConversionEngine | Defines conversion engine that will be used for conversion |
Exceptions | List of conversion errors. |
SupressErrors | Gets or sets boolean value which indicates will PCL conversion errors should be supressed. |
Examples
The following example shows how to convert PCL file to PDF file
[C#]
// The path to the documents directory.
string dataDir = @"YOUR_DATA_DIRECTORY";
// The path to your PCL File.
string pclFile = Path.Combine(dataDir, "PCL-to-PDF.pcl");
// The path to output PDF File.
string pdfFile = Path.Combine(dataDir, "PCL-to-PDF.pdf");
// Initialize PclLoadOptions
PclLoadOptions pclLoadOptions = new PclLoadOptions();
using (Document pdfDocument = new Document(pclFile, pclLoadOptions))
{
// Save PDF file
pdfDocument.Save(pdfFile);
}
[VB.NET]
' The path to the documents directory.
Dim dataDir As String = "YOUR_DATA_DIRECTORY"
' The path to your PCL File.
Dim pclFile = Path.Combine(dataDir, "PCL-to-PDF.pcl")
' The path to output PDF File.
Dim pdfFile = Path.Combine(dataDir, "PCL-to-PDF.pdf")
' Initialize PclLoadOptions
Dim pclLoadOptions As PclLoadOptions = New PclLoadOptions()
Using pdfDocument As Document = New Document(pclFile, pclLoadOptions)
' Save PDF file
pdfDocument.Save(pdfFile)
End Using
See Also
- class LoadOptions
- interface IPipelineOptions
- namespace Aspose.Pdf
- assembly Aspose.PDF