RenderingOptions

Inheritance: java.lang.Object

public final class RenderingOptions

Represents rendering options

Constructors

ConstructorDescription
RenderingOptions()Initializes new instance of the RenderingOptions object.

Methods

MethodDescription
getBarcodeOptimization()Gets barcode optimization mode.
setBarcodeOptimization(boolean value)Sets barcode optimization mode.
getOptimizeDimensions()Gets or sets optimize dimensions mode.
setOptimizeDimensions(boolean value)Gets or sets optimize dimensions mode.
getSystemFontsNativeRendering()Gets a mode where system fonts are rendered natively
setSystemFontsNativeRendering(boolean value)Sets a mode where system fonts are rendered natively
getUseNewImagingEngine()Gets a flag determines whether new imaging engine is used or not.
setUseNewImagingEngine(boolean value)Sets a flag determines whether new imaging engine is used or not.
getWidthExtraUnits()Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.
setWidthExtraUnits(float value)Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.
getHeightExtraUnits()Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.
setHeightExtraUnits(float value)Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.
getConvertFontsToUnicodeTTF()Indicates that all fonts will be converted to TTF unicode versions.
setConvertFontsToUnicodeTTF(boolean value)Indicates that all fonts will be converted to TTF unicode versions.
getUseFontHinting()Usage of this flag turn on font hinting mechanism.
setUseFontHinting(boolean value)Usage of this flag turn on font hinting mechanism.
getScaleImagesToFitPageWidth()Gets or sets a values used to scale all images on the page to fit page’s width.
setScaleImagesToFitPageWidth(boolean value)Gets or sets a values used to scale all images on the page to fit page’s width.
getInterpolationHighQuality()Gets or sets high quality mode for interpolation.
setInterpolationHighQuality(boolean value)Gets or sets high quality mode for interpolation.
getMaxFontsCacheSize()Maximum count of fonts in fonts cache.
setMaxFontsCacheSize(int value)Maximum count of fonts in fonts cache.
getMaxSymbolsCacheSize()Maximum count of symbols in symbol cache.
setMaxSymbolsCacheSize(int value)Maximum count of symbols in symbol cache.
getDefaultFontName()Gets/sets the default name of font used to substitute of missing fonts.
setDefaultFontName(String value)Gets/sets the default name of font used to substitute of missing fonts.
setTryToSkipDocumentErrors(boolean value)Sets a value used to skip errors during processing pdf file
isTryToSkipDocumentErrors()Gets a value used to skip errors during processing pdf file
getIgnoreResourceFontErrors()Gets or sets indication that errors related to absence of font will be ignored.
setIgnoreResourceFontErrors(boolean value)Gets or sets indication that errors related to absence of font will be ignored.

RenderingOptions()

public RenderingOptions()

Initializes new instance of the RenderingOptions object.

getBarcodeOptimization()

public boolean getBarcodeOptimization()

Gets barcode optimization mode.

Returns: boolean - boolean value

setBarcodeOptimization(boolean value)

public void setBarcodeOptimization(boolean value)

Sets barcode optimization mode.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getOptimizeDimensions()

public final boolean getOptimizeDimensions()

Gets or sets optimize dimensions mode.

Returns: boolean - boolean value

setOptimizeDimensions(boolean value)

public final void setOptimizeDimensions(boolean value)

Gets or sets optimize dimensions mode.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getSystemFontsNativeRendering()

public boolean getSystemFontsNativeRendering()

Gets a mode where system fonts are rendered natively

Returns: boolean - boolean value

setSystemFontsNativeRendering(boolean value)

public void setSystemFontsNativeRendering(boolean value)

Sets a mode where system fonts are rendered natively

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getUseNewImagingEngine()

public boolean getUseNewImagingEngine()

Gets a flag determines whether new imaging engine is used or not.

Returns: boolean - boolean value

setUseNewImagingEngine(boolean value)

public void setUseNewImagingEngine(boolean value)

Sets a flag determines whether new imaging engine is used or not.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getWidthExtraUnits()

public float getWidthExtraUnits()

Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.

Returns: float - float value

setWidthExtraUnits(float value)

public void setWidthExtraUnits(float value)

Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getHeightExtraUnits()

public final float getHeightExtraUnits()

Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.

Returns: float - float value

