Output Font Option
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
The following example demonstrates how to set the preferred font name for the output document.
c++
ConvertOptions opt;
opt.font_name = "Arial";
CPDFConversion::StartPDFToWord("word.pdf", "password", "path/output.docx", opt);1
2
3
2
3