I get this error:
<br>
<b>Fatal error</b>: Internal pdflib error: Wrong order of function calls
(PDF_open_mem) in <b>/home/httpd/html/test/test.pdftest2.php</b> on line
<b>5</b><br>
when I run this code
<?php
header ("Content-type: application/pdf");
$pdf = pdf_open();
pdf_set_info($pdf, "Subject", "Testing");
pdf_begin_page($pdf, 550, 800);
pdf_add_outline($pdf, "Page 1");
pdf_set_font($pdf, "Times-Roman", 30, "host");
pdf_set_value($pdf, "textrendering", 1);
pdf_show_xy($pdf, "This text should be Times Roman outlined", 50, 750);
pdf_moveto($pdf, 50, 740);
pdf_lineto($pdf, 330, 740);
pdf_stroke($pdf);
pdf_end_page($pdf);
pdf_close($pdf);
?>
What I'm trying to do is create a .pdf on the fly and send it to the
browser. I want to do in all in memory and not have any pdfs cluttering up
my server.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]