in reply to Putting text and images in PDFs using PDF::API2

Though this is an old thread, I got stuck on the same problem, so I'll leave a note for the next passer-by.

The critical variable is the order in which the objects are instantiated. That is, "$gfx=$page->gfx" should precede "$txt=$page->hybrid" if you want $txt on top.

  • Comment on Re: Putting text and images in PDFs using PDF::API2

Replies are listed 'Best First'.
Re^2: Putting text and images in PDFs using PDF::API2
by edoc (Chaplain) on Nov 08, 2011 at 01:36 UTC
    Thankyou!

    cheers,

    J

Re^2: Putting text and images in PDFs using PDF::API2
by larrymcp (Novice) on Dec 21, 2015 at 02:02 UTC
    Yeah-- big thanks!