phpgearbox / pdf

A PDF builder using HTML or DOCX templates.
MIT License
180 stars 112 forks source link

The phantomjs command was not found #2

Open scorpjio opened 8 years ago

scorpjio commented 8 years ago

In vendor/gears/pdf/src/Pdf/Html/Backend.php We have this code:

if (is_dir(DIR.'/../../../vendor')) { $bin = DIR.'/../../../vendor/bin/phantomjs'; } else { $bin = DIR.'/../../../../bin/phantomjs'; }

I think we need to go out one more directory to get into the right place, like this

if (is_dir(DIR.'/../../../../vendor')) { $bin = DIR.'/../../../../vendor/bin/phantomjs'; } else { $bin = DIR.'/../../../../../bin/phantomjs'; }