Automatically extract artifacts out of a PDF through the command line