Python Forum

Full Version: [ library recommendation ] search & highlight target texts in PDF?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
you can use reportlab, see: https://www.reportlab.com/snippets/11/