setHeightExtraUnits(float value)

public final void setHeightExtraUnits(float value)

Gets or sets a value used to increase or decrease the width of rectangle for AppendRectangle operator.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getConvertFontsToUnicodeTTF()

public boolean getConvertFontsToUnicodeTTF()

Indicates that all fonts will be converted to TTF unicode versions. That is useful for compatibility reasons and to optimize font usage, cause every new TTF font will have not all the symbols from source font, but only symbols which are used in text.

Returns: boolean - boolean value

setConvertFontsToUnicodeTTF(boolean value)

public void setConvertFontsToUnicodeTTF(boolean value)

Indicates that all fonts will be converted to TTF unicode versions. That is useful for compatibility reasons and to optimize font usage, cause every new TTF font will have not all the symbols from source font, but only symbols which are used in text.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getUseFontHinting()

public boolean getUseFontHinting()

Usage of this flag turn on font hinting mechanism. Font hinting is the use of mathematical instructions to adjust the display of an outline font. In some cases turning this flag on may solve problems with text legibility. At current moment usage of this flag could give effect only for TTF fonts, if these fonts are used in source document.

Returns: boolean - boolean value

setUseFontHinting(boolean value)

public void setUseFontHinting(boolean value)

Usage of this flag turn on font hinting mechanism. Font hinting is the use of mathematical instructions to adjust the display of an outline font. In some cases turning this flag on may solve problems with text legibility. At current moment usage of this flag could give effect only for TTF fonts, if these fonts are used in source document.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getScaleImagesToFitPageWidth()

public final boolean getScaleImagesToFitPageWidth()

Gets or sets a values used to scale all images on the page to fit page’s width.

Returns: boolean - boolean value

setScaleImagesToFitPageWidth(boolean value)

public final void setScaleImagesToFitPageWidth(boolean value)

Gets or sets a values used to scale all images on the page to fit page’s width.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getInterpolationHighQuality()

public boolean getInterpolationHighQuality()

Gets or sets high quality mode for interpolation.

Returns: boolean - boolean value

setInterpolationHighQuality(boolean value)

public void setInterpolationHighQuality(boolean value)

Gets or sets high quality mode for interpolation.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getMaxFontsCacheSize()

public int getMaxFontsCacheSize()

Maximum count of fonts in fonts cache. Default value is 10.

Returns: int - int value

setMaxFontsCacheSize(int value)

public void setMaxFontsCacheSize(int value)

Maximum count of fonts in fonts cache. Default value is 10.

Parameters:

ParameterTypeDescription
valueintint value

getMaxSymbolsCacheSize()

public int getMaxSymbolsCacheSize()

Maximum count of symbols in symbol cache. Default value is 100.

Returns: int - int value

setMaxSymbolsCacheSize(int value)

public void setMaxSymbolsCacheSize(int value)

Maximum count of symbols in symbol cache. Default value is 100.

Parameters:

ParameterTypeDescription
valueintint value

getDefaultFontName()

public final String getDefaultFontName()

Gets/sets the default name of font used to substitute of missing fonts.

Returns: java.lang.String - String value

setDefaultFontName(String value)

public final void setDefaultFontName(String value)

Gets/sets the default name of font used to substitute of missing fonts.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

setTryToSkipDocumentErrors(boolean value)

public void setTryToSkipDocumentErrors(boolean value)

Sets a value used to skip errors during processing pdf file

Parameters:

ParameterTypeDescription
valuebooleanboolean value

isTryToSkipDocumentErrors()

public boolean isTryToSkipDocumentErrors()

Gets a value used to skip errors during processing pdf file

Returns: boolean - boolean value

getIgnoreResourceFontErrors()

public final boolean getIgnoreResourceFontErrors()

Gets or sets indication that errors related to absence of font will be ignored. true - means that errors of absence of font will be ignored. Text segments that refer to incorrect resources will be skipped during processing. false by default

Returns: boolean - boolean value

setIgnoreResourceFontErrors(boolean value)

public final void setIgnoreResourceFontErrors(boolean value)

Gets or sets indication that errors related to absence of font will be ignored. true - means that errors of absence of font will be ignored. Text segments that refer to incorrect resources will be skipped during processing. false by default

Parameters:

ParameterTypeDescription
valuebooleanboolean value