|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-06 10:05 UTC] sniper@php.net
[2003-09-06 13:30 UTC] sj at ewetel dot de
[2003-09-06 19:08 UTC] sniper@php.net
[2003-09-07 07:07 UTC] sj at ewetel dot de
[2003-09-07 11:08 UTC] sniper@php.net
[2003-09-07 12:04 UTC] sj at ewetel dot de
[2003-09-07 12:15 UTC] sniper@php.net
[2003-09-07 12:26 UTC] sj at ewetel dot de
[2003-09-07 12:29 UTC] sniper@php.net
[2003-09-07 12:39 UTC] sj at ewetel dot de
[2003-09-07 13:01 UTC] sniper@php.net
[2003-09-09 03:21 UTC] sj at ewetel dot de
[2003-09-09 09:38 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
Description: ------------ Since Upgrading to 4.3.3 the supplied test script does not generate any output. A telnet session gives only "0" back as body, last known working version is php4-STABLE-200303261230. Tried with pdflib 4.0.3 (.so) and 5.0.1 (.a) same error with both, nothing to see in the logs. Reproduce code: --------------- <?php $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); ?> Expected result: ---------------- The generated PDF should show up in the browser.