FontEmbeddingOptions

Inheritance: java.lang.Object, com.aspose.pdf.FontEmbeddingOptions

public class FontEmbeddingOptions extends Object

PDF/A standard requires, that all fonts must be embedded into document. This class includes flags for cases when it’s not possible to embed some font cause this font is absent on destination PC.

Constructors

ConstructorDescription
FontEmbeddingOptionsInitializes a new instance of the {@link FontEmbeddingOptions} class. This constructor sets the default value for the {@code UseDefaultSubstitution}({@link #getUseDefaultSubstitution}/{@link #setUseDefaultSubstitution(boolean)}) property to {@code }.

Methods

MethodDescription
getUseDefaultSubstitutionIndicates whether to substitute non-embedded font using default font substitution strategy. By default false;
setUseDefaultSubstitutionIndicates whether to substitute non-embedded font using default font substitution strategy. By default false;

FontEmbeddingOptions

public FontEmbeddingOptions()

Initializes a new instance of the {@link FontEmbeddingOptions} class. This constructor sets the default value for the {@code UseDefaultSubstitution}({@link #getUseDefaultSubstitution}/{@link #setUseDefaultSubstitution(boolean)}) property to {@code }.

getUseDefaultSubstitution

public boolean getUseDefaultSubstitution()

Indicates whether to substitute non-embedded font using default font substitution strategy. By default false;

Returns: boolean value

setUseDefaultSubstitution

public void setUseDefaultSubstitution(boolean value)

Indicates whether to substitute non-embedded font using default font substitution strategy. By default false;

Parameters:

ParameterTypeDescription
valueboolean value