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?

Thanks,
Anil

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?
http://www.ruby-forum.com/topic/1296459

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:
http://blog.muhimbi.com/2013/03/use-ruby-on-rails-to-convert-merge-and.html

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

Doh!

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:

Use Ruby (on Rails) to Convert, Merge and Watermark HTML & Office files to PDF

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

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(Pandoc - index) and pandoc ruby
gem(
GitHub - xwmx/pandoc-ruby: Ruby wrapper for Pandoc).

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

You can see pandoc(Pandoc - index) and pandoc ruby
gem(GitHub - xwmx/pandoc-ruby: Ruby wrapper for Pandoc).

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

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 :http://www.wordtopdfonline.net