Aspose::Pdf::DocSaveOptions class

DocSaveOptions class

Save options for export to Doc format.

class DocSaveOptions : public Aspose::Pdf::UnifiedSaveOptions,
                       public Aspose::Pdf::IPipelineOptions

Enums

EnumDescription
DocFormatAllows to specify .doc or .docx file format.
RecognitionModeAllows to control how a PDF document is converted into a word processing document.

Methods

MethodDescription
DocSaveOptions()Constructor.
get_AddReturnToLineEnd() constUse paragraph or line breaks.
get_BatchSize() overrideDefines batch size if batched conversion is applicable to source and destination formats pair.
get_ConvertType3Fonts() constGets conversion for Type3 fonts. In Type 3 fonts, glyphs shall be defined by streams of graphics operators. This means that in the DOC/DOCX output we see images instead of text. Set this flag to true to convert Type3 fonts to TTF and get text in the resulting file.
get_Format() constOutput format.
get_ImageResolutionX() constConverted images X resolution.
get_ImageResolutionY() constConverted images Y resolution.
get_MaxDistanceBetweenTextLines() constThis parameter is used for grouping text lines into paragraphs. Determines how far apart can be two relative text lines. Specified in hundreds of percent of the text lines height.
get_MemorySaveModePath() constDefines the path (file name or directory name) to hold temporary data when converting in memory save mode.
get_Mode() constRecognition mode.
get_RecognizeBullets() constSwitch on the recognition of bullets.
get_RelativeHorizontalProximity() constIn Pdf words may be innerly represented with operators that prints words by independently printing their letters or syllables. So, to detect words sometimes we need detect groups of independent chars that are in fact words. This setting defines width of space between text elements(letters, syllables) that must be treated as distance between words during recognition of words in source PDF. (presence of empty space at least with this width between letters means that textual elements pertain to different words). It’s normed to font size - 1.0 means 100% of supposed word’s font size. ATTENTION!It’s used only in cases when source PDF contains specific rarely used fonts for which optimal value cannot be calculated from font. So, in vast majority of cases this parameter changes nothing in result document.
get_ReSaveFonts() constGets the procedure for resaving fonts. If set to true, we reload fonts on every page to avoid the influence of previous font properties and load the newly created font from scratch. Set this option to false if you want to improve performance. The default value is true;.
set_AddReturnToLineEnd(bool)Use paragraph or line breaks.
set_BatchSize(int32_t) overrideDefines batch size if batched conversion is applicable to source and destination formats pair.
set_ConvertType3Fonts(bool)Sets conversion for Type3 fonts. In Type 3 fonts, glyphs shall be defined by streams of graphics operators. This means that in the DOC/DOCX output we see images instead of text. Set this flag to true to convert Type3 fonts to TTF and get text in the resulting file.
set_Format(DocSaveOptions::DocFormat)Output format.
set_ImageResolutionX(int32_t)Converted images X resolution.
set_ImageResolutionY(int32_t)Converted images Y resolution.
set_MaxDistanceBetweenTextLines(float)This parameter is used for grouping text lines into paragraphs. Determines how far apart can be two relative text lines. Specified in hundreds of percent of the text lines height.
set_MemorySaveModePath(System::String)Defines the path (file name or directory name) to hold temporary data when converting in memory save mode.
set_Mode(DocSaveOptions::RecognitionMode)Recognition mode.
set_RecognizeBullets(bool)Switch on the recognition of bullets.
set_RelativeHorizontalProximity(float)In Pdf words may be innerly represented with operators that prints words by independently printing their letters or syllables. So, to detect words sometimes we need detect groups of independent chars that are in fact words. This setting defines width of space between text elements(letters, syllables) that must be treated as distance between words during recognition of words in source PDF. (presence of empty space at least with this width between letters means that textual elements pertain to different words). It’s normed to font size - 1.0 means 100% of supposed word’s font size. ATTENTION!It’s used only in cases when source PDF contains specific rarely used fonts for which optimal value cannot be calculated from font. So, in vast majority of cases this parameter changes nothing in result document.
set_ReSaveFonts(bool)Sets the procedure for resaving fonts. If set to true, we reload fonts on every page to avoid the influence of previous font properties and load the newly created font from scratch. Set this option to false if you want to improve performance. The default value is true;.

See Also