Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I've done some pretty extensive work w/ pdflib and really like it. I have also made extensive use of the string_width function but for different uses. In my case, I'm laying out business cards and the address has to fit into a finite space. So I check the width at the curent font size w/ string_width, and if it's too large I incrementally shink the font size until it fits. Automatic abbreviation of Avenue, Boulevard, etc helps too. :-)

    I'll have to check out PDFLib.pm and see how it works and if it would be worth it to incorporate it into the software I'm developing. It would probably have to be pretty slick to make it worth it to go back & retrofit the existing code. Does it depend on a specific version? I'm currently using 3.0.3, but might upgrade to 4.x in the future.

    --
    "Perl users are the Greatful Dead fans of computer science." --slashdot comment
    • It uses 4.x I'm afraid.

      I'm not sure about "slick", but I much prefer an OO view of the world, where instead of typing PDF_foo($pdf, options), you type $pdf->foo(options). Just makes more sense to me. Plus it takes care of things like ending pages for you so you don't have to - pdflib really doesn't like it if you do something in the wrong order, so PDFLib.pm *tries* to accommodate that.
      • Oh well. I'll definitely look into it more if/when I upgrade. Since I haven't bought a license yet, maybe soon is a good time to upgrade. :-)

        OO certainly makes sense for some things, and I think pdflib is definitely one of them. I'm interested in learning more about the auto page ending feature. Guess it's time to look at the docs, or have you released that code yet?

        --
        "Perl users are the Greatful Dead fans of computer science." --slashdot comment