[cups] How do I disable rotation per queue not per printjob.

Pförtsch, Franz Franz.Pfoertsch at brose.com
Fri Jan 22 09:23:20 PST 2016


Hello,

I want to printout label onto a ZPL2 printer. The labels are created in PDF from our ERP system.

I configured the printer with labels in the size 4x1 inches.

When I send the label with the size of  2x1,7 inches every thing is fine.

After this I send a label with the size of 2,5x3 inches the label is rotated 90 degres.

So I made a test with
/usr/sbin/cupsfilter -p drv:///sample.drv/zebra.ppd -m application/vnd.cups-pdf  -o nopdfAutoRotate  ZLBL2x17.pdf > ZLBL2x17_4.pdf
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="ZLBL2x17.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]="pdfAutoRotate=false"
DEBUG: argv[6]="ZLBL2x17.pdf"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=application/pdf"
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=C.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=drv:///sample.drv/zebra.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/vnd.cups-pdf"
INFO: pdftopdf (PID 32060) started.
INFO: pdftopdf (PID 32060) exited with no errors.

This worked fine.

The document is not rotated.

After this I try to set this parameter as option lpoptions -p <printer> -o pdfAutoRotate=false

But when I do the following command the default options is not used.
And the created pdf is rotated :(

Is this a bug or normal behavior?

Regards
Franz



More information about the cups mailing list