in reply to PDF::API2 multi-line, wrapped, header paragraph?

I guess this paragraph - example will solve your issue
-kulls
  • Comment on Re: PDF::API2 multi-line, wrapped, header paragraph?

Replies are listed 'Best First'.
Re^2: PDF::API2 multi-line, wrapped, header paragraph?
by buttroast (Scribe) on Dec 01, 2005 at 04:25 UTC
    Thanks for the sample code link. Isn't there anything already built into the module so I don't have to use that much code? In one tutorial I found, it mentioned there was a 'paragraph' method, but it didn't work. I think maybe the module underwent some changes since the tutorial was written.
    Thanks buttroast
      Hi, indeed you can use the paragraph method, but like all parts of the pdf::api2 module, it is not to well documented. at first, all lines where printed on top of each other, but that was because i forgot to add a txt->lead() line like in $txt->textstart; $txt->lead(13); $txt->font($font{'bold'},10); $txt->translate($x,$y); $txt->paragraph("$SysDescr", $TextWidth, $ParagrapHeight, align => "left" );
        Thanks I will try that out. This module is very nice, but the limited documentation is very frustrating. I appreciate your help.
        Thanks buttroast