Daily Python Projects

Daily Python Projects

Search and find content inside PDF files with Python and pdfplumber

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
May 28, 2024
∙ Paid
1
Share

Project Brief

Your task for this project is to create a Python program that searches inside all the PDF documents in a folder.

If it finds a certain word, it returns:
- the name of the PDF file, and
- the number of the PDF page that contains that word.

The code in the solution section uses the pdfplumber library to process PDF files.

You can use these PDF files as a sample.

Expected Output

Here is an example of how the app would be used by the user:

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture