Python将doc文件合并为1个doc文件 [英] Python merging doc files into 1 doc file

查看:103
本文介绍了Python将doc文件合并为1个doc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux上的Python中,我想将多个.doc文件合并为1个.doc文件吗? (.doc文件将在Windows计算机中打开).我已经在互联网上进行搜索,但是找不到有用的信息.

In Python on Linux I would like to merge several .doc files into 1 .doc file? (The .doc file will be open in Windows machines). I have searched on internet but I don't find useful information.

我知道此功能适用于GhostScript中的PDF,但现在它也需要适用于doc文件.

I know that this feature is working for PDF in GhostScript, but now it needs also working for doc files.

有人建议如何解决此问题?

Has somebody suggestions how to solve this issue?

推荐答案

您可能想研究 https: //github.com/mikemaccana/python-docx ,它可以帮助您读/写msft doc文件.完成该工作后,只需简单的读取和追加程序即可.

You may want to look into https://github.com/mikemaccana/python-docx which can help with reading/writing msft doc files. Once you have that working its just a simple read and append program.

这篇关于Python将doc文件合并为1个doc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