Sisk has asked for the wisdom of the Perl Monks concerning the following question:

Here's my issue. I've got a Tk notebook with several tabs and a grand total of around 700 label and entry widgets that I want to use to generate a page for printing. If possible, I'd like to dump each tab of the notebook to a page as is. This program will be used on both Windows and Linux, so the solution I would prefer would be to create a file of some sort and then hand it over to the OS to take care of rather than trying to deal with the differences in the printing systems in the script itself.

I've googled around a bit and found snippets that dump individual widgets to postscript files, but what would be the best way to go about dumping a whole notebook like this?

Replies are listed 'Best First'.
Re: How to print a Tk Notebook
by Anonymous Monk on May 20, 2009 at 03:20 UTC
    I've googled around a bit and found snippets that dump individual widgets to postscript files,
    Each tab is a widget, so dump away :)
      Sorry, my mistake. I should have been more specific. I found snippets to dump individual text and canvas widgets to postscript files. They don't work on notebook pages.

      I did come across documentation for PDF::Create while I was browsing CPAN after my original post. It looks like it can do what I want with a lot of work. I was kind of hoping for something a little less labor intensive as I only get to work on this for a few minutes a day.