This is a handy command from Super User, for when you’ve run out of black printer ink and really need to print something.
If you have some colour left, you can run this to convert the black ink in the PDF to blue (or any other colour you specify), and print what you need to print until you can get some new ink.
magick convert -density 300 input.pdf -fill blue -opaque black output.pdf