Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Including a PDF in Perl/Tk

by Joe_ (Beadle)
on Jun 26, 2012 at 10:36 UTC ( [id://978382]=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://978382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found