Class: TextSettings

Core.PDFNet.Optimizer. TextSettings


new TextSettings()

An object that stores image text optimization settings.

Methods


embedFonts(embed)

Sets whether fonts should be embedded. This will generally increase the size of the file, but will make the file appear the same on different machines. Font embedding is off by default.
Parameters:
Name Type Description
embed boolean if true all fonts will be embedded.
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.TextSettings

subsetFonts(subset)

Sets whether embedded fonts will be subset. This will generally reduce the size of fonts, but will strip font hinting. Subsetting is off by default.
Parameters:
Name Type Description
subset boolean if true all embedded fonts will be subsetted.
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.TextSettings