Skip to content

Latest commit

 

History

History

Ruby

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Ruby Sample Code

Details about using the Muhimbi PDF Converter Services from Ruby (on Rails) can be found here. Further information, including the object model, can be found in the Developer Guide and in the Muhimbi Knowledge Base.

A detailed blog post, including details about how to setup Ruby, including all prerequisites, can be found on our Blog.


Table of Contents


Prerequisites

❗ Please make sure that a copy of the Muhimbi PDF Converter Services (Download) is installed on at least one Windows Server in your environment. (Don't worry, it can be invoked from non-Windows platforms including Linux). :exclamation:

Please make sure Ruby / Rails is installed on your system. Installation instructions for various Linux distributions, as well as Windows, can be found here.


Sample Code

Sample code, and related files, for the various facilities provided by the service can be found below. It is recommended to copy all samples to your local system using one of the following options:

  • Git: Use the following command to clone the entire repository to your system. This will download all files associated with this repository, and is most likely overkill, but it is the only easy way to download files using Git. Once downloaded, you can find the examples under the Ruby folder.

    git clone https://github.com/Muhimbi/PDF-Converter-Services/

  • SVN: A common trick to download only part of a Git repository is to use svn. Download only the Java client and sample code using the following command.

    svn export https://github.com/Muhimbi/PDF-Converter-Services/trunk/Ruby

  • ZIP: Download a ZIP archive of the entire repository. Once downloaded, you can find the examples under the Ruby folder.


A full overview can be found below.

Sample Description
Convert Convert any of the supported file types to PDF.

Any questions? Drop our friendly support desk a line, we love to help.