Hi All,
I have 2 sites hosted with Jaguar on 2 different servers - each one has a different version of PDFLib.
I have recently begun encountering a problem with the PHP function "pdf_open_file()" on the site with the newer version of PDFLib. One would assume the problem stems from the upgrade but that is neither here nor there....
The error message says "Warning: pdf_open_file() expects exactly 2 parameters, 1 given in..."
I checked the PHP manual at this page: pdf_open_file()
Basically it says that although the function accepts 2 parameters, the second one is optional and by omiting the second one the PDF will be generated in memory.
So, anyone else have this problem and, if so (or not), how do I fix it AND keep the PDFs being generated in memory? I am thinking that I have to add a null for the second parameter - i.e. pdf_open_file($pdf, "") instead of simply pdf_open_file($pdf) as I have been doing.
Any help is much appreciated!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks