How to generate pdf from markdown using php?
I'm looking开发者_Python百科 for a solution to make a pdf from a markdown file using PHP. I need to use custom styles as well. So i'm wondering if parsing markdown then going with webkittopdf and using custom css styles will do it.
Have you used anything that can make the job ? Any clue ?
Thanks
Have a look at PrinceXML.
It's definitely the best HTML/CSS to PDF converter out there, although it's not free (But hey, your programming is not free either, so if it saves you 10 hours of work, you're home free.)
Also I would recommend you to try this one: http://www.tcpdf.org/ I had a lot of success converting HTML pages with CSS into PDF files.
精彩评论