Drawing an external PDF on TPad

Hi All,

I have the following problem and cannot find a solution to it.

I have a vector graphics (in pdf format) which I would like to put on top of the canvas (with drawn histogram) and export it to PDF.

The problem is, that TASImage doesn’t support PDFs. I can convert this vector graphics into e.g. png and then put it on canvas, but the quality is then very low (don’t know how to set it, tried various solutions without a desired effect). I also tried to load the PDF graphics via TPDF and then draw, but it doesn’t work.

Could you please help me solving this issue?

Best regards,
Rafal

have a look at $ROOTSYS/tutorials/graphics/psview.C