

html files, wkpdf, wasn’t working properly on Mountain Lion. Yesterday, I noticed my previous solution to generate PDFs off. I have started incorporating PDFpen in my paperless workflow recently, and I bought a Personal license last night because I absolutely love the software and the company behind it. On the Mac’s side, I rely on Hazel and PDFpen. Line 54 waits 15 seconds (the time it usually takes my mini to finish conversion and OCR), and the last line of the script simply launches Evernote, which will have my PDF ready for further reading or organization. html file is off to my Mac mini, which will process it. html file in my Dropbox using the method outlined in my original Pythonista review. Line 48 puts the HTML contents inside an.

Lines 39–43 request the URL, its contents (the HTML generated by Instapaper’s parser) and encode everything in UTF–8. Line 33 composes a base URL for Instapaper’s parser, to which we’ll append the actual URL we want to turn into a PDF (as usual, strictly for personal use). Like my previous scripts, the script checks if the number of arguments sent is less than two in that case, it assumes I haven’t forwarded a webpage name and URL via bookmarklet, and proceeds to grab them using a link in the clipboard (Lines 18–24). The script itself is fairly straightforward and inspired by Gabe Weatherhead’s use of urllib2.urlopen to get the text of a URL passed through the Instapaper bookmarklet. The bookmarklet simply grabs a webpage’s name and URL as two separate parameters, which are sent to Pythonista using argv. I’ve already explained why I like using the Instapaper parser for PDF generation, and the underlying structure of the Pythonista script is based on the scripts I use with the app.įirst, when I’m in Safari and I find a webpage that I want to archive, I hit the following bookmarklet in my Bookmarks Bar: javascript:window.location='pythonista://MakePDF?action=run&argv='+encodeURIComponent(document.title)+'&argv='+encodeURIComponent() html file that is uploaded to Dropbox Hazel and PDFpen, which monitor Dropbox and OCR the PDF on my remote Mac and, last, Evernote, which creates a new note containing the file as PDF. The script relies on Pythonista, which generates the actual. Hopefully you’ll find this quick solution useful feel free to modify it and/or send suggestions. It sounds complex, but in actual practice I can go from a Safari webpage on iOS to a PDF in the Evernote app in around 30 seconds. html file in my Dropbox, which is then converted to PDF and added to Evernote. On an iPhone or iPad, I can simply hit a button in Safari, and wait for Pythonista to turn a webpage (that’s already been passed through Instapaper’s text bookmarklet) into an. Yesterday I put together an iOS and OS X workflow to generate PDFs remotely on my Mac, starting from a simple bookmarklet on iOS. So I have come up with a way to combine Instapaper with the benefit of PDFs, Dropbox, and automation to generate documents off any link or webpage, from any device, within seconds. For as much as I like Instapaper, I can’t be sure that the service will be around in the next decades, and I don’t want my archive of longform and quality content to be lost in the cloud. Lately, I have become obsessed with turning longer articles I find on the Internet also into PDFs for long-term archival. When I come across a webpage that I know I want to keep for future reference, I like to generate a clean-looking PDF file with selectable text that I can rely on for years to come. I’ve already expressed my preference for archiving webpages as PDFs rather than simple “bookmarks” on an online service.
