Pimm - Partial immortalization

A Biotech Geek Blogger’s adventures through science, technology and the web…

How to read PDF files on iPhone via Safari instead of lame email attachments

Posted by attilachordash on July 18, 2007

dataProp71 The 2 main drawbacks to reading PDFs on the iPhone are the must-send-it in email in order to store and open “solution” and the user-unfriendly, landscapeless left-right scrolling reading mode. Not anymore. Both problems can easily be overcome with the help of a Safari browser hack using the almost forgotten data: URI schemes. From now on you can store and open your PDF files (and many others) in the iPhone’s Safari browser even in the Wi-Fi- and EDGE-less airplane mode and you can read PDFs in a landscape mode with only 1 one pich (that fits a column) and significantly less left-right scrolling in a much more satisfying, although not yet perfectly manner.

Here I show you in 4 steps how to do so.

1. Convert your source PDF file (by encoding an uploaded file from your folders or from URL) to a valid data: URI format with the help of a converter. I used the online The data: URI kitchen encoder but others are available too, you can even use a Perl script (and run it with Terminal under Mac OS X, thanks Mike). This will generate a very long and ugly URI line. (Sample PDF: Proposition 71 of the California Institute of Regenerative Medicine)

2. Copy/paste the long and ugly URI code into Safari and add it to your Bookmark Bar.

3. Sync your iPhone’s bookmarks with your Mac’s Safari bookmarks via iTunes, with that you can create a direct link for the PDF on your iPhone’s Safari bookmarks.

4. You’re ready, open the PDF file from the bookmarks and read it with a 1 pich landscape mode.

The same algorithm with screenshots:

1.

URIkitchen

2.

safariURIbookmark

3.

syncsafaribookmarks

4.

dataProp71

landscapePDFoniPhone

I’d like to thank for W. Clawpaws and the commenters (specially overkill for the link and iluvcapra for the reality check).

Here is Peter Meyers’ diagnosis in length:

First, the only way to permanently store and view a PDF is to email it to yourself and then open the attachment. Because the iPhone doesn’t have any kind of user accessible folder system, you can’t save the PDFs and view them later, as you might on a regular PC. The second, and more serious problem, is that text in a PDF doesn’t “reflow” to fit your phone’s display. When you first open a PDF all the text fits onscreen as in this picture but the text is too small to read. When you use the iPhone’s zoom-in feature, you’re back in the dreaded, reader-unfriendly land of having to scroll left and right. What a pain. Apple could help solve this problem by letting you change the PDF’s orientation from portrait to landscape (which is what you can do with the Web browser and photos on the iPhone).

Comment of iluvcapra on the original Life with Lunchhooks post: I successfully encoded the entire first volume of Gibbon’s Decline and Fall to PDF and moved it to my iPhone. It even opens it, though Safari generally crashes after a few minutes of scrolling down pages. The PDF I made was 1.2 Megs.
Also, Safari on my Macbook would beachball for minutes at a time when I’d try to copy/paste or move the data URL around the bookmark page. I had to use the Property List editor to add the data: URL into my bookmarks with any speed.

Another source link from Hackszine.

30 Responses to “How to read PDF files on iPhone via Safari instead of lame email attachments”

  1. Open PDF documents in Safari | iPhone News, Reviews, Accessories and more Says:

    [...] Open PDF documents in Safari July 18th, 2007 | Category: iPhones Talk The iPhone’s pretty rubbish handling of PDF files can be a frustration.  There’s no way to transfer the files direct to the handset - you have to e mail them to yourself - and the reading app is portrait-mode only and requires a lot of scrolling whether you’ve got a wide document.  What’s needed is a way to use the far better rendering in Safari, and that’s just what’s detailed by at Pimm. [...]

  2. Open PDF documents in Safari | Gadget & Tech News Says:

    [...] Open PDF documents in Safari July 18th, 2007 | Category: iPhone News The iPhone’s pretty rubbish handling of PDF files can be a frustration.  There’s no way to transfer the files direct to the handset - you have to e mail them to yourself - and the reading app is portrait-mode only and requires a lot of scrolling whether you’ve got a wide document.  What’s needed is a way to use the far better rendering in Safari, and that’s just what’s detailed by at Pimm. [...]

  3. iPhone24-7.com Anything & Everything iPhone & New Gadgets » Blog Archive » Open PDF documents in Safari Says:

    [...] The iPhone’s pretty rubbish handling of PDF files can be a frustration.  There’s no way to transfer the files direct to the handset - you have to email them to yourself - and the reading app is portrait-mode only and requires a lot of scrolling if you’ve got a wide document.  What’s needed is a way to use the far better rendering in Safari, and that’s just what’s detailed over at Pimm. [...]

  4. Mark Says:

    When. Is. This. Issue. Going. To. Be. Resolved. With. A. PDF. Reading. App.

    What a total pain. This is a 21st century communications device that doesn’t even let you store a simple PDF file.

    How insanely STUPID on the part of Apple to allow this kind of thing to happen.

  5. gadgetpick.com » Blog Archive » Open PDF documents in Safari Says:

    [...] The iPhone’s pretty rubbish handling of PDF files can be a frustration.  There’s no way to transfer the files direct to the handset - you have to newsletter them to yourself - and the reading app is portrait-mode only and requires a lot of scrolling whether you’ve got a wide document.  What’s needed is a way to use the far better rendering in Safari, and that’s just what’s detailed by at Pimm. [...]

  6. Top Posts « WordPress.com Says:

    [...] How to read PDF files on iPhone via Safari instead of lame email attachments [image] The 2 main drawbacks to reading PDFs on the iPhone are the must-send-it in email in order to store and open […] [...]

  7. Designtion Says:

    Hi,
    I made an online cellphone PDF reader with the iphone in mind. I’d love it if you would test it (it’s a free service):
    http://designtion.com/labs/2007/07/18/read-any-pdf-on-your-cell-phone/
    Since it’s plain text it should wrap to portrait or landscape mode.
    Thanks!

  8. Mike Raeder Says:

    Folks, let’s not be too harsh. The iPhone /just/ came out. It’s got a lot of cool things, but don’t expect it to fold your washing, drop your kids off to school, and improve your bowling score.

    That said, just imagine all the hacks that are possible. Just give it time. When Attila first brought this to my attention, it’s got me playing with JavaScript and Perl specifically for the iPhone. I’m a lazy programmer. Just imagine what other programmers out there are doing right now. Instead of whining about what the iPhone can’t do right now, I think people should concentrate on what it will be doing in the months to come after people come up with some really cool hacks.

    Meanwhile, look here for development stuff.

    http://developer.apple.com/iphone/

    Regards,
    Mikey

  9. Mr. Gunn Says:

    It’s got a lot of cool things, but don’t expect it to be a Nokia.

    Fixed that for ya, Mike.

  10. iphonetopics.com » Open PDF documents in Safari Says:

    [...] The iPhone’s pretty rubbish handling of PDF files can be a frustration.  There’s no way to transfer the files direct to the handset - you have to email them to yourself - and the reading app is portrait-mode only and requires a lot of scrolling if you’ve got a wide document.  What’s needed is a way to use the far better rendering in Safari, and that’s just what’s detailed over at Pimm. [...]

  11. iPhoneKing » how to read pdf file on iphone Says:

    [...] http://pimm.wordpress.com/2007/07/18…l-attachments/ [...]

  12. Ian in Oxford Says:

    On my iPod 80GB (I don’t have a iphone yet) I can view any document by uploading it to iPhoto (’Save pdf to iphoto’ ;) and the syncing the resulting iPhoto album.

    Its great for PowerPoint if I’m away at a Conference and want to go over slides.

    I presume that this works on the iPhone and from what I read here should be a better way of reading documents than trying to use Safari? Obviously it requires duplication of the file and you can’t edit anything and you still can’t easily save a pdf that you download in Safari.

  13. schnell mal reingelesen at iPhoneBlog.de Says:

    [...] Bis auf das “etwas aufwendigere” rooten ins Unterverzeichnis “var/root/media/pdf” - in das man die Dokumente ablegt - funktioniert das alles schon sehr schön. Eine simplere Synchronisation via iTunes wäre natürlich das Ziel. Offiziell geht derzeit nur der Weg über MAIL (als Anhang) oder als Safari-Bookmark. [...]

  14. Como leer PDF desde el iPhone/iPod Touch | aNieto2K Says:

    [...] Una solución es enviarte el fichero .pdf al mail y una vez descargado es posible ejecutarlo desde el cliente de correo. [...]

  15. dastan Says:

    hiii

    is there any offline uri converter

    my pdf files are to big and i cant upload them

    please help

  16. Alain Says:

    hi

    I’d like to know if this would be exactly the same for the iTouch instead of the iPhone.
    I suppose it is but I want to be sure before i buy one?

    Thanks in advance.

  17. PDF files on iPhone / iTouch | David Bisset: Web Designer, Coder, Wordpress Guru Says:

    [...] How to read PDF files on iPhone via Safari. Might work for the iTouch too. Tags: iPhone, iTouch, Safari, WordPress [...]

  18. PDF på iTouch — This is not a blog Says:

    [...] “simpel” metode man kan benytte til at få PDF’s på iTouch. Denne artikel “How to read PDF files on iPhone via Safari instead of lame email attachments” fortæller hvordan man kan lave sin PDF om til en URI, som er en slags URL. Denne URI [...]

  19. aa98 Says:

    Y, I tried it out, I could encode the whole 293 pages of ebook and hide inside safari bookmark, the problem is that it’s too slow to open up the bookmark and it crashed the safari couple times before it worked.
    Also I had a iphone crash that night and I had to reset everything and reimport all files again…but I’m not sure if that’s related to this little hack I did though. My suggestion is…be very careful when read pdf this way.

  20. “ajs pocket” « Frodog Says:

    [...] deleting or tagging my mail.  Fortunately, I googled my way to learn how to save pdf files as safari bookmarks that I could just sync to the ipod touch when I connect it to my computer.  This method became [...]

  21. konstantinos Says:

    what do you mean “paste the ugly URI into safari”? how?

  22. Games 4 MySpace Says:

    so the only way to do this is to use a computer? theres no way to do it only on the iphone itself without syncing it with a computer?

  23. I’d Buy That For A Dollar « NeoZAZ, the Blog Says:

    [...] among a bunch of apps that require jailbreaking and some websites you can upload your pdfs to, this hack, which I may just start using for now. But I’d still rather have the full-fledged [...]

  24. Solvudar Says:

    So you cannot store your PDF on iphone’s memory, besides email attachment? Damn iphone.. I’m getting a Nokia :)

  25. Dispatches from Москва » Blog Archive » more books, iphone tricks Says:

    [...] landscape mode. without it normal print books are just too small for these old eyes.  I read a hack where you encode the pdf using you can open it in safari, but the URI did not work for [...]

  26. iPhone Unlocker Says:

    i agree with Solvidar,
    it would be a very nice feature to be able to save the documents. This is a Feature that im currently missing, along with 3G ofcourse

  27. Sebastien Says:

    Emailing myself a pdf file is pretty much always faster than SSHing it to the phone, unless of course if it is a large file.

  28. Jason Poste Says:

    Thank you for the excellent post. I bought an iPhone recently and still figuring out how to grasp the full potential of this marvel.

  29. gefa Says:

    here is a much cooler and easier way to read offline pdf’s

    http://georgfankhauser.blogspot.com/2008/04/perfect-way-to-read-pdf-doc-offline-on.html

  30. Skynet Says:

    :::BramjnetZ::: vous fait part des derniers nouveautées Informatique comme Telechargement, Articles, Chat, jeux, musique, cinema, manga…
    le site du partage par excellence

    http://www.BramjnetZ.com

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>