Hi all
Does anyone know where i could fiind info on how to set limits on how long a sentence can be before it goes to the next line on a page? I have the current code:
$pdf = pdf_new();
pdf_open_file($pdf, "createdpdf/mypdf.pdf");
pdf_set_info($pdf, "Author", "Ben Jonson");
pdf_set_info($pdf, "Title", "Creating a pdf");
pdf_set_info($pdf, "Creator", "Ben Jonson");
pdf_set_info($pdf, "Subject", "Creating a pdf");
pdf_begin_page($pdf, 595, 842,"");
$tahoma = pdf_findfont($pdf, "Tahoma", "host", 1);
pdf_setfont($pdf, $tahoma, 12);
pdf_show_xy($pdf, "<my very long text here>",0,700);
pdf_show_xy($pdf, "use in the document2.*/
",0,480);
pdf_end_page($pdf);
pdf_close($pdf);
The code works, but the text goes right across the page and is cut off, so you dont see all of the text. Is there some way of putting in a newline character or something equivalent?
Cheers
Does anyone know where i could fiind info on how to set limits on how long a sentence can be before it goes to the next line on a page? I have the current code:
$pdf = pdf_new();
pdf_open_file($pdf, "createdpdf/mypdf.pdf");
pdf_set_info($pdf, "Author", "Ben Jonson");
pdf_set_info($pdf, "Title", "Creating a pdf");
pdf_set_info($pdf, "Creator", "Ben Jonson");
pdf_set_info($pdf, "Subject", "Creating a pdf");
pdf_begin_page($pdf, 595, 842,"");
$tahoma = pdf_findfont($pdf, "Tahoma", "host", 1);
pdf_setfont($pdf, $tahoma, 12);
pdf_show_xy($pdf, "<my very long text here>",0,700);
pdf_show_xy($pdf, "use in the document2.*/
",0,480);
pdf_end_page($pdf);
pdf_close($pdf);
The code works, but the text goes right across the page and is cut off, so you dont see all of the text. Is there some way of putting in a newline character or something equivalent?
Cheers