PDFLib giving an uncaught exception error?

Up vote 0 down vote favorite share g+ share fb share tw.

I'm trying to get PDFlib support into PHP, but after finally figuring out how to install PDFlib, I get this error: Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' Using the example code on php. Net: Does anyone have any ideas as to what could be causing this? I've tried googling around, but I've been unable to find any solutions.

Php pdf pdflib link|improve this question asked Jun 15 '09 at 18:37Steve Gattuso5132827 82% accept rate.

If it's 6.0 or greater, try this code: The functions pdf_open_file, pdf_begin_page, pdf_findfont, and pdf_close are all deprecated.

Or in "hard" and very not nice way - try moving your code somewhere to global scope.

Please check the path where you are creating file. Pdf_open_file($pdf, "test. Pdf"); Just ensure that the path is proper and error will gone away.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions