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)