Jump to content

PDFlib problems (non-noob)....


hiphoplsr

Recommended Posts

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.com/article/generate-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:

[b]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[/b]

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

any help would be greatly appreciated.... oh, im also on apache with php version 4.4.2
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.