I have been looking for a way to export a rendered markdown document to PDF. Unfortunately I have not been able to find a reliable way to do this (there are a lot of dependencies for the libraries I saw and I couldn't find a way to import them successfully. The APIs for web services to convert could potentially solve the issue, but I would prefer to do the conversion on my device and handle the output there).
I decided to try to change my approach because PIL can export to pdf so I was wondering if anyone knew of a way to convert an HTML page to an image that could then be run through PIL to be formatted into a PDF.
Does anyone know how this could be done (or of a better way)?