in reply to Terminate new line with hyphen in PDF report

jdm2490:

Yeah, figuring out text layout with proportional fonts can be tricky. It would be helpful if you knew how wide your strings would be if they were placed in your PDF file. If only there was a helper function to give you that bit of information, then you wouldn't have to try to compute it yourself.... ;^)

Oh, look! In the docs there's a helper function called prStrWidth() -- use that function to tell you how wide your text would be before you place it, then you can split the string in some fashion until the chunks are narrow enough to fit in your column.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Terminate new line with hyphen in PDF report