Skip to content
shairontoledo edited this page Sep 13, 2010 · 2 revisions

Allows configure the PDF quality

  • :screen – selects low-resolution output similar to the Acrobat Distiller “Screen Optimized” setting.
  • :ebook – selects medium-resolution output similar to the Acrobat Distiller “eBook” setting.
  • :printer – selects output similar to the Acrobat Distiller “Print Optimized” setting.
  • :prepress – selects output similar to Acrobat Distiller “Prepress Optimized” setting.
  • :default – selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file

Use the quality parameter passing it at RGhost::Document#render or RGhost::Document#render_stream


 doc=RGhost::Document.new
 doc... #something here
 doc.render :pdf, :quality => :ebook