imalhasaranga / PDFLib

Current Release provide you methods to convert PDF to Images as well as Images to PDF, future releases will included more functions to interact with PDF files
MIT License
58 stars 37 forks source link

PHP requirement incompatible #21

Open taffners opened 3 years ago

taffners commented 3 years ago

Can you help me with the install of PDFLib? I'm getting an error related to my PHP version but the error does not provide enough info to fix my PHP version.

$ composer.phar require imal-h/pdf-box

[InvalidArgumentException] Package imal-h/pdf-box has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

Here's info on my ghostscript install.

$ yum info ghostscript Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager Installed Packages Name : ghostscript Arch : i686 Version : 9.25 Release : 5.el7 Size : 133 k Repo : installed From repo : rhel-7-server-rpms Summary : Interpreter for PostScript language & PDF URL : https://ghostscript.com/ License : AGPLv3+ Description : This package provides useful conversion utilities based on Ghostscript software, : for converting PS, PDF and other document formats between each other. : : Ghostscript is a suite of software providing an interpreter for Adobe Systems' : PostScript (PS) and Portable Document Format (PDF) page description languages. : Its primary purpose includes displaying (rasterization & rendering) and printing : of document pages, as well as conversions between different document formats.

Name : ghostscript Arch : x86_64 Version : 9.25 Release : 5.el7 Size : 150 k Repo : installed From repo : rhel-7-server-rpms Summary : Interpreter for PostScript language & PDF URL : https://ghostscript.com/ License : AGPLv3+ Description : This package provides useful conversion utilities based on Ghostscript software, : for converting PS, PDF and other document formats between each other. : : Ghostscript is a suite of software providing an interpreter for Adobe Systems' : PostScript (PS) and Portable Document Format (PDF) page description languages. : Its primary purpose includes displaying (rasterization & rendering) and printing : of document pages, as well as conversions between different document formats.

geek5 commented 3 years ago

you must have php version higher or equal to 5.5.0 make in your cli this command php -v to check your installed php version

taffners commented 3 years ago

Thank you for the speedy reply. Yes that is the problem. I have php 5.4. Thank you.