niklasvh/html2canvas — pull request #486 by Flamenco (2014-12-16 02:15:45+00:00)
Title: bullet support for <li>

I re-added elements from your previous implementation, plus added native context2d drawing for unordered lists.
http://rawgit.com/Flamenco/html2canvas/master/examples/lists.html

You might enjoy this, too:
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/lists.html

I have successfully bridged html2canvas code in order to generate a PDF instead of a canvas. The nice thing about this is the PDFs can be scaled, selected, searched, and annotated (vs canvas). Notice how much sharper the PDF is compared to the canvas implementation.

Here are your 2 demo files rendered to PDF format:
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/pdf.html
http://rawgit.com/Flamenco/jsPDF/master/examples/html2pdf/pdf2.html

You can view all examples here:
https://github.com/Flamenco/jsPDF/wiki/html2pdf

I needed to make a few modifications to the html2canvas code for signaling page breaks (page-break-before) to the canvas/context2d. Please let me know if you are interesting in incorporating them and/or establishing an interface for pagination during the rendering process.

Thanks for your great work!