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

Helge Blischke helgeblischke at web.de
Sun Jan 24 08:48:15 PST 2016


The options defined by the lpoptions command are used by the lp or lpr command (or by using the print job related functions
of the cups API, but, as far as I know, *not* by cupsfilter.

Helge
 
> Am 22.01.2016 um 18:23 schrieb Pförtsch, Franz <Franz.Pfoertsch at brose.com>:
> 
> 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
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list