Pretty Printing (maybe with PDFs ?)

Discussion in 'Perl Misc' started by colin@beyondboxes.com, Dec 27, 2004.

  1. Guest

    Hello, perhaps someone can help me. I'm in the process of updating some
    in-house software written in Perl. The printing feature currently
    prints out reports in tried-and-true monospaced ASCII text. I would
    like to update this a tad, using some different fonts/styles and some
    boxes/lines, maybe even add a little color such as our department's
    ..eps logo and a bitmapped graph or two. My first thought was to look
    for a graphics generation library (like GD)... but at 600 dpi, that
    would make for some huge page-sized bitmapped images! Then I thought
    about hand rolling some Postscript. Now I'm thinking maybe PDF via some
    sort of support module. Has anyone else trekked this route before? I'm
    a PS and PDF newbie from the coding side of things! What do you
    suggest? I'm leaning towards something that uses Postscript and/or PDF,
    that way I can dump the generated file right to the printer and keep my
    code as OS agnostic as possible.

    Thanks in advance for any pointers!
     
    , Dec 27, 2004
    #1
    1. Advertising

  2. Shawn Corey Guest

    wrote:
    > Hello, perhaps someone can help me. I'm in the process of updating some
    > in-house software written in Perl. The printing feature currently
    > prints out reports in tried-and-true monospaced ASCII text. I would
    > like to update this a tad, using some different fonts/styles and some
    > boxes/lines, maybe even add a little color such as our department's
    > .eps logo and a bitmapped graph or two. My first thought was to look
    > for a graphics generation library (like GD)... but at 600 dpi, that
    > would make for some huge page-sized bitmapped images! Then I thought
    > about hand rolling some Postscript. Now I'm thinking maybe PDF via some
    > sort of support module. Has anyone else trekked this route before? I'm
    > a PS and PDF newbie from the coding side of things! What do you
    > suggest? I'm leaning towards something that uses Postscript and/or PDF,
    > that way I can dump the generated file right to the printer and keep my
    > code as OS agnostic as possible.
    >
    > Thanks in advance for any pointers!
    >


    I use PDF::API2 for creating PDF in Perl. I recommend you download the
    developer's version PDF-API2-0.40_77

    If you need more help with it, subscribe to the mailing list:
    http://groups.yahoo.com/group/perl-text-pdf-modules/

    --- Shawn
     
    Shawn Corey, Dec 27, 2004
    #2
    1. Advertising

  3. On 27 Dec 2004 04:11:10 -0800, wrote:

    >Hello, perhaps someone can help me. I'm in the process of updating some
    >in-house software written in Perl. The printing feature currently
    >prints out reports in tried-and-true monospaced ASCII text. I would
    >like to update this a tad, using some different fonts/styles and some
    >boxes/lines, maybe even add a little color such as our department's
    >.eps logo and a bitmapped graph or two. My first thought was to look
    >for a graphics generation library (like GD)... but at 600 dpi, that
    >would make for some huge page-sized bitmapped images! Then I thought
    >about hand rolling some Postscript. Now I'm thinking maybe PDF via some
    >sort of support module. Has anyone else trekked this route before? I'm
    >a PS and PDF newbie from the coding side of things! What do you
    >suggest? I'm leaning towards something that uses Postscript and/or PDF,
    >that way I can dump the generated file right to the printer and keep my
    >code as OS agnostic as possible.


    What about using pdfLaTeX+listings.sty?!?


    HTH,
    Michele
    --
    {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
    (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
    ..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
    256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
     
    Michele Dondi, Dec 27, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig Duffield

    Pretty Printing

    Craig Duffield, Feb 26, 2004, in forum: Java
    Replies:
    0
    Views:
    373
    Craig Duffield
    Feb 26, 2004
  2. Christian Ashby

    Pretty Printing / Code formatting for JSPs

    Christian Ashby, Aug 20, 2004, in forum: Java
    Replies:
    0
    Views:
    372
    Christian Ashby
    Aug 20, 2004
  3. Andy Fish

    MXXMLWriter for pretty printing

    Andy Fish, Oct 28, 2003, in forum: XML
    Replies:
    0
    Views:
    1,810
    Andy Fish
    Oct 28, 2003
  4. Guest
    Replies:
    5
    Views:
    625
  5. Ville Vainio
    Replies:
    11
    Views:
    620
    Hamish Lawson
    Aug 10, 2004
Loading...

Share This Page