Overview
In some output formats, you can set the preferred font name to unify the default font style in the output document.
Supported Formats
The font_name option currently applies to the following formats:
- PDF to Word
- PDF to Excel
- PDF to PowerPoint
- PDF to Searchable PDF
- PDF to OFD
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.
Example
c
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);1
2
3
4
2
3
4