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
Example
The following example demonstrates how to set the preferred font name for the output document.
python
input_file_path = "***"
password = "***"
output_file_name = "***"
word_options = ConvertOptions()
word_options.font_name = "Arial"
error = CPDFConversion.start_pdf_to_word(input_file_path, password, output_file_name, word_options)1
2
3
4
5
6
7
2
3
4
5
6
7