Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghostscript can output 1.7 type php file (but Fpdi can't for free ) #27

Open
coupej opened this issue Dec 16, 2024 · 0 comments
Open

Ghostscript can output 1.7 type php file (but Fpdi can't for free ) #27

coupej opened this issue Dec 16, 2024 · 0 comments

Comments

@coupej
Copy link

coupej commented Dec 16, 2024

I've accidently update my ghostscript version to 10.04.0 and now the library didn't work anymore

I changed the line
shell_exec('gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="'. $newFilePath . '" "' . $filePath . '"');

with

shell_exec('gs -dBATCH -dNOPAUSE -q -dCompatibilityLevel=1.4 -sDEVICE=pdfwrite -sOutputFile="'. $newFilePath . '" "' . $filePath . '"');
and everything is peachy again.

Little bit busy now might write a pull request later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant