PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
In some output formats, you can set the preferred font name (for example "Arial") to unify the default font style in the output document. It is empty by default, in which case the SDK chooses fonts based on the source document. The option has no effect in other output formats.
The fontName option currently applies to the following formats:
The following example demonstrates how to set the preferred font name for the output document.
val wordOptions = WordOptions()
wordOptions.fontName = "Arial"
val error = ComPDFKitConverter.startPDFToWord("word.pdf", "", "output.docx", wordOptions)