Change text color in PDF

From MK Wiki EN
Jump to navigation Jump to search

My printer (Canon MP282) sucks and does not print black accordingly. So if I get a PDF with black text, I have to change the text's color to blue. I do it like this:

sed -i "s/0. 0. 0. rg/0. 0. 1. rg/g" filename.pdf

Credits: "Command line, change text color in pdf" in Reddit "linux4noobs"