March 23rd, 2007

beartato phd

(no subject)

ηὕρηκα! I think I solved this PDF problem well enough for my purposes. The key is PDF/X, a family of subsets of PDF meant for, as far as I can tell, actually doing what PDF is supposed to do, i.e. unambiguously describing a document.

So if you ever find yourself with an existing PDF file that doesn't have base 14 fonts embedded, and you don't have access to the PS or whatever that generated that PDF, and a round-trip through pdf2ps and ps2pdf rasterizes all the fonts and makes them look hideous, do this instead:

gs -sOutputFile=output.pdf -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFX=true input.pdf -c quit

The bold part is the important part. The gray parts are just boilerplate to make gs not do a bunch of bullshit pausing and displaying and waiting for input.
beartato phd

(no subject)

Sometimes when I get into these stupid recklessly introverted withdrawing moods I just sit around and play piano or guitar or something until I can't feel the tips of my fingers and I forget to eat for hours. This has the advantage that when I remember to eat, it tastes extremely good, presumably because my body is rewarding me for doing the completely obvious.

In other news: The commentator/narrator of Pale Fire is still hilarious, writing research papers is still hard.