note 29229 deleted from ref.pdf by didou

From: Date: Sat, 17 May 2003 15:55:05 +0000
Subject: note 29229 deleted from ref.pdf by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48165@lists.php.net to get a copy of this message
Note Submitter: tiago@contempory.com Hi, my output is that: ------------------------------- %PDF-1.3 %äãÏÒ 5 0 obj <> stream xœ=Ž1‚@ …÷þŠ: µ•‡+‰†ÁáFI4G00\ü÷ö"’—´ÍËKßW98\¥D7€ « £eF7Bô¯Ôï' Óìû]ê^´Érû,ØÔM›¦{ÐlG€³&c­¾¢R ‹Ùºÿ®ª¡Zkْ)Lþ+wóF œ“°ä˜ *OzD˜-­H!z÷ƒÞ©›Æ¥Õ_˜.Ãendstream endobj 6 0 obj 157 endobj 4 0 obj <> endobj 8 0 obj <> >> endobj 3 0 obj <> endobj 7 0 obj <> endobj 1 0 obj <> endobj 2 0 obj <> endobj xref 0 9 0000000000 65535 f 0000000688 00000 n 0000000742 00000 n 0000000425 00000 n 0000000262 00000 n 0000000015 00000 n 0000000243 00000 n 0000000591 00000 n 0000000365 00000 n trailer <] >> startxref 789 %%EOF ------------------------ And my code is that: ------------------------ <?php dl("php_pdf.dll"); $p = PDF_new(); PDF_open_file($p, ""); PDF_set_info($p, "Creator", "hello.php"); PDF_set_info($p, "Author", "Rainer Schaaf"); PDF_set_info($p, "Title", "Hello world (PHP)"); PDF_begin_page($p, 595, 842); # Change "host" encoding to "winansi" or whatever you need! $font = PDF_findfont($p, "Helvetica-Bold", "host", 0); PDF_setfont($p, $font, 18.0); PDF_set_text_pos($p, 50, 700); PDF_show($p, "Hello world!"); PDF_continue_text($p, "(says PHP)"); PDF_end_page($p); PDF_close($p); $buf = PDF_get_buffer($p); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=hello.pdf"); print $buf; PDF_delete($p); ?> --------------------------------- Anybody can help-me?

« previous php.notes (#48165) next »