# Arabic PDF Reports

**URL:** <https://www.ruby-forum.com/t/arabic-pdf-reports/55246>\
**Category:** Ruby\
**Created:** [March 18, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/arabic-pdf-reports/55246 "2006-03-18T14:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@Tobes](https://www.ruby-forum.com/u/Tobes)\
**Post date:** [March 18, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/arabic-pdf-reports/55246/1 "2006-03-18T14:22:58Z")

</div>

Hi there,

I need to be able to generate PDF reports in Arabic using Ruby, does  
anyone know of any reporting libraries or tools that will let me do  
this?

Some background…

My RubyOnRails application currently generates PDF reports using the  
Ruby FPDF Library ([http://brian.imxcc.com/fpdf/](http://brian.imxcc.com/fpdf/)). Unfortunatley I can’t  
get this to work with Arabic text so I’m on the lookout for other tools  
that may be able to support this.

I’m hosting our Rails application with a company called TextDrive who  
uses OpenBSD. I do my development work on a windows machine.

Any help much appreciated.

Tobin

---

<div class="post-metadata">

**Author:** ![Tobes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@Tobes](https://www.ruby-forum.com/u/Tobes)\
**Post date:** [March 18, 2006, 4:43pm UTC](https://www.ruby-forum.com/t/arabic-pdf-reports/55246/2 "2006-03-18T16:43:48Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Arabic PDF Reports” on Sat, 18 Mar 2006 22:18:48 +0900,  
“Tobes” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I need to be able to generate PDF reports in Arabic using Ruby, does  
> anyone know of any reporting libraries or tools that will let me do  
> this?

What about a combination of Ruby/GnomePrint and Ruby/Pango?

I attach two examples:

- gen-arabic-pdf.rb: a simple example.  
output: [http://pub.cozmixng.org/~kou/archives/arabic-sample.pdf](http://pub.cozmixng.org/~kou/archives/arabic-sample.pdf)

- gen-m17n-pdf.rb: a general example.  
output: [http://pub.cozmixng.org/~kou/archives/m17n-sample.pdf](http://pub.cozmixng.org/~kou/archives/m17n-sample.pdf)

Thanks,
