输出字体选项
概述
在某些输出格式中,您可以设置首选字体名称来统一输出文档中的默认字体样式。
支持的格式
font_name 选项目前适用于以下格式:
- PDF 转 Word
- PDF 转 Excel
- PDF 转 PowerPoint
- PDF 转可搜索 PDF
- PDF 转 OFD
示例
以下示例演示了如何为输出文档设置首选字体名称。
c++
std::string inputFilePath = "***";
std::string password = "***";
std::string outputFileName = "***";
ConvertOptions opt;
opt.font_name = "Arial";
CPDFConversion::StartPDFToWord(inputFilePath, password, outputFileName, opt);1
2
3
4
5
6
7
2
3
4
5
6
7