3 ms·
It's easy to convert from PDF to EPS. Are you saying the PDF conversion step mangles it beyond recognition?
by axiolite 6y ago
It's easy to convert from PDF to EPS. Are you saying the PDF conversion step mangles it beyond recognition?
- sega_sai 6y agoI've just tried out of the interest making a plot in matplotlib, (1) save it to eps and (2) save it to pdf then convert to ps. And the original .eps is pretty readable, but the ps converted from pdf has some kind of "stream" encoding string. I.e. it's not really editable.
- exikyut 6y agoI think you're describing stream compression, which appears to be utterly ubiquitous to the point that the knobs to turn it off have either technically bitrotted or faded well below our collective awareness threshold. After poking around a bit I noticed ps2pdf supports a "CompressPages" option (https://web.mit.edu/ghostscript/www/Ps2pdf.htm https://web.mit.edu/ghostscript/www/Ps2pdf.htm), which might be what you're looking for. Alternatively you might use something like `qpdf --stream-data=uncompress input.pdf output.pdf`. qpdf (http://qpdf.sourceforge.net/ http://qpdf.sourceforge.net/) seems to be a good recommendation to add to the "mentally index the entire man page to know what it can do" list for anyone interested in PDF in general.