Closed letalumil closed 6 years ago
Just to add some more info regarding the problem. I tried to execute the commands above via gswin64.exe
in the command line.
This one fails:
C:\gs\bin>gswin64.exe -sDEVICE=pngalpha -o C:\Users\letalumil\Test folder\node-love-ghostscript.png -sDEVICE=pngalpha -r144 C:\Users\letalumil\Test folder\node-love-ghostscript.pdf
This one works well:
C:\gs\bin>gswin64.exe -sDEVICE=pngalpha -o "C:\Users\letalumil\Test folder\node-love-ghostscript.png" -sDEVICE=pngalpha -r144 "C:\Users\letalumil\Test folder\node-love-ghostscript.pdf"
Hi @letalumil , thanks for your feedback for sure I will try to fix it in next days. I think that the problem is in the parsing of the Ghostscript comand on the C/C++ side.
Hello! I made pull request #35 for this bug.
Hi @george-g I saw and thank you for your work. Now I'm out, but your code seems good. Tomorrow I came back and I will test all and I will provide to create a new version of the add-on.
On the pull request feel free to insert you on the contributors in package.json
file.
Did you test on Windows machine?
Did you test on Windows machine?
Yes, I did. I made this fix on Windows )
Thank you @george-g to solve this issue. Great work. Thank you @letalumil to report the problem. I just created and published a new version of the module.
Let's assume we have these input and output file paths:
And we try to convert the pdf this way:
Or that way (quotes around the paths):
In boths cases the operation fails with corresponding errors:
And
If I remove the space in the
Test folder
name and run the command without quotes around paths, then everything works. If The folder is renamed, but the quotes are still there, then I get a similar error: