Python Forum
[ library recommendation ] search & highlight target texts in PDF? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: [ library recommendation ] search & highlight target texts in PDF? (/thread-22789.html)



[ library recommendation ] search & highlight target texts in PDF? - smallabc - Nov-27-2019

Hi,
I am looking for a library, where :
1. user inputs target texts for highlight ( + also preferred highlight color )
2. script will read the PDF file, search for target texts & highlight them in backgound ( like the highlight functionality of Adobe PDF) , then close & save the PDF file.
Please advise. Thanks!


RE: [ library recommendation ] search & highlight target texts in PDF? - Larz60+ - Nov-27-2019

you can use reportlab, see: https://www.reportlab.com/snippets/11/