php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: umasri1020 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-07 18:28 UTC] umasri1020 at gmail dot com
Description:
------------
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 
name/public_html/custom/process_mom_file.php:2141

==========================================================

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

	pdf_set_info($pdf, "author", "Site Name");
	pdf_set_info($pdf, "title", "Site Name.com - $form_type");
	pdf_set_info($pdf, "creator", "Site Name.com");
	pdf_set_info($pdf, "subject", "Site Name.com - $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,
Sri


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-07 18:38 UTC] pajoye@php.net
Please report bug about pdflib to the pdflib developer or via PECL.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC