【发布时间】:2021-07-12 16:36:44
【问题描述】:
我的需要是使用 Python 获取 word 文件中的文本图像。文本长度随每个文件而变化。如何在不包含文档其余部分的空白的情况下检测文本并截取屏幕截图或生成该文本的图像?文本可以跨越多行。
Here is an example of the word file
And this is the result I am looking for
我正在编写一个脚本来读取 word 文件,如上截取屏幕截图,然后将其保存到某个位置。
编辑:已解决。
【问题讨论】:
标签: python python-3.x automation