|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8543 in memory PDF's ERROR
Submitted: 2001-01-03 15:58 UTC Modified: 2001-01-04 06:26 UTC
From: helio at helio dot com dot br Assigned: sniper (profile)
Status: Closed Package: PDF related
PHP Version: 4.0.4 OS: Linux RH 6
Private report: No CVE-ID: None
 [2001-01-03 15:58 UTC] helio at helio dot com dot br
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: 

$pdf = PDF_open(); 
PDF_begin_page($pdf, 595, 842);
  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);
  header("Content-type: application/pdf");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-03 16:01 UTC]
This was fixed today in the CVS, please try it out, or use a snapshot from
 [2001-01-03 20:39 UTC]
Actually, this still doesn't work. I'm going to try fix it.

 [2001-01-04 06:26 UTC]
This is bug in PDFLIB 3.03 and was confirmed by
Thomas Merz (the author of pdflib).

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 12 20:01:30 2024 UTC