Hi all,
I bought Pythonista yesterday, having been made aware of its presence by a talk at the EuroPython conference. I've been playing around with it for hours already... This finally turns my iPad2 into an actually useful device (besides surfing and usage as sheet music display)!
I had been looking for a way to write text notes on the iPad and convert them into PDF files without the need for a commercial app or a network connection (I often write lead sheets for my band during train rides), but all the solutions I found either required buying another app, just for the purpose of PDF export or to use a web service, which doesn't really work well on-the-go.
Anyway, to cut a long story short: with Pythonista and some external pure-Python packages I was able to write my own solution in no time.
Here it is: MarkdownPDF.py
The script contains some documentation in its docstring (in Markdown format, naturally). To use it, you need to install the required Python packages. I have created another small script
to download a Zip archive I created, which bundles all the required packages, and extracts them to the 'site-packages' sub-directory:
Download script: download_md2pdf.py
Put both scripts in your pythonista documents folder, run the download_md2pdf.py script and check the console if everything went ok and also check your site-packages directory for the new packages. You can delete the download_md2pdf.py script afterwards.
Then run the MarkdownPDF.py script and follow the prompts (first startup may take some time). You will be able to either view the documentation, convert Markdown from the clipboard or from a URL. After the conversion, you will be asked whether you want to save the PDF output to a file, open it in another app, or view it with console.quickview() (from where you can also open it in another app).
Have fun with it and if you have suggestions, comments, bug reports etc., let me know!