miyako / 4d-plugin-gs

4D implementation of Ghostscript
MIT License
1 stars 1 forks source link

GS not working on Windows #3

Closed DenisJager closed 1 year ago

DenisJager commented 1 year ago

Hi Miyako,

I developed a little tool to spilt PDF in many parts. It perfectly works on Mac but doesn't work on windows 10. The command to extract a page doesn't create the file 1.txt that it should.

I updated the plugin from 1.3 to 2.3 but the issue is still the same...

Here is the code :

ARRAY TEXT($args;0) APPEND TO ARRAY($args;"-dNOPAUSE") //important, we can't interact with the cli APPEND TO ARRAY($args;"-dBATCH") APPEND TO ARRAY($args;"-dQUIET") APPEND TO ARRAY($args;"-sDEVICE=pdfwrite") //APPEND TO ARRAY($args; "-dCompatibilityLevel=1.7") APPEND TO ARRAY($args;"-dFirstPage="+"1") APPEND TO ARRAY($args;"-dLastPage="+"1") APPEND TO ARRAY($args;"-sOutputFile="+PosixOutPath) //output => 1.txt, 2.txt, etc. //command APPEND TO ARRAY($args;"-c") APPEND TO ARRAY($args;".setpdfwrite") //input APPEND TO ARRAY($args;"-f") APPEND TO ARRAY($args; PosixInPath) //Input GS ($args)

Do you have any idea of what goes wrong? Best. Denis

DenisJager commented 1 year ago

Hi Miyako, Some extra information :

miyako commented 1 year ago

to rule out the possibility that some DLL has been removed, could you please download the plugin again?

DenisJager commented 1 year ago

I already tried and tried again yesterday and this morning to replace the gs.bundle with the last version available 2.3.0 but no change...

DenisJager commented 1 year ago

Hi Miyako, There were in fact 2 problems. The main was the use of ".setpdfwrite" in the parameters which is deprecated. https://github.com/GravityMedia/Ghostscript/issues/6 It generated an error. Without this parameters everything works fine. The second one is in relation with my customer network and the RW access limited on certain disks. Thank you for your replies.