[cups] How do I disable rotation per queue not per printjob.
Pförtsch, Franz
Franz.Pfoertsch at brose.com
Mon Jan 25 09:44:19 PST 2016
Hello Helge,
Thanks a lot for your help.
After I wrote this lines I also thought about this behavior of cupsfilter.
Regards
Franz
-----Original Message-----
From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Helge Blischke
Sent: Sonntag, 24. Januar 2016 17:48
To: The CUPS user discussion list.
Subject: Re: [cups] How do I disable rotation per queue not per printjob.
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
_______________________________________________
cups mailing list
cups at cups.org
https://www.cups.org/mailman/listinfo/cups
More information about the cups
mailing list