represents set of options for convert PDF document More...

#include "PdfFormatConversionOptions.h"

Inherits System::Object.

Public Types

enum  SegmentAlignStrategy : uint8_t { SegmentAlignStrategy::None = 0, SegmentAlignStrategy::RestoreSegmentBounds = 1 }
 Describes strategies used to align document text segments. Now only strategy to restore segments to original bounds is supported. In future another strategies could be added. More...
 
enum  PuaProcessingStrategy { PuaProcessingStrategy::None = 0, PuaProcessingStrategy::SurroundPuaTextWithEmptyActualText, PuaProcessingStrategy::SubstitutePuaSymbols }
 Some PDF documents have special unicode symbols, which are belonged to Private Use Area (PUA), see description at https://en.wikipedia.org/wiki/Private_Use_Areas. This symbols cause an PDF/A compliant errors like "Text is mapped to Unicode Private Use Area but no ActualText entry is present". This enumeration declares a strategies which can be used to handle PUA symbols. More...
 
enum  RemoveFontsStrategy : uint8_t { RemoveFontsStrategy::RemoveDuplicatedFonts = 4, RemoveFontsStrategy::RemoveSimilarFontsWithDifferentWidths = 1, RemoveFontsStrategy::SubsetFonts = 2 }
 Some documens have large size after converison into PDF/A format. To reduce file size for these documents it's necessary to define a strategy of fonts removing. This enumeration declares a strategies which can be used to optimize fonts usage. Every strategy from this enumeration has sense only when flag OptimizeFileSize is set. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

ASPOSE_PDF_SHARED_API bool get_IsAsyncImageStreamsConversionMode () const
 Gets/sets run of image streams in async mode. More...
 
ASPOSE_PDF_SHARED_API void set_IsAsyncImageStreamsConversionMode (bool value)
 Gets/sets run of image streams in async mode. More...
 
ASPOSE_PDF_SHARED_API bool get_IsLowMemoryMode () const
 Is low memory conversion mode enabled More...
 
ASPOSE_PDF_SHARED_API void set_IsLowMemoryMode (bool value)
 Is low memory conversion mode enabled More...
 
ASPOSE_PDF_SHARED_API PdfFormat get_Format () const
 PDF format. More...
 
ASPOSE_PDF_SHARED_API void set_Format (PdfFormat value)
 PDF format. More...
 
ASPOSE_PDF_SHARED_API System::String get_LogFileName () const
 Path to file where comments will be stored. More...
 
ASPOSE_PDF_SHARED_API void set_LogFileName (System::String value)
 Path to file where comments will be stored. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::IO::Streamget_LogStream () const
 Stream where comments will be stored. More...
 
ASPOSE_PDF_SHARED_API void set_LogStream (System::SharedPtr< System::IO::Stream > value)
 Stream where comments will be stored. More...
 
ASPOSE_PDF_SHARED_API ConvertErrorAction get_ErrorAction () const
 Action for objects that can not be converted More...
 
ASPOSE_PDF_SHARED_API void set_ErrorAction (ConvertErrorAction value)
 Action for objects that can not be converted More...
 
ASPOSE_PDF_SHARED_API ConvertTransparencyAction get_TransparencyAction () const
 Action for image masked objects More...
 
ASPOSE_PDF_SHARED_API void set_TransparencyAction (ConvertTransparencyAction value)
 Action for image masked objects More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::ConvertSoftMaskAction get_ConvertSoftMaskAction () const
 Action for images with soft mask. More...
 
ASPOSE_PDF_SHARED_API void set_ConvertSoftMaskAction (Aspose::Pdf::ConvertSoftMaskAction value)
 Action for images with soft mask. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PdfANonSpecificationFlagsget_NonSpecificationCases () const
 Holds flags to control PDF/A conversion process for cases when source document doesn't correspond to PDF/A specification. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PdfASymbolicFontEncodingStrategyget_SymbolicFontEncodingStrategy () const
 Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable. More...
 
ASPOSE_PDF_SHARED_API void set_SymbolicFontEncodingStrategy (System::SharedPtr< PdfASymbolicFontEncodingStrategy > value)
 Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable. More...
 
ASPOSE_PDF_SHARED_API bool get_AlignText () const
 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. More...
 
ASPOSE_PDF_SHARED_API void set_AlignText (bool value)
 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. More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions::PuaProcessingStrategy get_PuaTextProcessingStrategy () const
 Strategy to process symbols from unicode Private Use Area (PUA). More...
 
