With the Ghostscript version gs9.10, the pswrite method did not work for me, instead I tried using ps2write and it worked for me, so the command worked for me, as shown below:
gswin32c.exe ^ -dNOPAUSE ^ -dBATCH ^ -sDEVICE=ps2write ^ -sOutputFile=mydocument.ps ^ mydocument.pdf
and if this thing doesnβt even work, then you can do it: try to get help by typing gswin32c.exe -h and then it will display all available devices, as shown below:
Default output device: display Available devices: bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono cp50 declj250 deskjet devicen display djet500 djet500c eps9high eps9mid epson epsonc epswrite ibmpro ijs inkcov jetp3852 jpeg jpegcmyk jpeggray laserjet lbp8 lj250 ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswindll mswinpr2 necp6 nullpage pamcmyk32 pamcmyk4 pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkmraw plan planc plang plank planm plib plibc plibg plibk plibm png16 png16m png256 pngalpha pnggray pngmono pngmonod pnm pnmcmyk pnmraw ppm ppmraw **ps2write** psdcmyk psdrgb pxlcolor pxlmono r4081 spotcmyk st800 stcolor svg t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc tiff48nc tiff64nc tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw tiffpack tiffscaled tiffscaled24 tiffscaled32 tiffscaled4 tiffscaled8 tiffsep tiffsep1 txtwrite uniprint xpswrite Search path: C:\Program Files (x86)\gs\gs9.10\bin ; C:\Program Files (x86)\gs\gs9.10\lib ; C:\Program Files (x86)\gs\gs9.10\fonts ; %rom%Resource/Init/ ; %rom%lib/ ; c:/gs/gs9.10/Resource/Init ; c:/gs/gs9.10/lib ; c:/gs/gs9.10/Resource/Font ; c:/gs/fonts Initialization files are compiled into the executable.
As you can see for convenience only, I placed an asterisk (*) around ps2write
Rahul gupta
source share