This tool is used to separate color and black & white pages from a PDF file into two separate PDF files.
- Install the libraries:
pip install pymupdf
pip install numpy
pip install tqdm
- Place the PDF file to be separated in
INPUT_PDF_PATH
. - Run the
main.py
script.
python main.py
- Choose whether to use double-sized printing mode by configuring
IS_DOUBLE_SIZED_PRINTING
- The separated color pages will be saved in
color_pages.pdf
, and black & white pages will be saved inbw_pages.pdf
.
Contributions are welcome! If you find any issues or have any suggestions, please raise an issue. If you'd like to contribute code, please fork this repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.