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 to unify the default font style in the output document.
The font_name option currently applies to the following formats:
For Searchable PDF and OFD, font_name controls the font used for the invisible or visible text layer that is overlaid on the page background. For Word, Excel, and PowerPoint, it sets the preferred default font of the generated document.
CConvertOption option = CPDF_DefaultConvertOption();
strcpy(option.font_name, "Arial");
CPDF_StartPDFToWord(CPDF_TEXT("word.pdf"), CPDF_TEXT("password"), CPDF_TEXT("path/output.docx"), option, NULL);