>I have a problem with pdf_show_boxed(), it doesn't output anything. >Everything else shows up just fine. Is there something that I have >overlooked in this code?
>pdf_set_font($pdf, "Times-Roman", 10, "host"); >pdf_show_boxed ( > $pdf, //Object > $issuedesc, //text > 70, //left > 700, //top > 350, //width > 400, //height > left); //justify Things you should know: 1. If the text is "too big" to fit in the box, it won't show up at all if the box is less than one line tall... IE, if you have a font size of 40, and a box only 10 pixels tall, you won't get clipped text, you'll get nothing. 2. If there are "newline" characters at the beginning of the string, they'll mess you up... 3. The co-ordinate system is upside down, but top is bottom, and bottom is top in the docs, and I get a headache every time I try to think about this... Change your "top" number to 0 for now, and then fine-tune it once you can actually see the damn text in the PDF... I even have resorted to: for ($x = -600; $x < 600; $x += 100){ for ($y = -800; $y < 800; $x += 100){ pdf_show_xy("$x $y", $x, $y); } } *ESPECIALLY* when you start rotating the damn thing to get upside-down text... Sheesh! That one gave me a headache. I forget what it chose as the point of origin for the rotation, but it made absolutely no sense at all to me... pdf_show_boxed() returns the number of characters that didn't get drawn, so use that. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php