ID: 40557 Updated by: [EMAIL PROTECTED] Reported By: ronnie at signet dot nl -Status: Open +Status: Bogus Bug Type: PDF related Operating System: FreeBSD PHP Version: 5.2.1 New Comment:
. Previous Comments: ------------------------------------------------------------------------ [2007-02-20 15:43:40] ronnie at signet dot nl Excuse me for not looking far enough. I just found that it wasn't realy a bug but a licencing problem. I found a class called acrostix.php that solves the problem for me. ------------------------------------------------------------------------ [2007-02-20 14:31:57] ronnie at signet dot nl // this is the code that produces the error. <?php // this is the file with most of the obsolete source stripped away $p = new PDFlib(); /* open new pdf file; insert a file name to create the PDF on the disk */ $p->begin_document("","") $p->set_info("Creator", "hello.php"); $p->set_info("Author", "Rainer Schaaf"); $p->set_info("Title", "Hello World (PHP)!"); /* for testing purposes only */ $filename = "ronnie.pdf"; $p->open_pdi($filename, "",0); $p->setfont($font, 12.0); $p->set_text_pos(50,700); $p->show("Hello world!"); $p->continue_text(" (says PHP) "); $p->end_page_ext(""); $p->end_document(""); $buf = $p->get_buffer(); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-length: $len"); header("Content-Disposition: inline; filename=hello.pdf"); print $buf; ?> ------------------------------------------------------------------------ [2007-02-20 14:27:30] [EMAIL PROTECTED] We still need a short but complete reproduce case. ------------------------------------------------------------------------ [2007-02-20 13:06:15] ronnie at signet dot nl sorry, the correct link must by : http://ronnie.signet.nl/testpdf.php ------------------------------------------------------------------------ [2007-02-20 12:49:20] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. http://ronnie.signet.nl/pdftest.php - 404 Not Found ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40557 -- Edit this bug report at http://bugs.php.net/?id=40557&edit=1