GroupDocs.Conversion provides the NoteLoadOptions class to give you better 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:
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.contracts.FontSubstitute;importcom.groupdocs.conversion.options.convert.PdfConvertOptions;importcom.groupdocs.conversion.options.load.NoteLoadOptions;importjava.util.ArrayList;importjava.util.List;...NoteLoadOptionsloadOptions=newNoteLoadOptions();List<FontSubstitute>fontSubstitutes=newArrayList<FontSubstitute>();fontSubstitutes.add(FontSubstitute.create("Tahoma","Arial"));fontSubstitutes.add(FontSubstitute.create("Times New Roman","Arial"));loadOptions.setFontSubstitutes(fontSubstitutes);loadOptions.setDefaultFont("Helvetica");Converterconverter=newConverter("sample.one",loadOptions);PdfConvertOptionsoptions=newPdfConvertOptions();converter.convert("converted.pdf",options);
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.