We're currently generating reports for our web application using html5 / css3, and they look good on screen, but obviously when the user hits print who knows what is going to come out of the printer. So, what I would like to know is what is the best way to convert these reports to PDF for download / printing while maintaining the same visual quality of the on screen reports.
- EVO HTML to PDF Converter for.NET is a library that can be easily integrated and distributed in your ASP.NET and MVC web sites, desktop applications, Windows services and Azure cloud services to convert web pages, HTML strings and streams to PDF, to images or to SVG and to create nicely formatted and easily maintainable PDF reports and documents. The converter has full support for HTML5, CSS3, SVG, Canvas, Web Fonts and JavaScript.
- Beginning HTML5 and CSS3 For Dummies Pdf mediafire.com, rapidgator.net, 4shared.com, uploading.com, uploaded.net Download Note: If you're looking for a free download links of Beginning HTML5 and CSS3 For Dummies Pdf, epub, docx and torrent then this site is not for you.
What is the best way to generate a PDF file from HTML and CSS? Update Cancel. A d b y M o n g o D B. CSS and JavaScript and for advanced HTML5 features like CSS3, SVG and Web Fonts. The rendering is extremely accurate and the resulted PDF preserves all the graphics, images, texts, fonts and layout of the original HTML document, no matter. Convert PDF to HTML5 - Convert your file now - online and free - this page also contains information on the PDF and HTML5 file extensions. Choose the PDF file that you want to convert. Select HTML5 as the the format you want to convert your PDF file to. Tell Zamzar where you want to receive your converted HTML5 file.
Update 2010-10-26 16:01: We're using both .NET and Perl
6 Answers
The only think I can think of that might work is wkHTMLtoPDF. It's a QT app that sits on top of WebKit to generate its PDF.
The good news is that it even evaluates JS so just about anything goes.
The bad news (for you) is that it uses QT, which is an X11 windowing thingy. Given that you're using .NET I'm guessing you're a windows shop, which means extra installer headaches.
Mark StorerMark StorerTry Prince XML, the results are pretty to look at.
If you are using some of the new HTML5 elements like Canvas, then probably even the popular PDF converter wont help you.
I suggest you to put suitable print-friendly version of your CSS. This could be achieved by using media='print'
attribute in the <link...
tag of a separate CSS file, which is containing the definitions for print version.
Some options (all proprietary):
- Aspose.Pdf for .NET: Expensive, very good though.
- Winnovative HTML to PDF Converter: I've already use their tool, gets the job done.
- ExpertPDF: Another good one.
For open-source alternatives, please see here:
ExpertPdf (www.html-to-pdf.net) supports html5 / css3.
Pdf To Html5 Canvas
You can try the online demo here:http://www.html-to-pdf.net/free-online-pdf-converter.aspx
There is a node module html5-to-pdf that works pretty well.
Is free and open source.
It runs on Electron. There are some bugs (for example anchor tags render the hyperlink as well) - but it might be an easy fix.
dwjohnstondwjohnstonNot the answer you're looking for? Browse other questions tagged xhtmlhtml5pdf-generationcss3 or ask your own question.
Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
I need convert an html + css to pdf. The target is generate an invoice.
marked as duplicate by Shiplu Mokaddim, Yogesh Suthar, Mark Baker, Kos, Minko GechevJan 15 '13 at 8:28
Html5 Css3 Javascript Tutorial Pdf
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2 Answers
After googling html page to pdf in php
The first link was this:
Here they advice PrinceXML. Be sure to google first next time, since these things aren't hard to find.