I've done a bit of preliminary research, but I figured I'd request confirmation before I go waste a ream...

I need to print the websites bookmarked in a particular folder of my firefox bookmarks. Netscape::Bookmarks seems to be able to parse the bookmarks, but I'm having trouble finding an apt printing module. Ideally I'd like to be able to do something like the following:

PrintURI("http://somesite.tld/page.html");

At this point I should note that I have access to both Windows and Linux, but the printer is currently hooked up to the Windows box. My research thus far has been with regard to printing on Windows, but Linux alternatives are welcome as well.

I did find a few other modules as well, but I guess the real question is how to print a website as a browser renders, as opposed to the raw HTML?

UPDATE: LWP::Simple::getprint($url) and LWP::Simple::getstore($file) appear to offer the functionality I was looking for. While using getstore($file) appears simple enough, how would I use getprint($url) and print the resultant stream?

UPDATE: LWP::Simple merely solves the problem of obtaining a stream; however I have yet to figure out how to render HTML and send the rendered stream to the printer...

UPDATE: Thanks to Re: Win32::OLE printing I managed to figure out how to get Internet Explorer to print without intervention; however I still can't figure out how to get the URLs from my bookmarks list. Netscape::Bookmarks::Category seemed promising, but I can't figure out how to change from the root category to the one I want. URI::Bookmarks::tree_root() appears to be able to change the root to a folder -- but I can't seem to figure out how to represent that folder as a "node"...


In reply to Print Bookmarked Webpages by eibwen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.