Nice job guys. This is off-topic but do you guys know of a good library to convert HTML to PDF (Python)? I'm wondering how did guys at pdfmyurl.com did it? Any ideas
PDFmyURL.com - Convert and save pdf from any webpage for free
11–20 of 22 posts
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#12Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#13I'd seen this kind of thing before but voted up after checking out the 'advanced options' section. After some googling of those "man page" style options, I see now this is probably a web wrapper around [1] so I will more likely integrate that program directly into something I'm working on. But still bookmarking the site for quick jobs. [1] - http://github.com/antialize/wkhtmltopdf
Ooh -- if that works I could do my dashboards in HTML/CSS, print them to PDF, convert the PDF to an image file, and use that. That would make my life much easier, as producing the PDFs directly is a bit of a kludge. Thanks, I'll have to look into that later.
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#14No offense to the op but this is another reason why I prefer OS X to any other operating system.. this stuff is built in. You can print any site right to PDF from any browser (as it's an OS feature). No Adobe needed.
Does it work correctly? pdfmyurl.com does and so do a few more online such services.
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#15Very well done!
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#16Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#17No offense to the op but this is another reason why I prefer OS X to any other operating system.. this stuff is built in. You can print any site right to PDF from any browser (as it's an OS feature). No Adobe needed.
Try doing that with your Mac OS X and http://www.woothemes.com/demo/dailyedition/ Does it work correctly? pdfmyurl.com does and so do a few more online such services.
Edit: It appears to be the advanced option "print-media-type" that is the problem. Browsers do it by default and if you have pdfmyurl.com use it, the link you posted will look bad. I suspect that this would not be a problem if the theme did not restrict its CSS to "screen". I believe all of the CSS is dumped by the browser when printing because of this directive. The fonts are still correct so the link tags without media attributes probably have those CSS rules.
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#18Even better than a bookmarklet, make it so that anyone can type your URL in front of the one they want PDFed, and it will do so automatically. e.g. http://pdfmyurl.com/news.ycombinator.com/item?id=1190151 Aviary.com does this for site screenshots, and I love it.
As far as the bookmarklet goes it would be nice if you could set some of the common options, page-size, orientation, with some nice checkboxes, like Readability (http://lab.arc90.com/experiments/readability/).
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#19Nice job guys. This is off-topic but do you guys know of a good library to convert HTML to PDF (Python)? I'm wondering how did guys at pdfmyurl.com did it? Any ideas
Re: PDFmyURL.com - Convert and save pdf from any webpage for free
#20For offline version I had been using this application for some time now... WebKit HTML to PDF http://code.google.com/p/wkhtmltopdf/ This is a PDF generator which uses WebKit engine to render the HTML page and then converts to PDF. Has command line advanced options, like this site.