Convert .doc to pdf in ruby

Hi all,

Any one have any idea, how to convert .doc to pdf in ruby?

Is there any converter libs are available in Ruby?


I doubt it. Generally the best way to convert anything to PDF is to
pass it through a “fake printer”, like Bullzip PDF Printer. This could
probably somehow be done programatically.

– Matma R.

Does this help?

I recently authored a blog post, including Ruby sample code, to
demonstrate how to convert to and from common file formats (including
DOC and PDF) using a third party product.

For details see this post:

Massive disclaimer! I worked on this product so I am obviously biased.


I recently added that intro and, contrary to the rest of the post, I did
not spell-check it. Its fixed now, thank you so much.

I am aware of the irony of having the guide in MS-Word format, but that
is a great test document for the converter :slight_smile:

Some of the people I deal with like to copy parts of our documentation
into their own. MS-Word is more suitable than PDF to do this.

I have made a note to publish them in both Word and PDF formats the next
time an update is released.

Jeroen R. wrote in post #1100557:

Looks interesting, there seems to be a lot of demand for pdf file

You might want to change “Read on the learn more” to “Read on to learn
more” on that page. And it’s a bit ironic that the Developer Guide is
only available in MS-Word format :slight_smile:

You can see pandoc( and pandoc ruby

On Aug 25, 2013, at 11:59 PM, Sangil J. [email protected] wrote:

You can see pandoc( and pandoc ruby

Neither Word’s .DOCX nor .PDF are pandoc input formats according to the

if your on windows, you may be able to use the ole library, to save as
pdf from word…

Quickly and convert .doc to PDF file format, you can use third-party
software Kernel for Word to PDF Converter Tool, It can simply convert
large and multiple word file to PDF file format without any issue.
Reference link :

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs