Skip to content

PrintFontOptions

new PrintFontOptions()

Contains information about font downloading and substitution for the fonts used for printing the document.


printFontOptions.downloadFonts

The font download mode.

Default: PrintFontDownloadMode.DOWNLOADSUBSET

PrintFontDownloadMode


printFontOptions.fontSubstitution

The font substitution policy.

Default: FontSubstitutionPolicy.SUBSTITUTEOBLIQUE

FontSubstitutionPolicy


printFontOptions.typename

The class name of the object.

String; read-only.


// Creates a new document, adds text then prints with specified font options.
var docRef = documents.add();
var pathRef = docRef.pathItems.rectangle(500, 300, 400, 400);
var textRef = docRef.textFrames.areaText(pathRef);
textRef.contents = "Text example";
//Create PrintFontOptions object and assign to a PrintOptions object
var fontOpts = new PrintFontOptions();
var printOpts = new PrintOptions();
printOpts.fontOptions = fontOpts;
// Set some font options
fontOpts.downloadFonts = PrintFontDownloadMode.DOWNLOADNONE;
fontOpts.fontSubstitution = FontSubstitutionPolicy.SUBSTITUTEDEVICE;
// print it
activeDocument.print(printOpts);