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?

    Hugo
<?php
$theme='Kaos i mellanöstern';
$title='Någon tidning' . rand(0,1000);
$issuedesc='Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat.';
$pdf = pdf_new();
pdf_open_file($pdf, "pdf/test.pdf");
pdf_set_info($pdf, "Author", "Hugo Wetterberg");
pdf_set_info($pdf, "Title", "Informationsblad för $title");
pdf_set_info($pdf, "Creator", "Hugo Wetterberg");
pdf_set_info($pdf, "Subject", $theme);

pdf_begin_page($pdf, 595, 842);
pdf_add_outline($pdf, $theme);

pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 0);

//Output text
pdf_show_xy($pdf, $title, 50, 750);

//Origin of path
pdf_moveto($pdf, 50, 740);
//End of path
pdf_lineto($pdf, 50, 100);
//Make stroke at path
pdf_stroke($pdf);


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

//End the page
pdf_end_page($pdf);

//Close the document
pdf_close($pdf);

//Delete the object in memory
pdf_delete($pdf);

//Gimme the link
echo "<A HREF=pdf/test.pdf>finished</A>";
?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to