Get the latest tech news
Mutool – all purpose tool for dealing with PDF files
mutool is a tool based on MuPDF for dealing with document files in various manners. There are several sub commands available, as described below.
The draw command will render a document to image files, convert to another vector format, or extract the text content. The supported output image formats are: pbm, pgm, ppm, pam, png, pwg, pcl and ps. This will make the output file larger, but provides easy access for reading and editing the contents with a text editor.
Or read this on Hacker News