[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886335: addendum



reassign 886335 cups-filters
found 886335 1.18.0-3
retitle 886335 gstoraster fails with a PJL encapsulated PS document
tags 886335 moreinfo
thanks



On Fri 05 Jan 2018 at 17:28:09 +0000, Brian Potkin wrote:

> On Fri 05 Jan 2018 at 01:10:52 +0100, SZABO Zsolt wrote:
> 
> > I think, that the bug is related to the utility gstoraster as described here
> > (it does not recognise PJL encapsulated, PostScript document text
> > starting with "\033%-12345X@PJL JOB"):
> > 
> > https://www.linuxquestions.org/questions/slackware-14/slackware-cups-can%27t-detect-file-type-4175605111/
> 
> This is a possibility. It would still be useful to have the asked-for
> error_log though. Also view the file sent to CUPS with less and let us
> have its first ten lines.

test.ps is PJL encapsulated PostScript document text.

root@desktop3:~# head -n10 test.ps
12345X@PJL
@PJL JOB NAME = "hosts" DISPLAY = "567 root hosts"
@PJL SET USERNAME = "root"
@PJL SET ECONOMODE=OFF
@PJL ENTER LANGUAGE=POSTSCRIPT
%!PS-Adobe-3.0
%%HiResBoundingBox: 0 0 595.00 842.00
%%Creator: GPL Ghostscript 922 (ps2write)
%%LanguageLevel: 2
%%CreationDate: D:20180105155007Z00'00'


root@desktop3:~# cupsfilter test.ps > test.pdf
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="test.ps"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="test.ps"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=application/postscript"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_GB.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/usr/share/cups/model/laserjet.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
DEBUG: envp[14]="CHARSET=utf-8"
DEBUG: envp[15]="FINAL_CONTENT_TYPE=application/pdf"
INFO: gstopdf (PID 21323) started.
DEBUG: gstopdf argv[6] = 1 root test.ps 1  test.ps
DEBUG: PPD: /usr/share/cups/model/laserjet.ppd
DEBUG: OUTFORMAT="PDF", so output format will be PDF
ERROR: Failed to open PPD: /usr/share/cups/model/laserjet.ppd
ERROR: Can't detect file type
ERROR: gstopdf (PID 21323) stopped with status 1

-- 
Brian.


Reply to: