As a continuation to my wildly popular XKCD2PDF post, here's a script I whipped out to get me some sweet PDFs of a great comic called The Oatmeal.
Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts
2012/01/22
2011/10/31
XKCD2PDF
This one doesn't neccessary fall under the topic of this blog, but since it's a hacky thing I've done - I'm posting it here.
Some time ago I wanted to get all the XKCD comics stored on my iPad for offline viewing. Didn't find another solution so I cooked my own:
I am really sorry about the 4th step, I know it's lame, but suprisingly, Word's "Save-as PDF" feature gave the best looking output.
And if you are lazy, you can grab the already generated PDFs here: (split in 3 chunks, the first 900 comics).
http://www.filesonic.com/file/2840295035/out.pdf
http://www.filesonic.com/file/2840295055/out2.pdf
http://www.filesonic.com/file/2840295065/out3.pdf
P.S. Here's the script:
Some time ago I wanted to get all the XKCD comics stored on my iPad for offline viewing. Didn't find another solution so I cooked my own:
- A script that gets the JSON files of each comics and rips the important info
- Download the stuff
- Build a HTML page describing the comics with their 'alt' part (the good stuff)
- Open the HTML in Word, set margins to zero, save as PDF
- ...
- Profit!
I am really sorry about the 4th step, I know it's lame, but suprisingly, Word's "Save-as PDF" feature gave the best looking output.
And if you are lazy, you can grab the already generated PDFs here: (split in 3 chunks, the first 900 comics).
http://www.filesonic.com/file/2840295035/out.pdf
http://www.filesonic.com/file/2840295055/out2.pdf
http://www.filesonic.com/file/2840295065/out3.pdf
P.S. Here's the script:
2010/09/22
A PDF Intent
Here's a naughty bit of behavior from the Android's Intents.
When you want to customize the mime-type of the requested intent, the setter for reason resets the previously set Data parameter. Cute right?
And to overcome this great issue, the API has another method setDataAndType(). See what they did there?
Anyways - here's a correct method (opening a PDF in this example):
When you want to customize the mime-type of the requested intent, the setter for reason resets the previously set Data parameter. Cute right?
And to overcome this great issue, the API has another method setDataAndType(). See what they did there?
Anyways - here's a correct method (opening a PDF in this example):
Subscribe to:
Posts (Atom)