PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
在某些输出格式中,您可以设置首选字体名称来统一输出文档中的默认字体样式。
FontName 选项目前适用于以下格式:
以下示例演示了如何为输出文档设置首选字体名称。
string inputFilePath = "***";
string password = "***";
string outputFileName = "***";
WordOptions wordOptions = new WordOptions();
wordOptions.FontName = "Arial";
ErrorCode error = CPDFConversion.StartPDFToWord(inputFilePath, password, outputFileName, wordOptions);