# Are there any HTML+CSS to PDF converters in ruby

**URL:** <https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819>\
**Category:** Rails\
**Created:** [June 14, 2007, 11:32am UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819 "2007-06-14T11:32:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 14, 2007, 11:32am UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819/1 "2007-06-14T11:32:15Z")

</div>

Hi,  
I tried PDF writer , but it doesn’t have HTML to PDF Converter.  
Infact it is a PDF writer itself not a converter…

```
I've HTML pages with rich css or Strings with html+css such that
they are converted to PDF.

The idea is that web is all about RGB color model and when it comes

```

to Digital  
Printing its all CMYK color model. My html page with rich css in it  
should be  
converted to PDF document and all the RGB colors in my html and css  
should be  
converted to CMYK color model in the output pdf document.

```
Please suggest me any softwares/libraries/servers/tools that does

```

this…

```
Even Proprietary softwares/libraries/servers/tools are fine with me.

Any help is appreciated w.r.to PDF converters ?

```

Thanks,  
Ashwin

---

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 14, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819/2 "2007-06-14T12:55:11Z")

</div>

Hi Ashwin,

PrinceXML ([http://www.princexml.com/](http://www.princexml.com/)) seem to be the daddy of all HTML/  
CSS to PDF converters. The evaluation is free although a commercial  
server license will set you back a hefty US$3800.

Here’s an excellent article on integrating it with Ruby:

[http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails](http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails)

Cheers, Olly.

---

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 14, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819/3 "2007-06-14T16:49:53Z")

</div>

And that’s for a serverwide license. If you want to install your  
rails app on several servers (e.g. installations on several customer  
servers), you’ll need to pay that license fee over and over again.

On 14 Jun 2007, at 12:53, Olly L. wrote:

> PrinceXML ([http://www.princexml.com/](http://www.princexml.com/)) seem to be the daddy of all  
> HTML/  
> CSS to PDF converters. The evaluation is free although a commercial  
> server license will set you back a hefty US$3800.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 14, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819/4 "2007-06-14T17:19:57Z")

</div>

A workaround to this might be to run a PDF service on a single machine  
and just make calls to that from your server cluster 🙂
