background preloader

Moteurs

Facebook Twitter

Wkpdf — a command line HTML to PDF converter for Mac OS X. Wkpdf is a command line tool for rendering HTML to PDF using WebKit and RubyCocoa on Mac OS X. Although there are plenty of browsers available for Mac OS X, I could not find a command-line tool that allows for downloading a website and storing the rendered website as PDF. This was my motivation for creating wkpdf. The application uses Apple WebKit for rendering the HTML pages, thus the result should look similar to what you get when printing the webpage with Safari. Since wkpdf is based on the state-of-the-art WebKit HTML rendering framework, it provides high-quality web standard compliant HTML rendering with support for advanced CSS2/CSS3 styling. There are plenty of use cases for wkpdf.

Automated generation of reports, invoices, etc. Wkpdf is an open-source software project. Installing wkpdf requires a recent version of RubyGems. Sudo gem update --system Now you are ready to proceed with the installation of wkpdf with the the following command: sudo gem install wkpdf gem update wkpdf. Prince: Buy Prince. We offer several licensing options for commercial use of Prince. All commercial licenses include 12 months of upgrades and email support. After this period you can purchase additional support and upgrades.

Prince licenses can be purchased online by credit card or PayPal. Your license files will be delivered to you by email within 24 hours of payment. If you would prefer to pay by direct bank transfer, please contact us to arrange an invoice. Please read the license agreement before purchasing Prince. Server License Server Licenses allow the use of Prince on a single server as part of a website or application. Academic Server License Academic Server Licenses allow the use of Prince on a single server as part of a website or application, for academic purposes only. This discount license is offered to academic institutions who wish to use Prince to produce publications that will be distributed through their own channels. Professional License OEM, VAR, SaaS. Wkhtmltopdf - Convert html to pdf using webkit (qtwebkit)

WebKit with Cairo - Diary of a CrazyFrench. XHTMLRenderer - Flying Saucer XHTML/CSS Renderer in Pure Java — Java.net. WeasyPrint - Converts HTML + CSS to PDF. Publishing XML data in HTML and PDF using a single XSLT stylesheet. Storing data, for example as part of an XForms/REST/XQuery [XRX] architecture (see Resources), is commonplace today. You can query, retrieve, and serialize data stored in this manner to the desired format. For web applications, developers might want to allow users to retrieve data in HTML format (to be viewed in their web browser) or as a PDF file (to be downloaded for later use). This article shows how you can convert XML data to HTML, to XSL-FO from that HTML, and to PDF from the XSL-FO with the help of an XQuery extension function based on the CSSToXSLFO tool (see Resources). Converting XML data to other formats Typically, you need two XSL stylesheets to transform data from XML to HTML and XSL-FO: one to transform XML to HTML and one XSL-FO stylesheet to transform the HTML to an XSL-FO document, which you then convert to PDF using an XSL-FO processor.

Back to top The CSSToXSLFO utility This utility processes most of the CSS2 specifications. The eXist XML database Examples Listing 1. iText ® - Free / Open Source PDF Library for Java and C#