Converts black text in PDFs to blue for better printing.
The pdf2image library requires poppler to be installed on your system:
- macOS:
brew install poppler - Linux:
sudo apt-get install poppler-utils
- Navigate to the project directory:
- Activate the virtual environment:
source venv/bin/activate- Install dependencies (if not already installed):
pip install -r requirements.txtBasic usage (outputs to input_blueprint.pdf in the same directory):
python convert_pdf_color.py <your-pdf-file>Example (tested):
python convert_pdf_color.py example.pdf
# Output: example_blueprint.pdfCustom output path:
python convert_pdf_color.py /path/to/document.pdf -o /path/to/output.pdf- ✅ Successfully tested with
example.pdf - ✅ Output:
example_blueprint.pdf - ✅ Python 3.11 with virtual environment
- ✅ Dependencies: pdf2image, Pillow, numpy