public
Description: RGhost is a document creation and conversion API. It uses the Ghostscript framework for the format conversion, utilizes EPS templates and is optimized to work with larger documents. Support(PDF,PS,GIF,TIF,PNG,JPG,etc)
Home | Edit | New

Environment test

For Mac, Linux and FreeBSD, you can test your environment using code below

require 'rubygems'
require 'rghost'
RGhost::Config.is_ok?.render :pdf, :filename => '/tmp/is_ok.pdf'

For Windows users

Windows users need set the Ghostscript path manually, for example, for an Ghostscript installation on C:\gs you would

require 'rubygems'
require 'rghost'
RGhost::Config::GS[:path]= "C:\\gs\\bin\\gswin32c.exe"
RGhost::Config.is_ok?.render :pdf, :filename => "c:\\is_ok.pdf"

One the page, it looks like this

If everything is ok !

Last edited by shairontoledo, Mon Aug 03 04:51:32 -0700 2009
Home | Edit | New
Versions: