This Python script converts each page of a PDF document into an image with a transparent background, removing any ink (black text) and leaving the background transparent. The output images are saved as PNG files with transparency.
- Convert PDF pages to images.
- Remove black ink (text) and make the background transparent.
- Save the processed images as PNG files.
Make sure you have the following:
- That you have prescanned the pdf with a Scanner and Btw Mobile scanner appilcation also work.
- Also Make sure that After scanning Ink should be of some colour of black I haven't tried it with a physical scanner so I don't how it much effective it may be on that.
- Install the dependencies given the following requirements.txt
You can install these dependencies using pip by running:
pip install -r requirements.txt- Feel Free to Open PR Requests If you find better Configuration to optimize the Output results.


