Re: HA: saving a canvas as postscript or pdf

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Mon, 15 Dec 2008 16:03:50 -0330


Hi Valeri,

Valeri Onuchin <Valeri.Onoutchine_at_cern.ch> writes:

> Hi,
> you can display PS file with antialising=ON
> in ROOT itself without gv -> just click on PS file in ROOT browser.
> It will invoke the same method which used in gv, i.e.
> running GhostScript program. TCanvas with PS file image will appear.
> One can save this canvas in any other image format (no need for convert).
>

Thanks for the information. What I'm doing here is to embed root code and output in a pdf document using StatWeave (http://www.stat.uiowa.edu/~rlenth/StatWeave/). StatWeave allows you to write a document with embeded code for R and other statistical engines. I've written a statweave extension for root [1] and ConTeXt that lets one write a document that contains root code. When the document is processed by statweave, the chunks of root code are processed by root in batch mode and the output is placed into the document. The latter is then processed by ConTeXt into a pdf in the normal way. The pdf can then be viewed with xpdf or gv. Unfortunately, the -aaVector option to pdf does not do a very good job and the pictures in the final document are still displayed poorly. gv is much better, but it crashes with on my final documents with this bug:
http://www.ghostscript.com/pipermail/gs-bugs/2008-May/002220.html. So I'm somewhat stuck.

Cheers,
Roger

[1] Don't get excited, it has not been tested throroughly yet. Received on Mon Dec 15 2008 - 20:34:43 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 16 2008 - 05:50:04 CET