Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Dynamic tables using PDF::Template

by stvn (Monsignor)
on Jan 09, 2008 at 14:25 UTC ( #661358=note: print w/replies, xml ) Need Help??

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.


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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://661358]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-09-27 01:46 GMT
Find Nodes?
    Voting Booth?

    No recent polls found