One weird PDF trick http://tingletech.github.io/pdftrick/ pip install pdftrick pdf ⇒poppler⇒ postscript ⇒ghostscript⇒ pdf Requirements pdftops from Poppler pdf2pdf from Ghostscript