Jump to content


Photo

PDFlib problems (non-noob)....


  • Please log in to reply
1 reply to this topic

#1 hiphoplsr

hiphoplsr
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 June 2006 - 04:57 PM

whats up kids? first post on these forums... i tried to search for an answer to this but apparently the search function here is down completely, so i didnt find anything. aaanyways, ive been programming in php for a while now, but never using the pdflib extension. so i picked up a tutorial from sitepoint.com (http://www.sitepoint...nerate-pdfs-php) and it doesnt seem to work. i checked my phpinfo, and i have pdflib 6.0.1, so its not a compatibility issue i dont think, and according to the php manual the code snippet is right... heres my error:

Fatal error: pdf_begin_page(): [2100] PDF_begin_page: Function must not be called in 'object' scope in /usr/local/www/poindexters/public_html/fullcontrol/pdfgen.php on line 9

and here's line 9:
pdf_begin_page($pdf, 595, 842);

any help would be greatly appreciated.... oh, im also on apache with php version 4.4.2

#2 hiphoplsr

hiphoplsr
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 05 June 2006 - 05:22 PM

ok, so i realized part of my problem. my version of pdflib needs the pdf_begin_page_ext function; which includes another parameter... problem is, i get the same error! so... how do i call this outside of the object scope?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users