Notes from a Medium-Sized Island [entries|archive|friends|userinfo]

[ website | My Website ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Mar. 23rd, 2007|12:56 pm]
[Tags|, , ]

ηὕρηκα! 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.

From: lambdacalculus
2007-03-23 06:35 pm (UTC)
If only you had futurebrowser you could have solved your own problem by reading your own blog!
(Reply) (Thread)
From: simrob
2007-03-24 04:57 am (UTC)

Futurebrowser Considered Harmful

This is why some web programming should, in fact, be based on S4.
(Reply) (Parent) (Thread)