=== Convert pdf pages to a picture === $ gs -sDEVICE=pngalpha -o -r1200 -dFirstPage= -dLastPage= n.b., the resolution of 1200 pixels for inch is quite large. Probably one wants to convert the result in smaller files. === Remove pictures from a pdf file === $ gs -o noimage.pdf -sDEVICE=pdfwrite -dFILTERIMAGE === Convert an image to black and white === $ convert -colorspace HSL -channel L -separate