|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48838 Converting PHP script according to newer version of PDFlib
Submitted: 2009-07-07 18:28 UTC Modified: 2009-07-07 18:38 UTC
From: umasri1020 at gmail dot com Assigned:
Status: Not a bug Package: PDF related
PHP Version: 5.2.10 OS: Unix
Private report: No CVE-ID: None
 [2009-07-07 18:28 UTC] umasri1020 at gmail dot com
Hi There,
Below is the error which we are getting when we are trying to open the 
PDF file for processing files into MOM. It would be great if you can 
guide me on this issue.


[06-Jul-2009 13:46:46] PHP Fatal error: Uncaught exception 
'PDFlibException' with message 'pdf_open_file() expects exactly 2 
parameters, 1 given' in /home/site 


Code From Line 2140:
$pdf = pdf_new();

	pdf_set_info($pdf, "author", "Site Name");
	pdf_set_info($pdf, "title", "Site - $form_type");
	pdf_set_info($pdf, "creator", "Site");
	pdf_set_info($pdf, "subject", "Site - $form_type");

	pdf_begin_page($pdf, 612, 792);

	$font = pdf_findfont($pdf, "Helvetica",  "winansi",0);
	pdf_setfont($pdf, $font, 12); 

Thanks in advance for your help

With Regards,


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-07 18:38 UTC]
Please report bug about pdflib to the pdflib developer or via PECL.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 07:01:25 2020 UTC