Class PdfAOptionsBase

Class PdfAOptionsBase

Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll

Represents the base class for the Aspose.Pdf.Plugins.PdfAConverter plugin options. This class provides properties and methods for configuring the PDF/A conversion and validation process.

public abstract class PdfAOptionsBase : IPluginOptions

Inheritance

objectPdfAOptionsBase

Derived

PdfAConvertOptions, PdfAValidateOptions

Implements

IPluginOptions

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

PdfAOptionsBase()

protected PdfAOptionsBase()

Properties

AlignText

Gets or sets a value indicating whether additional means are necessary to preserve text alignment during the PDF/A conversion process.

public bool AlignText { get; set; }

Property Value

bool

Remarks

When set to true, the conversion process will attempt to restore the original text segment bounds. For the most of the documents there is no need to change this property from the default false value, as the text alignment doesn’t change during the default conversion process.

ErrorAction

Gets or sets the action to be taken for objects that cannot be converted.

public ConvertErrorAction ErrorAction { get; set; }

Property Value

ConvertErrorAction

ExcludeFontsStrategy

Gets or sets the strategy for removing fonts to minimize the output file size during the PDF/A conversion process.

public PdfFormatConversionOptions.RemoveFontsStrategy ExcludeFontsStrategy { get; set; }

Property Value

PdfFormatConversionOptions.RemoveFontsStrategy

Remarks

This property allows you to control how fonts are handled during the conversion process. You can choose to remove duplicated fonts, remove similar fonts with different widths, or subset fonts.

FontEmbeddingOptions

Gets the options to process fonts that cannot be embedded into the document.

public FontEmbeddingOptions FontEmbeddingOptions { get; }

Property Value

FontEmbeddingOptions

Remarks

The PDF/A standard requires that all fonts must be embedded into the document. This property provides options for handling cases when it’s not possible to embed some fonts because they are absent on the destination PC.

IccProfileFileName

Gets or sets the filename of the ICC (International Color Consortium) profile to be used for the PDF/A conversion in place of the default one.

public string IccProfileFileName { get; set; }

Property Value

string

Inputs

Gets collection of data sources

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

IsLowMemoryMode

Gets or sets a value indicating whether the low memory mode is enabled during the PDF/A conversion process.

public bool IsLowMemoryMode { get; set; }

Property Value

bool

LogOutputSource

Gets or sets the data source for the log output.

public IDataSource LogOutputSource { get; set; }

Property Value

IDataSource

NonSpecificationFlags

Gets the flags that control the PDF/A conversion for cases when the source PDF document doesn’t correspond to the PDF specification.

public PdfANonSpecificationFlags NonSpecificationFlags { get; }

Property Value

PdfANonSpecificationFlags

OptimizeFileSize

Gets or sets a value indicating whether to try to reduce the file size during the PDF/A conversion process.

public bool OptimizeFileSize { get; set; }

Property Value

bool

Remarks

When set to true, the conversion process will attempt to minimize the resulting file size. This might affect the conversion process performance.

PdfAVersion

Gets or sets the version of the PDF/A standard to be used for validation or conversion.

public PdfAStandardVersion PdfAVersion { get; set; }

Property Value

PdfAStandardVersion

Remarks

The PDF/A standard version is used to determine the compliance level for PDF/A validation and conversion. If the version is set to Aspose.Pdf.Plugins.PdfAStandardVersion.Auto, the system will automatically determine the appropriate PDF/A standard version for validation based on the document metadata. For the PDF/A conversion process the Aspose.Pdf.Plugins.PdfAStandardVersion.Auto defaults to the PDF/A-1b standard version.

PuaSymbolsProcessingStrategy

Gets or sets the strategy for processing Private Use Area (PUA) symbols in the PDF document.

public PdfFormatConversionOptions.PuaProcessingStrategy PuaSymbolsProcessingStrategy { get; set; }

Property Value

PdfFormatConversionOptions.PuaProcessingStrategy

SoftMaskAction

Gets or sets the action to be taken during the conversion of images with soft masks.

public ConvertSoftMaskAction SoftMaskAction { get; set; }

Property Value

ConvertSoftMaskAction

SymbolicFontEncodingStrategy

Gets or sets the strategy for encoding symbolic fonts when converting to PDF/A format.

public PdfASymbolicFontEncodingStrategy SymbolicFontEncodingStrategy { get; set; }

Property Value

PdfASymbolicFontEncodingStrategy

Remarks

This property allows you to control what CMap subtable would be copied into the result document in cases when the original TrueType symbolic font in the source document contains multiple CMap subtables.

UnicodeProcessingRules

Gets or sets the rules for processing ToUnicode CMap tables and not linked to Unicode symbols during the PDF/A conversion process.

public ToUnicodeProcessingRules UnicodeProcessingRules { get; set; }

Property Value

ToUnicodeProcessingRules

Methods

AddInput(IDataSource)

Adds new data source to the collection

public void AddInput(IDataSource dataSource)

Parameters

dataSource IDataSource

 English