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

Mac OS X printable graphics+text file types?

by cypress (Beadle)
on Sep 10, 2009 at 16:23 UTC ( [id://794618]=perlquestion: print w/replies, xml ) Need Help??

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

Please bear with me if I'm asking a really stupid question, but what "printer-printable" file types are available for both inserting graphics and writing text? I know that spreadsheet::writeexcel will allow me to create a new spreadsheet, then insert bmp/jpg/png images plus write formatable text to cells; unfortunately, I don't know of a similar "document::writeword"-sort-of module for Mac OS X. But perhaps MS Word isn't the only other file type I could create+insert+write to? Am I limited to Excel? Thanks.
  • Comment on Mac OS X printable graphics+text file types?

Replies are listed 'Best First'.
Re: Mac OS X printable graphics+text file types?
by almut (Canon) on Sep 10, 2009 at 17:14 UTC
    what "printer-printable" file types are available for both inserting graphics and writing text?

    Largely depends on what your focus is on... If you just want something that is "printer-printable" and can be generated automatically (which I suppose, otherwise why would you be looking for a "document::writeword"-sort-of module), I'd suggest PDF.  It can handle images and text, allows near perfect layout, and can be viewed/printed cross-platform. There are several CPAN modules that allow creation of PDF files (e.g. PDF::API2).

    The downside is that once created, it's difficult to modify it manually (i.e. you can't edit it like a Word/Excel document, and you can't use your favorite text editor to modify it). And you have to do most of the layouting yourself. This is because PDF has been designed as an output format for printing/viewing, not for word-processing per se. In case you want automatic layouting, you might be looking for something like Latex (which can generate PDF as output, btw). — Just some thoughts.

Re: Mac OS X printable graphics+text file types?
by tbone1 (Monsignor) on Sep 10, 2009 at 17:44 UTC
    OS X's Finder is based on PDF, so that's not a bad choice. However, there are quite a few modules for RTF available in CPAN. I've never used them in OS X (mostly because I've never needed to), but that would seem to be worth investigating.

    Hope this helps.

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Re: Mac OS X printable graphics+text file types?
by alftheo (Scribe) on Sep 11, 2009 at 06:02 UTC

    Have you considered HTML? It's printer-printable. Look at this article on serverfault

    It basically suggests firefox -print file://stufftoprint.html
      Curiously, a friend (who is no more Mac-literate than I am -- he's works strickly in linux, me mainly windows) suggested PDF, RTF, and HTML last night before I saw all of your suggestions. PDF is probably too un-editable for my purposes, but I'll look into RTF and HTML modules. Thanks again -- you monks are great!
Re: Mac OS X printable graphics+text file types?
by BaldManTom (Friar) on Sep 11, 2009 at 01:35 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://794618]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found