ChatGPT Builds Python Script to Strip Yellow From Multi-Page PDFs, Preserving Sheet Music
Updated
Updated · ZDNet · Jun 15
ChatGPT Builds Python Script to Strip Yellow From Multi-Page PDFs, Preserving Sheet Music
3 articles · Updated · ZDNet · Jun 15
Summary
A command-line Python script generated by ChatGPT removed yellow backgrounds from scanned sheet-music PDFs and output a cleaned multi-page PDF for reprinting and app playback.
Direct AI editing was rejected because repeated ChatGPT runs subtly changed the PDF, raising concerns that notes or lyrics could be altered in music practice materials.
The prompt asked Python to turn any non-gray or non-black pixels white, tolerate slightly tinted grays, and handle both JPEGs and PDFs; after installing one library, the script ran successfully.
The case highlights a hybrid use of AI: using a non-deterministic model to write a deterministic tool when reliability matters more than a polished interface.