如何以编程方式访问pdf页面中的行并在python中给它们提供不同的颜色? [英] how to access lines in a pdf page programmatically and give them different colors in python?

查看:83
本文介绍了如何以编程方式访问pdf页面中的行并在python中给它们提供不同的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想直接访问pdf页面并访问各个行. 我想以不同的方式更改每行的颜色. 我正在使用linux,并且想用python编程.

I want to access a pdf page directly and access individual lines. I want to change color of every line differently. I am using linux and I want to program in python.

有人可以让我知道这样做的库和示例代码吗?

Could anyone please let me know the library and the sample code to do so?

非常感谢.

推荐答案

您可以使用基于python的库,例如 Reportlab 这是很好的图书馆,社区的支持也很好. 另一个简单的库是 pythonreport .

You can use the python based library like Reportlab this is the good library and community support is also well. and one another simple library is pythonreport .

这篇关于如何以编程方式访问pdf页面中的行并在python中给它们提供不同的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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