GhostScript is only usable through the command line and, I have to admit it, 1. -quit -o -sDEVICE=pdfwrite error when opening a PDF. Post any defects 1 true 5 2. Ghostscript is an interpreter for the PostScript language and for PDF. gswin32c. exe -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=
|Published (Last):||22 January 2017|
|PDF File Size:||1.47 Mb|
|ePub File Size:||2.18 Mb|
|Price:||Free* [*Free Regsitration Required]|
You must use 8. Note that in this code the input and output filenames do not start or end with quotation marks; That is why you must use 8.
And no spaces in the file names or paths. Your problem is that it can’t find the file; relying on the currently active directory is not a good practice as it can cause problems.
The solution is to provide full path and file name with no spaces and using 8. I did some more testing and found that by using quotation marks in the command string, it takes long file names just fine.
Wine Too 2, 17 pe Please don’t change your original question as it affects my answer. You should restore the orginal question as it was. Then below that put: That way we can see the original question plus your new code. Everything stays clearer that way. OK, I would keep that in mind, For now, unfortunately I deleted old command string permanently since it is not working.
– PDF from PS through Shell with gswin32c – Stack Overflow
No ;s check out my revised answer. I tested it and it works great. NormalFocus Actually the command string doesn’t need quotation marks, I tested it without them. I give a better peace of code to see what and how I am trying to get result.
Updated code also don’t work. Problem is that command window with icon of ghostscript logo flashes too fast and i cant see what is text there. It was 3 lines and in first is that text: Original path contain spaces “C: I made now C: Can you give me the CommandString from the Debug.
Start myProcInfo ‘wait for finish no more than 20 seconds myProc. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.