Comments (6)
@haakym nice catch! Thank you to share your thoughts. Your contribution are welcome.
I think we can go ahead with both approaches that you mentioned. My idea:
- add
$executable
attribute toGhostscriptConverterCommand
and a setter method - it will allow someone to change the binary to fit they needs. Maybe thegs
is not configured in their$PATH
and the absolute path should be provided (e.g:/opt/gs
). - add a private method
getExecutable()
that will return$executable
if not empty, otherwise will return the value based on the Operation System.
What you think?
from pdf-version-converter.
I wish to share my experience with you on a Mac (MAMP).
It throws an error because GS is not found. To make it work, the command should reports the full path of gs (/usr/local/bin/gs).
Not to touch the library, you can simply extend the GhostscriptConverterCommand and override protected $baseCommand
from pdf-version-converter.
@xthiago do we have to install ghost script on the live server as well in order to use your plugin ?
from pdf-version-converter.
@kartik7dev I'm pretty sure you would, unless the binary is included in the package. I don't recall if it is or not!
from pdf-version-converter.
@xthiago do we have to install ghost script on the live server as well in order to use your plugin ?
Yes, you have to install it on the server.
from pdf-version-converter.
@xthiago
I've install the ghost script but not able to access with "gs" but I can access "gswin64c" using this in windows terminal. when I access it from code it's not working. 'gswin64c' is not recognized as an internal or external command, operable program or batch file
getting this error. the command getting from "baseCommand" run in windows terminal it's working.
can you guide me where I wrong.
from pdf-version-converter.
Related Issues (19)
- Converted files are not saved sometimes HOT 1
- There was an error extracting the ZIP file, it is either corrupted or using an invalid format. HOT 5
- Error during composer install HOT 2
- Class 'Symfony\Component\Filesystem\Filesystem' not found HOT 1
- installation problem HOT 1
- PDF size increased HOT 6
- Getting Error sh: 1: gs: not found\n HOT 1
- Typo HOT 1
- sh: gs: command not found HOT 1
- r
- File size increse issue HOT 4
- Wrong PDF Version
- GPL Ghostscript 9.26: Unrecoverable error, exit code 1 in GhostscriptConverterCommand.php line 39
- Extend timeout
- Installation problem HOT 6
- Compatibility Laravel 7
- Filename special chars escape HOT 1
- Temp directory is static
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf-version-converter.