I have a problem with the PDFLib library under PHP. The following script
should print two texts, one is "Times Roman outlined" the other "Ti mes Rom
an out lin ed". They are using different functions to do so.

Only the first text is displayed in my PDF document (which, besides that, is
shown nicely). What is wrong with the other function call?

Tech info: Windows 2000 server, IIS 5.0, PHP 4.0.5, PDFLib 4.0.1

Please reply to me offlist, since I cannot subscribe at the moment (I get no
confirmation from the list-daemon???)

-----------------------------
<?php
$pdf = pdf_new();
pdf_open_file($pdf);
pdf_begin_page($pdf, 595, 842);

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

pdf_show_xy($pdf, "Times Roman outlined", 50, 550);
pdf_show_boxed($pdf, "Ti mes Rom an out lin ed", 50, 550, 120, 400, "left");

pdf_end_page($pdf);

pdf_close($pdf);

$buf = pdf_get_buffer($pdf);
$len = strlen($buf);
pdf_delete($pdf);

header("Content-type: application/pdf");
header("Content-Length: $len");
print $buf;
?>
---------------------------

- Carsten

Reply via email to