PrintFontOptions
PrintFontOptions
Section titled “PrintFontOptions”new PrintFontOptions()
Description
Section titled “Description”Contains information about font downloading and substitution for the fonts used for printing the document.
Properties
Section titled “Properties”PrintFontOptions.downloadFonts
Section titled “PrintFontOptions.downloadFonts”printFontOptions.downloadFonts
Description
Section titled “Description”The font download mode.
Default: PrintFontDownloadMode.DOWNLOADSUBSET
PrintFontOptions.fontSubstitution
Section titled “PrintFontOptions.fontSubstitution”printFontOptions.fontSubstitution
Description
Section titled “Description”The font substitution policy.
Default: FontSubstitutionPolicy.SUBSTITUTEOBLIQUE
PrintFontOptions.typename
Section titled “PrintFontOptions.typename”printFontOptions.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Printing with font options
Section titled “Printing with font options”// 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 objectvar fontOpts = new PrintFontOptions();var printOpts = new PrintOptions();printOpts.fontOptions = fontOpts;
// Set some font optionsfontOpts.downloadFonts = PrintFontDownloadMode.DOWNLOADNONE;fontOpts.fontSubstitution = FontSubstitutionPolicy.SUBSTITUTEDEVICE;
// print itactiveDocument.print(printOpts);