# XSL FO to PDF Conversion

**URL:** <https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310>\
**Category:** Rails\
**Created:** [August 6, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310 "2009-08-06T16:41:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [August 6, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310/1 "2009-08-06T16:41:20Z")

</div>

Hi everyone

```
     Is there any gem or any other way in ruby to generate PDF

```

from XSL FO.  
I’ve been googling for hours but with no returns. Any help would be  
greatly appreciated.

Thanks

Anandh

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [August 6, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310/2 "2009-08-06T17:29:04Z")

</div>

Anandh K. wrote:

> Hi everyone
> 
> ```
> Is there any gem or any other way in ruby to generate PDF
> 
> ```
> 
> from XSL FO.  
> I’ve been googling for hours but with no returns. Any help would be  
> greatly appreciated.

You may need to shell out to FOP, or (if you’re using JRuby) call it  
from the Java side.

If you don’t _need_ to use FO as your intermediate representation, also  
consider a library such as Prawn.

> Thanks
> 
> Anandh

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [August 7, 2009, 10:47am UTC](https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310/3 "2009-08-07T10:47:03Z")

</div>

Thanks for the response. I’m not using JRuby. And as of now prawn too  
doesnt have this functionality.  
So is there any other way to accomplish this is in Ruby on Rails.

Thanks again

Anandh

On Aug 6, 8:29 pm, Marnen Laibow-Koser \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![anandhkumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Post date:** [August 7, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/xsl-fo-to-pdf-conversion/173310/4 "2009-08-07T15:40:55Z")

</div>

Anandh K. wrote:

> Thanks for the response. I’m not using JRuby. And as of now prawn too  
> doesnt have this functionality.

What functionality? As I said, Prawn doesn’t use FO, but may be a good  
alternative if FO is not an actual requirement.

> So is there any other way to accomplish this is in Ruby on Rails.

I gave a suggestion that doesn’t require JRuby. Please reread my  
original post.

> Thanks again
> 
> Anandh
> 
> On Aug 6, 8:29ï¿½pm, Marnen Laibow-Koser \<rails-mailing-l…@andreas-

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
