SetPaperSize and PDF

Hi everyone,

I am troubling SetPaperSize and PDF format.
I want to get a high resolution PDF, but I could not get it.
PDF range is not match (eps is OK), see attached file.
Are there something wrongs in following code?

{
   gStyle->SetPaperSize(40, 52);
   //
   TCanvas *canvas = new TCanvas("canvas", "canvas", 400, 300);
   TPaveText *pave = new TPaveText(0.0, 0.0, 1.0, 1.0);
   TText *txt = pave->AddText("Hello");
   txt->SetNDC();
   pave->Draw();
   canvas->SaveAs("hello.eps");
   canvas->SaveAs("hello.pdf");
}

ROOT version


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.25/02 29 September 2009 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

hello.pdf (11.8 KB)

I see that GetPaperSize in used in TPDF in ROOT 5.29. I will try your macro with this ROOT version.
I’ll let you know.

Can you try with a more recent version (5.29) ?
I get something different than you.

Thank you for quick reply, couet.
I tried 5.28 (sorry not 5.29) and had same problem.

I will try 5.29 also, tomorrow.

Hi, Couet,

I used following, but the results was same.
Did not you get same problems on your environments, do you?


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.29/01 15 December 2010 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.29/01 (trunk@38348, Mar 10 2011, 08:41:22 on linuxx8664gcc)

I see that PS and pdf do not show the same gv. I do not have an answer yet.