Re: TCanvas creates PDFs with extra blank page ?

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Mon, 6 Sep 2010 12:06:58 +0100


Hi,

> Do you get the same with the CINT macro ?

No idea. I try and stay away from CINT as much as possible... I could try if you insist ;)

> Which root version are you using ?

Sorry, should have said. A very recent version - 5.26.00cp1_python2.5 from /afs/cern.ch/sw/lcg/app/releases/ROOT

> On which platform ?

SLC5. cheers Chris

> Cheers,
> O. Couet
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Chris Jones
> Sent: Monday, September 06, 2010 12:43 PM
> To: roottalk_at_root.cern.ch
> Subject: [ROOT] TCanvas creates PDFs with extra blank page ?
>
> Hi,
>
> I use the TCanvas.Print method with the "[" and "]" syntax to full
> multipage PDF and PS files from a PyRoot script. i.e.
>
> canvas = TCanvas()
>
> # Open the file
> canvas.Print("File.pdf[")
>
> # print some pages (after plotting histograms etc.)
> canvas.Print("File.pdf")
>
> # Close the file
> canvas.Print("File.pdf]")
>
> I've noticed that if I create a PDF, my preferred format, I always seem
> to get an unwanted extra blank page at the start of the document. If, on
> the other hand I create PS files instead, I don't. See as examples
>
> <http://www.hep.phy.cam.ac.uk/~jonesc/HPDImageCalibrationByFill.ps>
> <http://www.hep.phy.cam.ac.uk/~jonesc/HPDImageCalibrationByFill.pdf>
>
> Any ideas why ?
>
> cheers Chris
>
Received on Mon Sep 06 2010 - 13:07:09 CEST

This archive was generated by hypermail 2.2.0 : Mon Sep 06 2010 - 17:50:01 CEST