GroupDocs.Conversion provides NoteLoadOptions to give you control over how the source Note document will be processed. The following options could be set:
setDefaultFont specifies a default font for Note document. The specified font will be used if a font is missing.
setFontSubstitutes specifies substitutes specific fonts from the Note document.
setPassword specifies a password to unlock the protected document.
Specify font substitution
The following code snippet shows how to convert a Note document and specify font substitution for missing fonts:
constjava=require('java')constoutputPath="convertNoteBySpecifyingFontSubstitution.pdf"constfontSubstitutes=java.newInstanceSync("java.util.ArrayList")fontSubstitutes.add(groupdocs.conversion.FontSubstitute.create("Tahoma","Arial"));fontSubstitutes.add(groupdocs.conversion.FontSubstitute.create("Times New Roman","Arial"));constloadOptions=newgroupdocs.conversion.NoteLoadOptions();loadOptions.setFontSubstitutes(fontSubstitutes);constconverter=newgroupdocs.conversion.Converter("sample.one",loadOptions)constconvertOptions=newgroupdocs.conversion.PdfConvertOptions()console.log(`Note document converted successfully to ${outputPath} (specifying font subs)`)converter.convert(outputPath,convertOptions)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.