Comment 12 for bug 1800062

Revision history for this message
In , William.Yeung (will323) wrote :

Created attachment 15946
Research file of ghostscript command test in 9.25.

PDF file data fail to rendering to raster data.

We were reported a bug from our printer users:
I print file use papersize A5 (Ubuntu 16.04.1(x64),Ghostscript 9.18) is Okay.

But, after I update (apt-get upgrade) to Ubuntu 16.04.5(x64),Ghostscript 9.25, I print the same file with the same driver there is an error reports:
"Filter Error"

I figure out that all the papersize with define "LeadingEdge" can't print success after update.
(with "LeadingEdge":A5, Statement, A4(without "LeadingEdge") is print Okay).

I view the "CUPS Error Log",there is an error reports when print job fails:
"Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Plain -sOutputType=Pass=1,Direction=1 -r600x600 -dLeadingEdge=1 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=420 -dDEVICEHEIGHTPOINTS=595 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -scupsPageSizeName=A5 -I/usr/share/cups/fonts -c \'<</.HWMargins[14.400000 14.400000 14.399994 14.400024] /Margins[0 0]>>setpagedevice\' -f -_

Unrecoverable error: undefined in .putdeviceprops"

I think that this is a bug of ghostscript 9.25.

Below information are the research of I do:

(I am using Ubuntu 16.04.5(x64),Ghostscript 9.25)
I am running gs command below (with "-dLeadingEdge=1"):
gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sMediaType=Plain -sOutputType=Pass=1,Direction=1 -r600x600 -dLeadingEdge=1 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=420 -dDEVICEHEIGHTPOINTS=595 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -scupsPageSizeName=A5 -o ~/Desktop/out_A5.prn ~/Desktop/d00017-001.pdf

Reports an error:
Unrecoverable error: undefined in .putdeviceprops

I am running gs command below (without "-dLeadingEdge=1"):
gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sMediaType=Plain -sOutputType=Pass=1,Direction=1 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=420 -dDEVICEHEIGHTPOINTS=595 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -scupsPageSizeName=A5 -o ~/Desktop/out_A5.prn ~/Desktop/d00017-001.pdf

Reports no error.

Above all, we think this is a bug of ghostscript that ghostscript can't deal with the flag "-dLeadingEdge" on version 9.25 (version 9.18 is Okay.).

My questions are:
1. Do you have any plan to fix it?
2. Is there any workaround?