ASPOSE_PDF_SHARED_API void set_PuaTextProcessingStrategy (PdfFormatConversionOptions::PuaProcessingStrategy value)
 Strategy to process symbols from unicode Private Use Area (PUA). More...
 
ASPOSE_PDF_SHARED_API bool get_OptimizeFileSize () const
 Gets 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. More...
 
ASPOSE_PDF_SHARED_API void set_OptimizeFileSize (bool value)
 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. More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions::RemoveFontsStrategy get_ExcludeFontsStrategy () const
 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. More...
 
ASPOSE_PDF_SHARED_API void set_ExcludeFontsStrategy (PdfFormatConversionOptions::RemoveFontsStrategy value)
 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. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::PdfAOptionClasses::FontEmbeddingOptionsget_FontEmbeddingOptions () const
 Options for cases when it's not possible to embed some fonts into PDF document. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PdfAOptionClasses::ToUnicodeProcessingRulesget_UnicodeProcessingRules () const
 Rules to solve problems with unicode mapping. Can be null. More...
 
ASPOSE_PDF_SHARED_API void set_UnicodeProcessingRules (System::SharedPtr< PdfAOptionClasses::ToUnicodeProcessingRules > value)
 Rules to solve problems with unicode mapping. Can be null. More...
 
ASPOSE_PDF_SHARED_API System::String get_IccProfileFileName () const
 Gets the filename of icc profile name. In case of null the default icc profile used. More...
 
ASPOSE_PDF_SHARED_API void set_IccProfileFileName (System::String value)
 Sets the filename of icc profile name. In case of null the default icc profile used. More...
 
ASPOSE_PDF_SHARED_API System::ArrayPtr< System::Stringget_NotAccessibleFonts ()
 This property is out-property. It holds all the fonts(font names) which were not found on computer at last PDF/A conversion. More...
 
ASPOSE_PDF_SHARED_API bool get_IsTransferInfo () const
 Gets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default. More...
 
