摘要
精准的文档一致性的测试能够极大提升动态文档生成系统的稳定性。为了定位文档数据、排版中的各种变化,本文分析了PDF文档结构,提出了一种PDF文档解析方法。应用该方法对PDF页面内容进行提取、分类;按文本、图像、图形、表单分类进行比较,设计完成了文档一致性测试系统。对不同类型的PDF文件进行了功能测试和性能测试,达到了应用需求。解决了动态文档生成系统在开发和升级过程中的回归测试问题。
Accurate document fidelity testing can greatly improve the stability of dynamic document generation system.In order to locate various changes in document data and typesetting,the PDF document structure is analyzed,and a PDF document parsing method is proposed.This method is applied to extract the content of PDF pages.The content is divided into four categories for comparison,The document consistency test system is designed and completed.The function test and performance test of different types of PDF files are carried out to meet the application requirements.It solves the problem of regression test in the process of development and upgrading of dynamic document generation system.
作者
师子源
李成
王明飞
SHI Ziyuan;LI Cheng;WANG Mingfei(Beijing Institute of Graphic Communication,Beijing 102600,China;OBJECTIVA Software Solutions(Beijing)INC.,Beijing 100022,China)
出处
《北京印刷学院学报》
2022年第3期56-60,共5页
Journal of Beijing Institute of Graphic Communication