UnifiedSaveOptions

Inheritance: java.lang.Object, com.aspose.pdf.SaveOptions com.aspose.pdf.UnifiedSaveOptions, com.aspose.pdf.SaveOptions, com.aspose.pdf.UnifiedSaveOptions

public class UnifiedSaveOptions extends SaveOptions

This class represents saving options for saving that uses unified conversion way (with unified internal document model)

Fields

FieldDescription
IsMultiThreadingProcess pages in few threads.

Constructors

ConstructorDescription
UnifiedSaveOptions

Methods

MethodDescription
getProgressEventsRetranslatorRepresents internal progress events processor that works during conversion and translates conversion events of internal conversion stages into external total progress events Also class broadcasts events that allow to free resources that not needed anymore This internal class handles events of PDF to APS and APS to [Other format] progress to calculate total progress and inform customer’s code about that total progress events this class uses two types of events : ApsToExternal model conversion and events of conversion Pdf to APS to generate total progress events Export has three stage : 1) Pdf to Aps 2) Aps recognition 3_ Aps export to target format Constructor allows tune how much pages are converted and what is approximmate part of this or that stage in total progress
isExtractOcrSublayerOnlyThis attribute turned on functionality for extracting image or text for PDF documents with OCR sublayer. Value: {@code true} text will be extracted in result document; otherwise, {@code false}.
isTryMergeAdjacentSameBackgroundImagesSometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other. In such case renderers of target formats (f.e MsWord for DOCS format) sometimes generates visible boundaries beetween parts of background images, cause their techniques of image edge smoothing (anti-aliasing) is different from Acrobat Reader. If it looks like exported document contains such visible boundaries between parts of same background images, please try use this setting to get rid of that unwanted effect. ATTENTION! This optimization of quality usually essentially slows down conversion, so, please, use this option only when it’s really necessary.
setExtractOcrSublayerOnly

This attribute turned on functionality for extracting image or text for PDF documents with OCR sublayer.

Value: {@code true} text will be extracted in result document; otherwise, {@code false}.
Default value == false
setProgressEventsRetranslatorRepresents internal progress events processor that works during conversion and translates conversion events of internal conversion stages into external total progress events Also class broadcasts events that allow to free resources that not needed anymore This internal class handles events of PDF to APS and APS to [Other format] progress to calculate total progress and inform customer’s code about that total progress events this class uses two types of events : ApsToExternal model conversion and events of conversion Pdf to APS to generate total progress events Export has three stage : 1) Pdf to Aps 2) Aps recognition 3_ Aps export to target format Constructor allows tune how much pages are converted and what is approximmate part of this or that stage in total progress
setTryMergeAdjacentSameBackgroundImagesSometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other. In such case renderers of target formats (f.e MsWord for DOCS format) sometimes generates visible boundaries beetween parts of background images, cause their techniques of image edge smoothing (anti-aliasing) is different from Acrobat Reader. If it looks like exported document contains such visible boundaries between parts of same background images, please try use this setting to get rid of that unwanted effect. ATTENTION! This optimization of quality usually essentially slows down conversion, so, please, use this option only when it’s really necessary.

IsMultiThreading

public boolean IsMultiThreading

Process pages in few threads.

UnifiedSaveOptions

public UnifiedSaveOptions()

getProgressEventsRetranslator

public com.aspose.pdf.ConversionProgressEventsTranslator getProgressEventsRetranslator()

Represents internal progress events processor that works during conversion and translates conversion events of internal conversion stages into external total progress events Also class broadcasts events that allow to free resources that not needed anymore This internal class handles events of PDF to APS and APS to [Other format] progress to calculate total progress and inform customer’s code about that total progress events this class uses two types of events : ApsToExternal model conversion and events of conversion Pdf to APS to generate total progress events Export has three stage : 1) Pdf to Aps 2) Aps recognition 3_ Aps export to target format Constructor allows tune how much pages are converted and what is approximmate part of this or that stage in total progress

Returns: ConversionProgressEventsTranslator instance

isExtractOcrSublayerOnly

public boolean isExtractOcrSublayerOnly()

This attribute turned on functionality for extracting image or text for PDF documents with OCR sublayer. Value: {@code true} text will be extracted in result document; otherwise, {@code false}.

Returns: boolean value

isTryMergeAdjacentSameBackgroundImages

public boolean isTryMergeAdjacentSameBackgroundImages()

Sometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other. In such case renderers of target formats (f.e MsWord for DOCS format) sometimes generates visible boundaries beetween parts of background images, cause their techniques of image edge smoothing (anti-aliasing) is different from Acrobat Reader. If it looks like exported document contains such visible boundaries between parts of same background images, please try use this setting to get rid of that unwanted effect. ATTENTION! This optimization of quality usually essentially slows down conversion, so, please, use this option only when it’s really necessary.

Returns: boolean value

setExtractOcrSublayerOnly

public void setExtractOcrSublayerOnly(boolean value)

This attribute turned on functionality for extracting image or text for PDF documents with OCR sublayer.

Value: {@code true} text will be extracted in result document; otherwise, {@code false}.
Default value == false

Parameters:

ParameterTypeDescription
valueboolean value

setProgressEventsRetranslator

Represents internal progress events processor that works during conversion and translates conversion events of internal conversion stages into external total progress events Also class broadcasts events that allow to free resources that not needed anymore This internal class handles events of PDF to APS and APS to [Other format] progress to calculate total progress and inform customer’s code about that total progress events this class uses two types of events : ApsToExternal model conversion and events of conversion Pdf to APS to generate total progress events Export has three stage : 1) Pdf to Aps 2) Aps recognition 3_ Aps export to target format Constructor allows tune how much pages are converted and what is approximmate part of this or that stage in total progress

setTryMergeAdjacentSameBackgroundImages

public void setTryMergeAdjacentSameBackgroundImages(boolean tryMergeAdjacentSameBackgroundImages)

Sometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other. In such case renderers of target formats (f.e MsWord for DOCS format) sometimes generates visible boundaries beetween parts of background images, cause their techniques of image edge smoothing (anti-aliasing) is different from Acrobat Reader. If it looks like exported document contains such visible boundaries between parts of same background images, please try use this setting to get rid of that unwanted effect. ATTENTION! This optimization of quality usually essentially slows down conversion, so, please, use this option only when it’s really necessary.

Parameters:

ParameterTypeDescription
tryMergeAdjacentSameBackgroundImagesboolean value