Closed advicente closed 8 years ago
Hm, I'm not able to reproduce this. What do you get if you run
composer show
from the you project root?
Running composer show:
My problem had to do with my autoloader. I've included the following code in my composer.json and now it works.
"autoload": { "files": ["vendor/setasign/fpdi/pdf_parser.php"] }
Thanks.
Hi again and sorry for the late reply. Glad you found a solution, although you should not need the files directive in composer.json.
I am still not able to reproduce, and does not have an explanation. If you want to dig deeper into this please attach your exact composer.json and the script that produce your error and I can have another look. Otherwise I will leave this closed...
Happy new year!
Hi, I'm using version 3.0.0 with composer autoloader and facing some problems related with FPDI classes.
Using the following code:
use iio\libmergepdf\Merger;
Throws the expection: FPDI: 'include(fpdi_pdf_parser.php): failed to open stream: No such file or directory'.
The above expection seems to be solved if I change the line 120 of file setasign\fpdi\fpdi.php from
if (!class_exists('fpdi_pdf_parser')) {
toif (!class_exists('fpdi_pdf_parser', false)) {
But then it throws another exception: FPDI: 'include(pdf_parser.php): failed to open stream: No such file or directory'.
Please feel free to ask more details if needed, Thanks.