Python实战:自动批量创建word及PDF文档,附源代码

附件有打包工具及源码,欢迎下载使用。对于代码有疑问的,百度、Google才是正解

 

背景(background):

         XXX项目是客户仓库提供设备的,同时回退设备及物料需要本公司跟客户签署ACT后送到报废公司。每个站点都需要对应的文档,而且都是PDF文档,其中出现了一个比较重要的问题,客户的稽查部门会核对他们内部数据,然后发现问题后要求本公司提供相关数据,没有则认为你没有回退物料,或者多的设备给你了,你没还回去,就会要求赔偿。

                Xxx project use customer warehouse, and need to sign documents act with customer when return back dismantled equipment to Scrap company. For each key step, All sites need related equipment, and need PDF documents. Most important issues for project, customer audit department will check their data for equipment status, if outbound more equipment than Our company used, they will require to return back; if we dismantle more than scrap company act, they will ask Our company to check and do scrap. If Our company can not provide evidence, will issue penalty.

 

需求requirements:

项目设备方面涉及以下文档:出库文档OS-15,installation act(test1),dismantle act(test2),scrap list, scrap ACT。

其中最为关键的就是test1/test2,含物料信息、SN、站点,且互相都要确认的。所以这个数据我要求了相关人员都提供Excel版本数据,然后统一汇总保存到服务器,以便后续查看及核对

Following documents is related to Project equipment: OS-15,installation act(test1),dismantle act(test2),scrap list, scrap ACT

Most important documents is test1/test2 which include equipment item information/SN/Site ID, both our company and customer need to confirm it. So, we request our to provide Excel data to use, then we can make summary and save it in server for future auditing

 

产生的问题(new isues):

         提供了Excel数据,但是客户要PDF签字文档,所以得有人制作文档。

       Related role provide Excel data, but still need to create PDF documents, and sign with customer

 

解决方案(solution):

         用python制做了一个功能较全且可配置的文档生成工具:使用任意Excel 数据源,根据word模板,生成word 和PDF文档

       Use python to develop one tool with full related function: Use any excel data source to create word and PDF according word template

你可能感兴趣的:(Python;自动化)