PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
版面分析是一种使用人工智能(AI)技术来解析和理解文档版面结构的过程。它旨在从输入的文档中提取有关文本、图像、表格、图层等内容的数据,并在此基础上实现文档版面结构还原,通常情况下我们都建议开启该选项以提升转换质量。
在 ComPDF Conversion SDK 中,版面分析常用的使用场景包括:
以下是支持版面分析的功能:
此示例演示了如何在 PDF 文档上使用 ComPDF Conversion SDK 的 版面分析功能,将 PDF 文档转换为 Word 文档。
string inputFilePath = "***";
string password = "***";
string outputFileName = "***";
WordOptions wordOptions = new WordOptions();
wordOptions.ContainImage = true;
wordOptions.ContainAnnotation = true;
wordOptions.EnableAiLayout = true;
wordOptions.EnableOCR = false;
ErrorCode error = CPDFConversion.StartPDFToWord(inputFilePath, password, outputFileName, wordOptions);