Aspose::Pdf::PdfFormatConversionOptions class

PdfFormatConversionOptions class

represents set of options for convert PDF document

class PdfFormatConversionOptions : public System::Object

Methods

MethodDescription
get_AlignText() constThis flag controls text alignment in converted document. By default document conversion doesn’t affect text alignment and leave text as is. But in some cases font substitution causes text overlapping or extra spaces in converted document. When this flag is set special alignment operations will be performed. This flag should be set only for documents which have problems with overlapped text or extra text spaces cause using of this flag decrease performance and in some cases could corrupt text content.
get_ConvertSoftMaskAction() constAction for images with soft mask.
static get_Default()Gets PdfFormatConversionOptions object with default parameters.
get_ErrorAction() constAction for objects that can not be converted.
get_ExcludeFontsStrategy() constStrategy(ies) to exclude superfluous fonts and reduce document file size. This parameter has sense only when flag OptimizeFileSize is set to true. By default combination of strategies SubsetFonts and RemoveDuplicatedFonts is used.
get_FontEmbeddingOptions() constOptions for cases when it’s not possible to embed some fonts into PDF document.
get_Format() constPDF format.
get_IccProfileFileName() constGets the filename of icc profile name. In case of null the default icc profile used.
get_IsAsyncImageStreamsConversionMode() constGets/sets run of image streams in async mode.
get_IsLowMemoryMode() constIs low memory conversion mode enabled.
get_IsTransferInfo() constGets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default.
get_LogFileName() constPath to file where comments will be stored.
get_LogStream() constStream where comments will be stored.
get_NonSpecificationCases() constHolds flags to control PDF/A conversion process for cases when source document doesn’t correspond to PDF/A specification.
get_NotAccessibleFonts()This property is out-property. It holds all the fonts(font names) which were not found on computer at last PDF/A conversion.
get_OptimizeFileSize() constGets a flag which enables/disables special conversion mode to get PDF/A document with reduced file size. Now this flag impacts on optimization of fonts used in PDF document, possibly, in future, this flag also will be used to switch on optimization for another data structures, such as graphic.

Set of this flag and mode could significantly reduce file size but at the same time it could significantly decrease performance of conversion. | | get_PuaTextProcessingStrategy() const | Strategy to process symbols from unicode Private Use Area (PUA). | | get_SymbolicFontEncodingStrategy() const | Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable. | | get_TransparencyAction() const | Action for image masked objects. | | get_UnicodeProcessingRules() const | Rules to solve problems with unicode mapping. Can be null. | | PdfFormatConversionOptions(System::String, PdfFormat, ConvertErrorAction) | Constructor. | | PdfFormatConversionOptions(System::String, PdfFormat) | Constructor. | | PdfFormatConversionOptions(PdfFormat) | Constructor. | | PdfFormatConversionOptions(PdfFormat, ConvertErrorAction) | Constructor. | | PdfFormatConversionOptions(System::String, PdfFormat, ConvertErrorAction, ConvertTransparencyAction) | Constructor. | | PdfFormatConversionOptions(System::SharedPtr<System::IO::Stream>, PdfFormat, ConvertErrorAction) | Constructor. | | set_AlignText(bool) | This flag controls text alignment in converted document. By default document conversion doesn’t affect text alignment and leave text as is. But in some cases font substitution causes text overlapping or extra spaces in converted document. When this flag is set special alignment operations will be performed. This flag should be set only for documents which have problems with overlapped text or extra text spaces cause using of this flag decrease performance and in some cases could corrupt text content. | | set_ConvertSoftMaskAction(Aspose::Pdf::ConvertSoftMaskAction) | Action for images with soft mask. | | set_ErrorAction(ConvertErrorAction) | Action for objects that can not be converted. | | set_ExcludeFontsStrategy(PdfFormatConversionOptions::RemoveFontsStrategy) | Strategy(ies) to exclude superfluous fonts and reduce document file size. This parameter has sense only when flag OptimizeFileSize is set to true. By default combination of strategies SubsetFonts and RemoveDuplicatedFonts is used. | | set_Format(PdfFormat) | PDF format. | | set_IccProfileFileName(System::String) | Sets the filename of icc profile name. In case of null the default icc profile used. | | set_IsAsyncImageStreamsConversionMode(bool) | Gets/sets run of image streams in async mode. | | set_IsLowMemoryMode(bool) | Is low memory conversion mode enabled. | | set_IsTransferInfo(bool) | Sets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default. | | set_LogFileName(System::String) | Path to file where comments will be stored. | | set_LogStream(System::SharedPtr<System::IO::Stream>) | Stream where comments will be stored. | | set_OptimizeFileSize(bool) | Sets a flag which enables/disables special conversion mode to get PDF/A document with reduced file size. Now this flag impacts on optimization of fonts used in PDF document, possibly, in future, this flag also will be used to switch on optimization for another data structures, such as graphic.

Set of this flag and mode could significantly reduce file size but at the same time it could significantly decrease performance of conversion. | | set_PuaTextProcessingStrategy(PdfFormatConversionOptions::PuaProcessingStrategy) | Strategy to process symbols from unicode Private Use Area (PUA). | | set_SymbolicFontEncodingStrategy(System::SharedPtr<PdfASymbolicFontEncodingStrategy>) | Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable. | | set_TransparencyAction(ConvertTransparencyAction) | Action for image masked objects. | | set_UnicodeProcessingRules(System::SharedPtr<PdfAOptionClasses::ToUnicodeProcessingRules>) | Rules to solve problems with unicode mapping. Can be null. |

See Also