|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-03 16:01 UTC] derick@php.net
[2001-01-03 20:39 UTC] sniper@php.net
[2001-01-04 06:26 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 19:00:01 2025 UTC |
I can make in memory pdfs using pdflin in win32+pws platafform. Whem I tried do do it in my Apache/Linux I got this message Fatal error: Internal pdflib error: Wrong order of function calls (PDF_open_mem) in /home/apache/htdocs/teste/pdf-teste4.php on line 8 fromm my phpinfo(): PDF Support enabled PDFLib Version 3.03 CJK Font Support yes In-memory PDF Creation Support yes Apache Version Apache/1.3.12 Apache Release 10312100 Apache API Version 19990320 My code: <?php $pdf = PDF_open(); PDF_begin_page($pdf, 595, 842); PDF_set_value($pdf,"compress",9); if (($image=PDF_open_gif($pdf,"logocentral.gif"))==-1){ echo "Error:Couldn't read image file.\n"; }else { pdf_place_image($pdf, $image, 30, 750, 0.4); PDF_close_image($pdf,$image); } header("Content-type: application/pdf"); PDF_end_page($pdf); PDF_close($pdf); exit; ?>