摘要
测试过程中文档自动生成可提高软件测试效率。提出了一种XML-TeX-PDF文档转换方法,该方法可实现XML文档转换为PDF文档,适用于文档测试及文档扩展。首先,分析了XML文档格式,通过相关函数实现了XML文档到TeX文档的映射;然后,调用Java程序中处理TeX文档的命令,实现了TeX文档到PDF文档的自动转换;最后,试验验证了该方法的正确性和有效性。
The method for automatically generate document in the process of testing can improve the efficiency of software testing.A XML-TeX-PDF document conversion method is proposed.The method can transform XML document into PDF document.It is suitable for the document testing and the document extended.Firstly,XML documents are analyzed,and the mappings of XML documents to TeX documents are realized by relevant functions.Then,the document conversion of TeX documents to PDF documents can be automatically generated by calling commands in processing TeX documents in Java.Finally,experiments verify the correctness and validity of the proposed method.
出处
《指挥信息系统与技术》
2015年第6期39-43,共5页
Command Information System and Technology