http://qs321.pair.com?node_id=661358


in reply to Dynamic tables using PDF::Template

You may need to drop into plain PDFLib to do this, IIRC the latest version supports a table-type layout, not sure how much automatic formatting it will do for you. You can always concat two (or more) PDFs using CAM::PDF if you find that you need to generate them seperately.

How can I translate this to textbox width?

PDFLib supplies a way to get the width of a given string using the currently selected font, I don't recall the function name right now, but it should be easy enough to find looking at the manual.

-stvn

Replies are listed 'Best First'.
Re^2: Dynamic tables using PDF::Template
by mhearse (Chaplain) on Jan 09, 2008 at 23:07 UTC
    Thanks for your replies. I am able to use the PDFLib method
    $pdf->string_width(text => 'text')
    On another note, does anyone know if I can set the pdf width? Thus far I see only page types (A3, A4, etc). Thanks again.