phpgearbox / pdf

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

Unable to save or generate PDF file #8

Closed mjaseo closed 7 years ago

mjaseo commented 7 years ago

Upon successful install of the library and managed to run it via PHP script, it's throwing this error below.

Warning: file_get_contents(/tmp/gears-pdf-libreoffice/generated/GearsPdfvtISnh.pdf): failed to open stream

Have anyone had the same issue and figured it out? Thanks

bjoern-vh commented 7 years ago

Same here...

Current version 0.4.1 installed with composer.

MarZab commented 7 years ago

I had this error before installing openoffice-base and libreoffice-common on debian.

bjoern-vh commented 7 years ago

That's it. I already installed libreoffice-common but not openoffice-base. In my case on Ubuntu 16.04 libreoffice-base. Now it's working for me. Thanks a lot :-)

mjaseo commented 7 years ago

Hello and thank you for your replies. Whilst your suggestion worked, I wasn't able to install openoffice-base on Debian 8 (x86_64) as it said package not found and instead installed "libreoffice-base" and it fixed the issue as well.

Again, thank you guys for helping me out. Cheers :)