On 22/09/2019 13:25, Brian Potkin wrote:
Would this do?
cat /usr/share/cups/data/form_russian.pdf | gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH
-dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout
-sDEVICE=cups -r600x600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=8
-dcupsColorOrder=0 -dcupsColorSpace=4 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c
'<</.HWMargins[3.000000 3.000000 3.000000 3.000000] /Margins[00]>>setpagedevice'
-f -_ > out.ras
I have tried this command line (with gs 9.27 as of Ubuntu Eoan) and it
did neither crash nor error. I got a valid out.ras file without any
problem. For the given color space (CMY, -dcupsColorSpace=4) I got
broken output (I have checked with rasterview). All other important
color spaces (0, 1, 17, 18, 19, 20) give correct output for me (could be
another bug in Ghostscript).
Till