Home

ps2pdf web proxy thing

  • Apr. 25th, 2007 at 2:24 PM
lens

My college's computer room has a printer I like to use to turn bits into dead trees. The computer there don't have Postscript viewers, which is a Right Pain in the Arse.

So I just wrote a proxy-type thing that, if fed the URL of a Postscript file, runs it through ps2pdf and gives you the resulting PDF. For extra bonus points, if you feed it a random HTML URL, it rewrites the links within the page to go back through itself, then serves up the page. So I can feed the Comlab internal web page through it and happily print out the exam papers that I want for revision porpoises.

I had to password-protect my live copy, otherwise random people would be able to get to ox.ac.uk-internal pages. But you can grab the code, licensed under the WTFPL, with:

darcs get http://salami.ox.compsoc.net/~resiak/darcs/ps2pdf

If you're an .ox.ac.uk person and want to use it, prod me and I'll see about depasswording the live copy for IPs within the university.

Tags: