ROOT Version: 6.20/04
Platform: x86_64-centos7-gcc9-opt (on a CernVM-FS server)
Compiler: Not Provided
I’m trying to export what’s displayed on the “ROOT’s GL viewer” window with the
SavePicture function of the
I ran the following commands within a root session to export pictures with different formats.
TGLViewer * v = (TGLViewer *)gPad->GetViewer3D(); v->SavePicture("viewer.png"); v->SavePicture("viewer.pdf"); v->SavePicture("viewer.eps");
Exporting as png (or gif, gif+) all worked perfect, but pdf is somewhat broken as shown below. Exporting as eps is even worse as it crashed and output only an empty file. I know that I can avoid pdf by scaling up png images but I wish to understand why are pdf and eps broken in my case. Could anyone shed some light on this problem? I really appreciate it!
viewer.pdf (147.6 KB)