in reply to Including a PDF in Perl/Tk

It seems that I can embed a window inside a toplevel widget as long as I know that window's id. I tried using the ID obtained from xwininfo, but the top-level window doesn't even show up in my application. I get an error saying that I can't set both the 'container' and 'use' options!

Replies are listed 'Best First'.
Re^2: Including a PDF in Perl/Tk
by zentara (Cardinal) on Jun 26, 2012 at 11:33 UTC
    Hi, embedding will only work if the program supports the -into-xid option. I looked, and xpdf does not have that option available. If you can find a pdf viewer that does, then the following node shows how to embed it... embedding xterm into a Tk app. You can substitute your app for the xterm.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

      I see... That's good to know; thanks.