A tool that converts PDFs to dark mode in seconds while preserving their original quality and colors. Allows custom quality selection (low, medium, high) (300, 600, 900 dpi respectively).
- Using a different language for the converter, Python is a bit slow
- Detecting images and text when converting
- Making final PDF size smaller
NOTE: All benchmarks below were tested using a 1 page PDF with an image and using Python={3.12.3}. Times were recorded using the inubilt logging and time library in Python.
Quality Level | Conversion of PDF to PNGs (seconds) | Processing with multiprocessing (seconds) | Processing with threading (seconds) | Repacking PDFs (seconds) |
---|---|---|---|---|
High | 4.54 | 5.64 | 0.00 | 0.00 |
Medium | 2.39 | 3.06 | 0.00 | 0.00 |
Low | 0.81 | 1.43 | 0.00 | 0.00 |