[cups] CUPS ZPL Driver: Media Size
Frank Kirschner
fk at celebrate.de
Tue Apr 26 00:16:44 PDT 2016
Hi Franz,
Thanks for helping me. I'm running Centos 5 (Red Hat 5) with CUPS 1.3.7.32
I don't have a directory 'drv' in /usr/share/cups/
Anybody an idea for Centos?
Best regards
Frank
-----Ursprüngliche Nachricht-----
Von: cups-bounces at cups.org [mailto:cups-bounces at cups.org] Im Auftrag von Pförtsch, Franz
Gesendet: Dienstag, 26. April 2016 08:47
An: The CUPS user discussion list. <cups at cups.org>
Betreff: Re: [cups] CUPS ZPL Driver: Media Size
At ubuntu 15.10 you only hav to extend the sample.drv and restart cups/ reconfigure the printer
sudo vi /usr/share/cups/drv/sample.drv
1) add the mediasize a6
MediaSize w576h360
MediaSize w576h432
MediaSize w576h468
MediaSize A6 << added at ZPL section
2) Restart cups
sudo systemctl restart cups.service
3)reconfigure the printers via web-interface 4)"set default option" at printer and choose A6
I added the papersize but I do not have checked the printout.
Regards
Franz
-----Original Message-----
From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Helge Blischke
Sent: Monday, April 25, 2016 9:17 PM
To: The CUPS user discussion list.
Subject: Re: [cups] CUPS ZPL Driver: Media Size
> Am 25.04.2016 um 16:27 schrieb Frank Kirschner <frank at celebrate.de>:
>
> Hi,
>
> I'm printing via CUPS on a Datamax Printer with ZPL emulation a PDF file.
>
> The pdf defines a size of the DIN A6 format (parcel service label).
>
> The media sizes are in imperial format. I have used for testing the
> 4,00" x 5,00".
>
> But this produces a little stretching effect, so the data matric code
> and the barcode are not in ratio.
>
> Is it possible to define a A6 media size and if yes is there a how to?
>
>
>
> Thanks and best regards
>
> Frank
>
As – as far as I know – CUPS by default supports ZPL printers by converting the cups-raster format to ZPL graphics by the rastertolabel filter, it should be possible to define the A6 format simply ba editing the printer’s PPD.
For certainty, please post the printer’s PPD.
Helge
_______________________________________________
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