ASPOSE_PDF_SHARED_API void set_IsTransferInfo (bool value)
 Sets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default. More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (System::String outputLogFileName, PdfFormat format, ConvertErrorAction action)
 Constructor More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (System::String outputLogFileName, PdfFormat format)
 Constructor More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (PdfFormat format)
 Constructor More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (PdfFormat format, ConvertErrorAction action)
 Constructor More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (System::String outputLogFileName, PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
 Constructor More...
 
ASPOSE_PDF_SHARED_API PdfFormatConversionOptions (System::SharedPtr< System::IO::Stream > outputLogStream, PdfFormat format, ConvertErrorAction action)
 Constructor More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSE_PDF_SHARED_API System::SharedPtr< PdfFormatConversionOptionsget_Default ()
 Gets PdfFormatConversionOptions object with default parameters More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Public Attributes

PdfFormatConversionOptions::SegmentAlignStrategy AlignStrategy
 Strategy to align text. This parameter has sense only when flag AlignText is set to true. More...
 

Protected Member Functions

System::SharedPtr< System::Xml::XmlTextWriterget_Xml () const
 
System::SharedPtr< Aspose::Pdf::Documentget_Document () const
 
bool get_OnlyValidation () const
 
System::String get_DefaultLogFileName () const
 
bool get_RemoveDuplicatedFonts ()
 
bool get_RemoveSimilarFontsWithDifferentWidths ()
 
bool get_SubsetFonts ()
 
void SetAdditionalParameters (System::SharedPtr< System::Xml::XmlTextWriter > xml, System::SharedPtr< Aspose::Pdf::Document > doc, bool onlyValidation)
 
System::SharedPtr< System::Xml::XmlTextWriterCreateTextWriter ()
 
void AddNotAccessibleFont (System::String fontName)
 

Protected Attributes

bool PuaProcessingTextStrategyExplicitlyDefined
 

Detailed Description

represents set of options for convert PDF document

Member Enumeration Documentation

◆ PuaProcessingStrategy

Some PDF documents have special unicode symbols, which are belonged to Private Use Area (PUA), see description at https://en.wikipedia.org/wiki/Private_Use_Areas. This symbols cause an PDF/A compliant errors like "Text is mapped to Unicode Private Use Area but no ActualText entry is present". This enumeration declares a strategies which can be used to handle PUA symbols.

Enumerator
None 

Disable PUA symbol processing. This strategy used by default for PDF/A documents with Level B conformance.

SurroundPuaTextWithEmptyActualText 

Inserts marked content block with ActualText entry which contains empty text. This strategy gives good results for documents without marked content blocks. Used by default for PDF/A documents with Level A conformance.

SubstitutePuaSymbols 

This strategy works slower than 'SurroundPuaTextWithEmptyActualText' but it can remove PUA compliant errors for documents which can't be handled properly by SurroundPuaTextWithEmptyActualText. PUA symbols are substituted on symbol 'space' or special unicode (some PUA symbols have unicode analogs). Substitution applied not to document's text but to font's internal data ToUnicode so it doesn't affects symbol's vision but it affects symbol's presentation in copy/paste operation system buffer.

◆ RemoveFontsStrategy

Some documens have large size after converison into PDF/A format. To reduce file size for these documents it's necessary to define a strategy of fonts removing. This enumeration declares a strategies which can be used to optimize fonts usage. Every strategy from this enumeration has sense only when flag OptimizeFileSize is set.

Enumerator
RemoveDuplicatedFonts 

This strategy removes all the fonts which have duplicates in document. If document contains group of duplicated fonts only one font from this group is embedded in document. All other fonts from this group are removed from document, every removed font substituted with the already embedded analog.

RemoveSimilarFontsWithDifferentWidths 

This strategy looks like RemoveDuplicatedFonts but it removes not fully duplicated fonts but fonts which are similar one to another and differs only by parameter "Widths". This parameter contains set of some widths for specified symbols of font. Every value of width from this "Widths" set is not the real width of symbol(glyph), real width for this symbol already defined in font's binary data. Value of width from "Widths" set means visual width for this symbol - the width which PDF viewer software must set on displaying symbol instead of real width defined in the font. More accurately specification tells: Acrobat 5.0 and later viewers use the glyph widths stored in the font dictionary to override the widths of glyphs in the font program itself, which improves the consistency of the display and printing of the document. This strategy is more effective than RemoveDuplicatedFonts but using of this strategy in some cases theoretically could damage visual presentation of converted document. This defect is possible due to that declared widths of fonts could be different for the same symbol and in this case width of this symbol will be changed to new one after font substitution - when removed font will be replaced in document with already embedded one. And if symbol's visual width will be changed - it will be shown incorrectly and this distinction could cause visual defects such as text overlapping or another problems. But visual defect described is a very rare case and this strategy reduces size of document more effectively.

SubsetFonts 

This is most effective strategy to reduce document's size. It takes fully embedded font sets and trim them down to only the subsets used. It's recommended to use this strategy in combination with RemoveDuplicatedFonts or RemoveSimilarFontsWithDifferentWidths to get multiple compression effect for file size. Using of all three strategies simultaneously has no sense and strategy RemoveSimilarFontsWithDifferentWidths will not be used in this case.

◆ SegmentAlignStrategy

Describes strategies used to align document text segments. Now only strategy to restore segments to original bounds is supported. In future another strategies could be added.

Enumerator
None 

None.

RestoreSegmentBounds 

Restore segment bounds.

Constructor & Destructor Documentation

◆ PdfFormatConversionOptions() [1/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( System::String  outputLogFileName,
PdfFormat  format,
ConvertErrorAction  action 
)

Constructor

Parameters
outputLogFileNamePath to file where comments will be stored.
formatThe pdf format.
actionAction for objects that can not be converted

◆ PdfFormatConversionOptions() [2/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( System::String  outputLogFileName,
PdfFormat  format 
)

Constructor

Parameters
outputLogFileNamePath to file where comments will be stored.
formatThe pdf format.

◆ PdfFormatConversionOptions() [3/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( PdfFormat  format)

Constructor

Parameters
formatThe pdf format.

◆ PdfFormatConversionOptions() [4/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( PdfFormat  format,
ConvertErrorAction  action 
)

Constructor

Parameters
formatThe pdf format.
actionAction for objects that can not be converted

◆ PdfFormatConversionOptions() [5/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( System::String  outputLogFileName,
PdfFormat  format,
ConvertErrorAction  action,
ConvertTransparencyAction  transparencyAction 
)

Constructor

Parameters
outputLogFileNamePath to file where comments will be stored.
formatThe pdf format.
actionAction for objects that can not be converted
transparencyActionAction for image masked objects

◆ PdfFormatConversionOptions() [6/6]

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormatConversionOptions::PdfFormatConversionOptions ( System::SharedPtr< System::IO::Stream outputLogStream,
PdfFormat  format,
ConvertErrorAction  action 
)

Constructor

Parameters
outputLogStreamStream where comments will be stored
formatThe pdf format
actionAction for objects that can not be converted

Member Function Documentation

◆ AddNotAccessibleFont()

void Aspose::Pdf::PdfFormatConversionOptions::AddNotAccessibleFont ( System::String  fontName)
protected

◆ CreateTextWriter()

System::SharedPtr<System::Xml::XmlTextWriter> Aspose::Pdf::PdfFormatConversionOptions::CreateTextWriter ( )
protected

◆ get_AlignText()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::PdfFormatConversionOptions::get_AlignText ( ) const

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.

◆ get_ConvertSoftMaskAction()

ASPOSE_PDF_SHARED_API Aspose::Pdf::ConvertSoftMaskAction Aspose::Pdf::PdfFormatConversionOptions::get_ConvertSoftMaskAction ( ) const

Action for images with soft mask.

◆ get_Default()

static ASPOSE_PDF_SHARED_API System::SharedPtr<PdfFormatConversionOptions> Aspose::Pdf::PdfFormatConversionOptions::get_Default ( )
static

Gets PdfFormatConversionOptions object with default parameters

◆ get_DefaultLogFileName()

System::String Aspose::Pdf::PdfFormatConversionOptions::get_DefaultLogFileName ( ) const
protected

◆ get_Document()

System::SharedPtr<Aspose::Pdf::Document> Aspose::Pdf::PdfFormatConversionOptions::get_Document ( ) const
protected

◆ get_ErrorAction()

ASPOSE_PDF_SHARED_API ConvertErrorAction Aspose::Pdf::PdfFormatConversionOptions::get_ErrorAction ( ) const

Action for objects that can not be converted

◆ get_ExcludeFontsStrategy()

ASPOSE_PDF_SHARED_API PdfFormatConversionOptions::RemoveFontsStrategy Aspose::Pdf::PdfFormatConversionOptions::get_ExcludeFontsStrategy ( ) const

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.

◆ get_FontEmbeddingOptions()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::PdfAOptionClasses::FontEmbeddingOptions> Aspose::Pdf::PdfFormatConversionOptions::get_FontEmbeddingOptions ( ) const

Options for cases when it's not possible to embed some fonts into PDF document.

◆ get_Format()

ASPOSE_PDF_SHARED_API PdfFormat Aspose::Pdf::PdfFormatConversionOptions::get_Format ( ) const

PDF format.

◆ get_IccProfileFileName()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::PdfFormatConversionOptions::get_IccProfileFileName ( ) const

Gets the filename of icc profile name. In case of null the default icc profile used.

◆ get_IsAsyncImageStreamsConversionMode()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::PdfFormatConversionOptions::get_IsAsyncImageStreamsConversionMode ( ) const

Gets/sets run of image streams in async mode.

◆ get_IsLowMemoryMode()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::PdfFormatConversionOptions::get_IsLowMemoryMode ( ) const

Is low memory conversion mode enabled

◆ get_IsTransferInfo()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::PdfFormatConversionOptions::get_IsTransferInfo ( ) const

Gets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default.

◆ get_LogFileName()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::PdfFormatConversionOptions::get_LogFileName ( ) const

Path to file where comments will be stored.

◆ get_LogStream()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::Stream> Aspose::Pdf::PdfFormatConversionOptions::get_LogStream ( ) const

Stream where comments will be stored.

◆ get_NonSpecificationCases()

ASPOSE_PDF_SHARED_API System::SharedPtr<PdfANonSpecificationFlags> Aspose::Pdf::PdfFormatConversionOptions::get_NonSpecificationCases ( ) const

Holds flags to control PDF/A conversion process for cases when source document doesn't correspond to PDF/A specification.

◆ get_NotAccessibleFonts()

ASPOSE_PDF_SHARED_API System::ArrayPtr<System::String> Aspose::Pdf::PdfFormatConversionOptions::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_OnlyValidation()

bool Aspose::Pdf::PdfFormatConversionOptions::get_OnlyValidation ( ) const
protected

◆ get_OptimizeFileSize()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::PdfFormatConversionOptions::get_OptimizeFileSize ( ) const

Gets 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()

ASPOSE_PDF_SHARED_API PdfFormatConversionOptions::PuaProcessingStrategy Aspose::Pdf::PdfFormatConversionOptions::get_PuaTextProcessingStrategy ( ) const

Strategy to process symbols from unicode Private Use Area (PUA).

◆ get_RemoveDuplicatedFonts()

bool Aspose::Pdf::PdfFormatConversionOptions::get_RemoveDuplicatedFonts ( )
protected

◆ get_RemoveSimilarFontsWithDifferentWidths()

bool Aspose::Pdf::PdfFormatConversionOptions::get_RemoveSimilarFontsWithDifferentWidths ( )
protected

◆ get_SubsetFonts()

bool Aspose::Pdf::PdfFormatConversionOptions::get_SubsetFonts ( )
protected

◆ get_SymbolicFontEncodingStrategy()

ASPOSE_PDF_SHARED_API System::SharedPtr<PdfASymbolicFontEncodingStrategy> Aspose::Pdf::PdfFormatConversionOptions::get_SymbolicFontEncodingStrategy ( ) const

Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable.

◆ get_TransparencyAction()

ASPOSE_PDF_SHARED_API ConvertTransparencyAction Aspose::Pdf::PdfFormatConversionOptions::get_TransparencyAction ( ) const

Action for image masked objects

◆ get_UnicodeProcessingRules()

ASPOSE_PDF_SHARED_API System::SharedPtr<PdfAOptionClasses::ToUnicodeProcessingRules> Aspose::Pdf::PdfFormatConversionOptions::get_UnicodeProcessingRules ( ) const

Rules to solve problems with unicode mapping. Can be null.

◆ get_Xml()

System::SharedPtr<System::Xml::XmlTextWriter> Aspose::Pdf::PdfFormatConversionOptions::get_Xml ( ) const
protected

◆ set_AlignText()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_AlignText ( bool  value)

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_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_ConvertSoftMaskAction ( Aspose::Pdf::ConvertSoftMaskAction  value)

Action for images with soft mask.

◆ set_ErrorAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_ErrorAction ( ConvertErrorAction  value)

Action for objects that can not be converted

◆ set_ExcludeFontsStrategy()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_ExcludeFontsStrategy ( PdfFormatConversionOptions::RemoveFontsStrategy  value)

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()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_Format ( PdfFormat  value)

PDF format.

◆ set_IccProfileFileName()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_IccProfileFileName ( System::String  value)

Sets the filename of icc profile name. In case of null the default icc profile used.

◆ set_IsAsyncImageStreamsConversionMode()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_IsAsyncImageStreamsConversionMode ( bool  value)

Gets/sets run of image streams in async mode.

◆ set_IsLowMemoryMode()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_IsLowMemoryMode ( bool  value)

Is low memory conversion mode enabled

◆ set_IsTransferInfo()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_IsTransferInfo ( bool  value)

Sets whether to pass data from Info to Metadata when converted to PDF 2.0. True by default.

◆ set_LogFileName()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_LogFileName ( System::String  value)

Path to file where comments will be stored.

◆ set_LogStream()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_LogStream ( System::SharedPtr< System::IO::Stream value)

Stream where comments will be stored.

◆ set_OptimizeFileSize()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_OptimizeFileSize ( bool  value)

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()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_PuaTextProcessingStrategy ( PdfFormatConversionOptions::PuaProcessingStrategy  value)

Strategy to process symbols from unicode Private Use Area (PUA).

◆ set_SymbolicFontEncodingStrategy()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_SymbolicFontEncodingStrategy ( System::SharedPtr< PdfASymbolicFontEncodingStrategy value)

Strategy to copy encoding data for symbolic fonts if symbolic TrueType font has more than one encoding subtable.

◆ set_TransparencyAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_TransparencyAction ( ConvertTransparencyAction  value)

Action for image masked objects

◆ set_UnicodeProcessingRules()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::PdfFormatConversionOptions::set_UnicodeProcessingRules ( System::SharedPtr< PdfAOptionClasses::ToUnicodeProcessingRules value)

Rules to solve problems with unicode mapping. Can be null.

◆ SetAdditionalParameters()

void Aspose::Pdf::PdfFormatConversionOptions::SetAdditionalParameters ( System::SharedPtr< System::Xml::XmlTextWriter xml,
System::SharedPtr< Aspose::Pdf::Document doc,
bool  onlyValidation 
)
protected

Member Data Documentation

◆ AlignStrategy

PdfFormatConversionOptions::SegmentAlignStrategy Aspose::Pdf::PdfFormatConversionOptions::AlignStrategy

Strategy to align text. This parameter has sense only when flag AlignText is set to true.

◆ PuaProcessingTextStrategyExplicitlyDefined

bool Aspose::Pdf::PdfFormatConversionOptions::PuaProcessingTextStrategyExplicitlyDefined
protected