mirror of https://github.com/klirichek/zj-58
parent
29e04abd96
commit
41aef48367
@ -1,17 +0,0 @@
|
||||
CC=gcc
|
||||
RM=rm -f
|
||||
CFLAGS=-Wl,-rpath,/usr/lib -Wall -fPIC -O3
|
||||
LDFLAGS=
|
||||
LDLIBS=-lcupsimage -lcups
|
||||
|
||||
SRCS=rastertozj.c
|
||||
OBJS=$(subst .c,.o,$(SRCS))
|
||||
|
||||
all: rastertozj
|
||||
|
||||
rastertozj: $(OBJS)
|
||||
gcc $(LDFLAGS) -o rastertozj rastertozj.o $(LDLIBS)
|
||||
|
||||
rastertozj.o: rastertozj.c
|
||||
gcc $(CFLAGS) -c rastertozj.c
|
||||
|
@ -1,15 +1,53 @@
|
||||
zj-58
|
||||
CUPS driver for thermal receipt printers (was: zj-58)
|
||||
=====================================================
|
||||
|
||||
CUPS filter for thermal receipt printers for rolls 58 and 80mm.
|
||||
|
||||
Originally it was filter for Zijiang zj-58 with specific PPD,
|
||||
but later it is revealed that it actually works with many other cheap 58mm printers, like
|
||||
Xprinter XP-58, etc. Also support for 80mm printers added.
|
||||
|
||||
Printing is performed from cups-raster using ESC/POS sequence 'GS v 0 <x> <y>'.
|
||||
Empty (zero) lines feeded as 'feed' command (to avoid send empty raster).
|
||||
|
||||
Also 2 Cash Drawers supported, with tunable impulse length for 'on' and 'off.'
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
CUPS filter for thermal printer Zjiang ZJ-58
|
||||
You need toolchain, CMake and cups-devel.
|
||||
|
||||
It may be achieved, say (as example) by running
|
||||
```
|
||||
sudo apt install build-essential cmake libcups2-dev libcupsimage2-dev
|
||||
```
|
||||
|
||||
After it the filter could be built by the sequence of commands:
|
||||
|
||||
```
|
||||
mkdir build && cd build && cmake ..
|
||||
make
|
||||
```
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
Need administrative rights!
|
||||
|
||||
```
|
||||
sudo make install
|
||||
```
|
||||
|
||||
'Sudo' is necessary to stop/restart cups service before operation, and also to place files with necessary rights.
|
||||
|
||||
|
||||
Debian packaging
|
||||
================
|
||||
|
||||
The linux driver provided on Zjiang site unfortunately doesn't work.
|
||||
First, it is 32-bit binary (and so, on x64 system need some x86 libs to be installed).
|
||||
Second, it's PPD is not correct - it just doesn't show any advanced settings because of it.
|
||||
Finally, raster filter just crashes on any try to run it!
|
||||
But even if you run it, you'll see that it's working with printer is not optimal: for example, if it sees a blank line, it will send the blank raster to print (instead of just use 'feeding' command, which is definitely faster!)
|
||||
For simplicity done with the same script as installation, so also need adminstrative rights.
|
||||
```
|
||||
sudo cpack -G DEB
|
||||
```
|
||||
|
||||
This is the solution:
|
||||
PPD is fixed and works.
|
||||
Filter is provided as src (you can found a list of packages need to be installed in order to build it in the header of source).
|
||||
Also, printing of blank lines is optimized.
|
||||
That will stop/start cups as a side effect, however that is not critical.
|
@ -1,117 +0,0 @@
|
||||
*PPD-Adobe: "4.3"
|
||||
*FormatVersion: "4.3"
|
||||
*FileVersion: "1.2"
|
||||
*LanguageVersion: English
|
||||
*LanguageEncoding: ISOLatin1
|
||||
*PCFileName: "zj58.ppd"
|
||||
*Manufacturer: "Zijiang"
|
||||
*Product: "(zj-58)"
|
||||
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
|
||||
*cupsVersion: 1.1
|
||||
*cupsManualCopies: True
|
||||
*cupsModelNumber: 58
|
||||
*cupsFilter: "application/vnd.cups-raster 0 rastertozj"
|
||||
*ModelName: "ZJ-58"
|
||||
*ShortNickName: "ZJ-58"
|
||||
*NickName: "Zijiang ZJ-58"
|
||||
*PSVersion: "(3010.000) 550"
|
||||
*LanguageLevel: "3"
|
||||
*ColorDevice: False
|
||||
*DefaultColorSpace: Gray
|
||||
*FileSystem: False
|
||||
*Throughput: "1"
|
||||
*LandscapeOrientation: Plus90
|
||||
*VariablePaperSize: True
|
||||
*TTRasterizer: Type42
|
||||
|
||||
*OpenUI *PageSize/Media Size: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageSize
|
||||
*DefaultPageSize: X48MMY105MM
|
||||
|
||||
*PageSize X48MMY105MM/58mm x 105mm: "<</PageSize[136 298]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageSize X48MMY210MM/58mm x 210mm: "<</PageSize[136 595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageSize X48MMY297MM/58mm x 297mm: "<</PageSize[136 842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageSize X48MMY3276MM/58mm x 3276mm: "<</PageSize[136 9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
|
||||
*CloseUI: *PageSize
|
||||
|
||||
*OpenUI *PageRegion: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageRegion
|
||||
*DefaultPageRegion: X48mmY105mm
|
||||
|
||||
*PageRegion X48MMY105MM/58mm x 105mm: "<</PageSize[164 298]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageRegion X48MMY210MM/58mm x 210mm: "<</PageSize[164 595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageRegion X48MMY297MM/58mm x 297mm: "<</PageSize[164 842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*PageRegion X48MMY3276MM/58mm x 3276mm: "<</PageSize[164 9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
|
||||
*DefaultImageableArea: X48MMY105MM
|
||||
|
||||
*ImageableArea X48MMY105MM: "0 0 136 298"
|
||||
*ImageableArea X48MMY210MM: "0 0 136 595"
|
||||
*ImageableArea X48MMY297MM: "0 0 136 842"
|
||||
*ImageableArea X48MMY3276MM: "0 0 136 9286"
|
||||
|
||||
*DefaultPaperDimension: X48MMY105MM
|
||||
|
||||
*PaperDimension X48MMY105MM: "136 298"
|
||||
*PaperDimension X48MMY210MM: "136 595"
|
||||
*PaperDimension X48MMY297MM: "136 842"
|
||||
*PaperDimension X48MMY3276MM: "136 9286"
|
||||
|
||||
*MaxMediaWidth: "136"
|
||||
*MaxMediaHeight: "9286"
|
||||
*HWMargins: 0 0 0 0
|
||||
*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
|
||||
*ParamCustomPageSize Width: 1 points 48 136
|
||||
*ParamCustomPageSize Height: 2 points 48 9282
|
||||
*ParamCustomPageSize WidthOffset: 3 points 0 0
|
||||
*ParamCustomPageSize HeightOffset: 4 points 0 0
|
||||
*ParamCustomPageSize Orientation: 5 int 0 0
|
||||
|
||||
*OpenGroup: CutGroup/Cut Options
|
||||
*OpenUI *FeedDist/Feed distance after print: PickOne
|
||||
*DefaultFeedDist: 2feed9mm
|
||||
*FeedDist 0feed3mm/feed 3mm: ""
|
||||
*FeedDist 1feed6mm/feed 6mm: ""
|
||||
*FeedDist 2feed9mm/feed 9mm: ""
|
||||
*FeedDist 3feed12mm/feed 12mm: ""
|
||||
*FeedDist 4feed15mm/feed 15mm: ""
|
||||
*FeedDist 5feed18mm/feed 18mm: ""
|
||||
*FeedDist 6feed21mm/feed 21mm: ""
|
||||
*FeedDist 7feed24mm/feed 24mm: ""
|
||||
*FeedDist 8feed27mm/feed 27mm: ""
|
||||
*FeedDist 9feed30mm/feed 30mm: ""
|
||||
*FeedDist 10feed33mm/feed 33mm: ""
|
||||
*FeedDist 11feed36mm/feed 36mm: ""
|
||||
*FeedDist 12feed39mm/feed 39mm: ""
|
||||
*FeedDist 13feed42mm/feed 42mm: ""
|
||||
*FeedDist 14feed45mm/feed 45mm: ""
|
||||
*CloseUI: *FeedDist
|
||||
|
||||
|
||||
*OpenUI *BlankSpace/Blank space at page's end: PickOne
|
||||
*DefaultBlankSpace: 1NoPrint
|
||||
*BlankSpace 0Print/Print: ""
|
||||
*BlankSpace 1NoPrint/Do not print: ""
|
||||
*CloseUI: *BlankSpace
|
||||
|
||||
*CloseGroup: *CutGroup
|
||||
|
||||
*OpenGroup: *CashDrawerGroup/Cash Drawer Control
|
||||
*OpenUI *CashDrawer1Setting/Cash Drawer 1: PickOne
|
||||
*DefaultCashDrawer1Setting: 0NotCashDrawer1
|
||||
*CashDrawer1Setting 0NotCashDrawer1/Not Cash Drawer 1: ""
|
||||
*CashDrawer1Setting 1NotCashDrawer1BeforePrinting/Cash Drawer 1 Before Printing: ""
|
||||
*CashDrawer1Setting 2NotCashDrawer1BeforePrinting/Cash Drawer 1 After Printing: ""
|
||||
*CloseUI: *CashDrawer1Setting
|
||||
|
||||
*OpenUI *CashDrawer2Setting/Cash Drawer 2: PickOne
|
||||
*DefaultCashDrawer2Setting: 0NotCashDrawer2
|
||||
*CashDrawer2Setting 0NotCashDrawer2/Not Cash Drawer 2: ""
|
||||
*CashDrawer2Setting 1NotCashDrawer2BeforePrinting/Cash Drawer 2 Before Printing: ""
|
||||
*CashDrawer2Setting 2NotCashDrawer2BeforePrinting/Cash Drawer 2 After Printing: ""
|
||||
*CloseUI: *CashDrawer2Setting
|
||||
*CloseGroup: *CashDrawerGroup
|
||||
|
||||
|
||||
*% End
|
@ -1,138 +0,0 @@
|
||||
// CUPS PPD Compiler CUPS v2.1.3
|
||||
// (Don't edit .ppd directly, edit this file instead, then use
|
||||
// ppdc zj-58.drv to generate zj58.ppd)
|
||||
|
||||
// Zijiang ZJ-58
|
||||
{
|
||||
Manufacturer "Zijiang"
|
||||
ModelName "ZJ-58"
|
||||
PCFileName "zj58.ppd"
|
||||
Version "1.2"
|
||||
DriverType custom
|
||||
ModelNumber 58
|
||||
ManualCopies Yes
|
||||
Throughput 1
|
||||
Attribute "NickName" "" "Zijiang ZJ-58"
|
||||
Attribute "ShortNickName" "" "ZJ-58"
|
||||
Attribute "Product" "" "(zj-58)"
|
||||
Attribute "1284DeviceID" "" "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
|
||||
Attribute "PSVersion" "" "(3010.000) 550"
|
||||
Attribute "LanguageLevel" "" "3"
|
||||
Attribute "DefaultColorSpace" "" "Gray"
|
||||
Attribute "FileSystem" "" "False"
|
||||
Attribute "LandscapeOrientation" "" "Plus90"
|
||||
Attribute "TTRasterizer" "" "Type42"
|
||||
Attribute "VariablePaperSize" "" "True"
|
||||
Filter "application/vnd.cups-raster 100 rastertozj"
|
||||
ColorDevice False
|
||||
|
||||
Option "Resolution/Resolution" PickOne AnySetup 10
|
||||
*Choice "203x203dpi/203 DPI Grayscale" "<</HWResolution[203 203]/cupsColorSpace 3>>setpagedevice"
|
||||
|
||||
// Custom page sizes
|
||||
VariablePaperSize Yes
|
||||
MinSize 164 56
|
||||
MaxSize 164 9286
|
||||
//MinSize 226 56 // that is for 80mm (72mm printable)
|
||||
//MaxSize 226 9286
|
||||
HWMargins 14 0 14 0
|
||||
|
||||
*CustomMedia "X58MMY65MM/58mm x 65mm" 164 182 14 0 14 0 "<</PageSize[164 182]/ImagingBBox null>>setpagedevice" "<</PageSize[164 182]/ImagingBBox null>>setpagedevice"
|
||||
CustomMedia "X58MMY105MM/58mm x 105mm" 164 298 14 0 14 0 "<</PageSize[164 298]/ImagingBBox null>>setpagedevice" "<</PageSize[164 298]/ImagingBBox null>>setpagedevice"
|
||||
CustomMedia "X58MMY210MM/58mm x 210mm" 164 595 14 0 14 0 "<</PageSize[164 595]/ImagingBBox null>>setpagedevice" "<</PageSize[164 595]/ImagingBBox null>>setpagedevice"
|
||||
CustomMedia "X58MMY297MM/58mm x 297mm" 164 842 14 0 14 0 "<</PageSize[164 842]/ImagingBBox null>>setpagedevice" "<</PageSize[164 842]/ImagingBBox null>>setpagedevice"
|
||||
CustomMedia "X58MMY3276MM/58mm x 3276mm" 164 9286 14 0 14 0 "<</PageSize[164 9286]/ImagingBBox null>>setpagedevice" "<</PageSize[164 9286]/ImagingBBox null>>setpagedevice"
|
||||
|
||||
Group "BlankGroup/Blank Options"
|
||||
Option "FeedDist/Feed distance after print" PickOne AnySetup 10
|
||||
Choice "0feed3mm/feed 3mm" "<</AdvanceDistance 24>>setpagedevice"
|
||||
Choice "1feed6mm/feed 6mm" "<</AdvanceDistance 48>>setpagedevice"
|
||||
*Choice "2feed9mm/feed 9mm" "<</AdvanceDistance 72>>setpagedevice"
|
||||
Choice "3feed12mm/feed 12mm" "<</AdvanceDistance 96>>setpagedevice"
|
||||
Choice "4feed15mm/feed 15mm" "<</AdvanceDistance 120>>setpagedevice"
|
||||
Choice "5feed18mm/feed 18mm" "<</AdvanceDistance 144>>setpagedevice"
|
||||
Choice "6feed21mm/feed 21mm" "<</AdvanceDistance 168>>setpagedevice"
|
||||
Choice "7feed24mm/feed 24mm" "<</AdvanceDistance 192>>setpagedevice"
|
||||
Choice "8feed27mm/feed 27mm" "<</AdvanceDistance 216>>setpagedevice"
|
||||
Choice "9feed30mm/feed 30mm" "<</AdvanceDistance 240>>setpagedevice"
|
||||
Choice "10feed33mm/feed 33mm" "<</AdvanceDistance 264>>setpagedevice"
|
||||
Choice "11feed36mm/feed 36mm" "<</AdvanceDistance 288>>setpagedevice"
|
||||
Choice "12feed39mm/feed 39mm" "<</AdvanceDistance 312>>setpagedevice"
|
||||
Choice "13feed42mm/feed 42mm" "<</AdvanceDistance 336>>setpagedevice"
|
||||
Choice "14feed45mm/feed 45mm" "<</AdvanceDistance 360>>setpagedevice"
|
||||
|
||||
Option "BlankSpace/Blank space at page's end" Boolean AnySetup 10
|
||||
Choice "True/Print" "<</AdvanceMedia 4>>setpagedevice"
|
||||
*Choice "False/None" "<</AdvanceMedia 0>>setpagedevice"
|
||||
|
||||
Group "*CashDrawerGroup/Cash Drawer Control"
|
||||
Option "CashDrawer1Setting/Cash Drawer 1" PickOne AnySetup 10
|
||||
*Choice "None/None" "<</cupsInteger0 0>>setpagedevice"
|
||||
Choice "1BeforePrinting/Before Printing" "<</cupsInteger0 1>>setpagedevice"
|
||||
Choice "1AfterPrinting/After Printing" "<</cupsInteger0 2>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2Setting/Cash Drawer 2" PickOne AnySetup 10
|
||||
*Choice "None/None" "<</cupsInteger1 0>>setpagedevice"
|
||||
Choice "2BeforePrinting/Before Printing" "<</cupsInteger1 1>>setpagedevice"
|
||||
Choice "2AfterPrinting/After Printing" "<</cupsInteger1 2>>setpagedevice"
|
||||
|
||||
Group "*CashDrawerTune/Cash Drawer Tune"
|
||||
Option "CashDrawer1PulseOn/Cash Drawer 1 pulse ON time" PickOne AnySetup 10
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger2 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger2 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger2 48>>setpagedevice"
|
||||
*Choice "40XMS/128mS" "<</cupsInteger2 64>>setpagedevice"
|
||||
Choice "50XMS/160mS" "<</cupsInteger2 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger2 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger2 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger2 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time" PickOne AnySetup 10
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger3 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger3 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger3 48>>setpagedevice"
|
||||
Choice "40XMS/128mS" "<</cupsInteger3 64>>setpagedevice"
|
||||
*Choice "50XMS/160mS" "<</cupsInteger3 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger3 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger3 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger3 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2PulseOn/Cash Drawer 2 pulse ON time" PickOne AnySetup 10
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger4 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger4 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger4 48>>setpagedevice"
|
||||
*Choice "40XMS/128mS" "<</cupsInteger4 64>>setpagedevice"
|
||||
Choice "50XMS/160mS" "<</cupsInteger4 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger4 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger4 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger4 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time" PickOne AnySetup 10
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger5 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger5 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger5 48>>setpagedevice"
|
||||
Choice "40XMS/128mS" "<</cupsInteger5 64>>setpagedevice"
|
||||
*Choice "50XMS/160mS" "<</cupsInteger5 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger5 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger5 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger5 128>>setpagedevice"
|
||||
|
||||
|
||||
Installable "OptionCash1/Cash drawer 1"
|
||||
UIConstraints "*CashDrawer1Setting *OptionCash1 False"
|
||||
// UIConstraints "*CashDrawer1PulseOn *OptionCash1 False"
|
||||
// UIConstraints "*CashDrawer1PulseOff *OptionCash1 False"
|
||||
|
||||
Installable "OptionCash2/Cash drawer 2"
|
||||
UIConstraints "*CashDrawer2Setting *OptionCash2 False"
|
||||
// UIConstraints "*CashDrawer2PulseOn *OptionCash2 False"
|
||||
// UIConstraints "*CashDrawer2PulseOff *OptionCash2 False"
|
||||
|
||||
Cutter true
|
||||
Installable "OptionCutter/Cutter"
|
||||
UIConstraints "*CutMedia *OptionCutter False"
|
||||
}
|
@ -0,0 +1,212 @@
|
||||
*PPD-Adobe: "4.3"
|
||||
*%%%% PPD file for ZJ-58 with CUPS.
|
||||
*%%%% Created by the CUPS PPD Compiler CUPS v2.2.7.
|
||||
*FormatVersion: "4.3"
|
||||
*FileVersion: "1.2"
|
||||
*LanguageVersion: English
|
||||
*LanguageEncoding: ISOLatin1
|
||||
*PCFileName: "zj58.ppd"
|
||||
*Product: "(zj-58)"
|
||||
*Manufacturer: "Zijiang"
|
||||
*ModelName: "Zijiang ZJ-58"
|
||||
*ShortNickName: "ZJ-58"
|
||||
*NickName: "Zijiang ZJ-58"
|
||||
*PSVersion: "(3010.000) 550"
|
||||
*LanguageLevel: "3"
|
||||
*ColorDevice: False
|
||||
*DefaultColorSpace: Gray
|
||||
*FileSystem: False
|
||||
*Throughput: "1"
|
||||
*LandscapeOrientation: Plus90
|
||||
*TTRasterizer: Type42
|
||||
*% Driver-defined attributes...
|
||||
*VariablePaperSize: True
|
||||
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
|
||||
*cupsVersion: 2.2
|
||||
*cupsModelNumber: 384
|
||||
*cupsManualCopies: True
|
||||
*cupsFilter: "application/vnd.cups-raster 100 rastertozj"
|
||||
*cupsLanguages: "en"
|
||||
*UIConstraints: *CashDrawer1Setting *OptionCash1 False
|
||||
*UIConstraints: *OptionCash1 False *CashDrawer1Setting
|
||||
*UIConstraints: *CashDrawer2Setting *OptionCash2 False
|
||||
*UIConstraints: *OptionCash2 False *CashDrawer2Setting
|
||||
*UIConstraints: *CutMedia *OptionCutter False
|
||||
*UIConstraints: *OptionCutter False *CutMedia
|
||||
*OpenUI *PageSize/Media Size: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageSize
|
||||
*DefaultPageSize: X48MMY65MM
|
||||
*PageSize X48MMY65MM/58mm x 65mm: "<</PageSize[164 182]>>setpagedevice"
|
||||
*PageSize X48MMY105MM/58mm x 105mm: "<</PageSize[164 298]>>setpagedevice"
|
||||
*PageSize X48MMY210MM/58mm x 210mm: "<</PageSize[164 595]>>setpagedevice"
|
||||
*PageSize X48MMY297MM/58mm x 297mm: "<</PageSize[164 842]>>setpagedevice"
|
||||
*PageSize X48MMY3276MM/58mm x 3276mm: "<</PageSize[164 9286]>>setpagedevice"
|
||||
*CloseUI: *PageSize
|
||||
*OpenUI *PageRegion/Media Size: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageRegion
|
||||
*DefaultPageRegion: X48MMY65MM
|
||||
*PageRegion X48MMY65MM/58mm x 65mm: "<</PageSize[164 182]>>setpagedevice"
|
||||
*PageRegion X48MMY105MM/58mm x 105mm: "<</PageSize[164 298]>>setpagedevice"
|
||||
*PageRegion X48MMY210MM/58mm x 210mm: "<</PageSize[164 595]>>setpagedevice"
|
||||
*PageRegion X48MMY297MM/58mm x 297mm: "<</PageSize[164 842]>>setpagedevice"
|
||||
*PageRegion X48MMY3276MM/58mm x 3276mm: "<</PageSize[164 9286]>>setpagedevice"
|
||||
*CloseUI: *PageRegion
|
||||
*DefaultImageableArea: X48MMY65MM
|
||||
*ImageableArea X48MMY65MM/58mm x 65mm: "14 0 150 182"
|
||||
*ImageableArea X48MMY105MM/58mm x 105mm: "14 0 150 298"
|
||||
*ImageableArea X48MMY210MM/58mm x 210mm: "14 0 150 595"
|
||||
*ImageableArea X48MMY297MM/58mm x 297mm: "14 0 150 842"
|
||||
*ImageableArea X48MMY3276MM/58mm x 3276mm: "14 0 150 9286"
|
||||
*DefaultPaperDimension: X48MMY65MM
|
||||
*PaperDimension X48MMY65MM/58mm x 65mm: "164 182"
|
||||
*PaperDimension X48MMY105MM/58mm x 105mm: "164 298"
|
||||
*PaperDimension X48MMY210MM/58mm x 210mm: "164 595"
|
||||
*PaperDimension X48MMY297MM/58mm x 297mm: "164 842"
|
||||
*PaperDimension X48MMY3276MM/58mm x 3276mm: "164 9286"
|
||||
*MaxMediaWidth: "164"
|
||||
*MaxMediaHeight: "9286"
|
||||
*HWMargins: 14 0 14 0
|
||||
*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
|
||||
*ParamCustomPageSize Width: 1 points 164 164
|
||||
*ParamCustomPageSize Height: 2 points 56 9286
|
||||
*ParamCustomPageSize WidthOffset: 3 points 0 0
|
||||
*ParamCustomPageSize HeightOffset: 4 points 0 0
|
||||
*ParamCustomPageSize Orientation: 5 int 0 0
|
||||
*OpenUI *CutMedia/Cut Media: PickOne
|
||||
*OrderDependency: 10 AnySetup *CutMedia
|
||||
*DefaultCutMedia: None
|
||||
*CutMedia None/No cutting: "<</CutMedia 0>>setpagedevice"
|
||||
*CutMedia EndOfPage/Cut at every page: "<</CutMedia 4>>setpagedevice"
|
||||
*CutMedia EndOfJob/Cut at every job: "<</CutMedia 2>>setpagedevice"
|
||||
*CloseUI: *CutMedia
|
||||
*OpenGroup: InstallableOptions/Installable Options
|
||||
*OpenUI *OptionCash1/Cash drawer 1: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCash1
|
||||
*DefaultOptionCash1: False
|
||||
*OptionCash1 False/Not Installed: ""
|
||||
*OptionCash1 True/Installed: ""
|
||||
*CloseUI: *OptionCash1
|
||||
*OpenUI *OptionCash2/Cash drawer 2: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCash2
|
||||
*DefaultOptionCash2: False
|
||||
*OptionCash2 False/Not Installed: ""
|
||||
*OptionCash2 True/Installed: ""
|
||||
*CloseUI: *OptionCash2
|
||||
*OpenUI *OptionCutter/Cutter: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCutter
|
||||
*DefaultOptionCutter: False
|
||||
*OptionCutter False/Not Installed: ""
|
||||
*OptionCutter True/Installed: ""
|
||||
*CloseUI: *OptionCutter
|
||||
*CloseGroup: InstallableOptions
|
||||
*OpenGroup: BlankGroup/Blank Options
|
||||
*OpenUI *FeedDist/Feed distance: PickOne
|
||||
*OrderDependency: 10 AnySetup *FeedDist
|
||||
*DefaultFeedDist: 2feed9mm
|
||||
*FeedDist 0feed3mm/3mm: "<</AdvanceDistance 24>>setpagedevice"
|
||||
*FeedDist 1feed6mm/6mm: "<</AdvanceDistance 48>>setpagedevice"
|
||||
*FeedDist 2feed9mm/9mm: "<</AdvanceDistance 72>>setpagedevice"
|
||||
*FeedDist 3feed12mm/12mm: "<</AdvanceDistance 96>>setpagedevice"
|
||||
*FeedDist 4feed15mm/15mm: "<</AdvanceDistance 120>>setpagedevice"
|
||||
*FeedDist 5feed18mm/18mm: "<</AdvanceDistance 144>>setpagedevice"
|
||||
*FeedDist 6feed21mm/21mm: "<</AdvanceDistance 168>>setpagedevice"
|
||||
*FeedDist 7feed24mm/24mm: "<</AdvanceDistance 192>>setpagedevice"
|
||||
*FeedDist 8feed27mm/27mm: "<</AdvanceDistance 216>>setpagedevice"
|
||||
*FeedDist 9feed30mm/30mm: "<</AdvanceDistance 240>>setpagedevice"
|
||||
*FeedDist 10feed33mm/33mm: "<</AdvanceDistance 264>>setpagedevice"
|
||||
*FeedDist 11feed36mm/36mm: "<</AdvanceDistance 288>>setpagedevice"
|
||||
*FeedDist 12feed39mm/39mm: "<</AdvanceDistance 312>>setpagedevice"
|
||||
*FeedDist 13feed42mm/42mm: "<</AdvanceDistance 336>>setpagedevice"
|
||||
*FeedDist 14feed45mm/45mm: "<</AdvanceDistance 360>>setpagedevice"
|
||||
*CloseUI: *FeedDist
|
||||
*OpenUI *FeedWhere/When to feed: PickOne
|
||||
*OrderDependency: 10 AnySetup *FeedWhere
|
||||
*DefaultFeedWhere: AfterJob
|
||||
*FeedWhere None/Never: ""
|
||||
*FeedWhere AfterPage/After each page: "<</AdvanceMedia 4>>setpagedevice"
|
||||
*FeedWhere AfterJob/After whole printing: "<</AdvanceMedia 2>>setpagedevice"
|
||||
*CloseUI: *FeedWhere
|
||||
*OpenUI *BlankSpace/Blank space at page's end: Boolean
|
||||
*OrderDependency: 10 AnySetup *BlankSpace
|
||||
*DefaultBlankSpace: False
|
||||
*BlankSpace True/Print: "<</cupsInteger6 1>>setpagedevice"
|
||||
*BlankSpace False/None: "<</cupsInteger6 0>>setpagedevice"
|
||||
*CloseUI: *BlankSpace
|
||||
*CloseGroup: BlankGroup
|
||||
*OpenGroup: *CashDrawerGroup/Cash Drawer Control
|
||||
*OpenUI *CashDrawer1Setting/Cash Drawer 1: PickOne
|
||||
*OrderDependency: 10 DocumentSetup *CashDrawer1Setting
|
||||
*DefaultCashDrawer1Setting: None
|
||||
*CashDrawer1Setting None/None: "<</cupsInteger0 0>>setpagedevice"
|
||||
*CashDrawer1Setting 1BeforePrinting/Before Printing: "<</cupsInteger0 1>>setpagedevice"
|
||||
*CashDrawer1Setting 1AfterPrinting/After Printing: "<</cupsInteger0 2>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1Setting
|
||||
*OpenUI *CashDrawer2Setting/Cash Drawer 2: PickOne
|
||||
*OrderDependency: 10 DocumentSetup *CashDrawer2Setting
|
||||
*DefaultCashDrawer2Setting: None
|
||||
*CashDrawer2Setting None/None: "<</cupsInteger1 0>>setpagedevice"
|
||||
*CashDrawer2Setting 2BeforePrinting/Before Printing: "<</cupsInteger1 1>>setpagedevice"
|
||||
*CashDrawer2Setting 2AfterPrinting/After Printing: "<</cupsInteger1 2>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2Setting
|
||||
*CloseGroup: *CashDrawerGroup
|
||||
*OpenGroup: *CashDrawerTune/Cash Drawer Tune
|
||||
*OpenUI *CashDrawer1PulseOn/Cash Drawer 1 pulse ON time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer1PulseOn
|
||||
*DefaultCashDrawer1PulseOn: 40XMS
|
||||
*CashDrawer1PulseOn None/None: ""
|
||||
*CashDrawer1PulseOn 10XMS/32mS: "<</cupsInteger2 16>>setpagedevice"
|
||||
*CashDrawer1PulseOn 20XMS/64mS: "<</cupsInteger2 32>>setpagedevice"
|
||||
*CashDrawer1PulseOn 30XMS/96mS: "<</cupsInteger2 48>>setpagedevice"
|
||||
*CashDrawer1PulseOn 40XMS/128mS: "<</cupsInteger2 64>>setpagedevice"
|
||||
*CashDrawer1PulseOn 50XMS/160mS: "<</cupsInteger2 80>>setpagedevice"
|
||||
*CashDrawer1PulseOn 60XMS/192mS: "<</cupsInteger2 96>>setpagedevice"
|
||||
*CashDrawer1PulseOn 70XMS/224mS: "<</cupsInteger2 112>>setpagedevice"
|
||||
*CashDrawer1PulseOn 80XMS/256mS: "<</cupsInteger2 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1PulseOn
|
||||
*OpenUI *CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer1PulseOff
|
||||
*DefaultCashDrawer1PulseOff: 50XMS
|
||||
*CashDrawer1PulseOff None/None: ""
|
||||
*CashDrawer1PulseOff 10XMS/32mS: "<</cupsInteger3 16>>setpagedevice"
|
||||
*CashDrawer1PulseOff 20XMS/64mS: "<</cupsInteger3 32>>setpagedevice"
|
||||
*CashDrawer1PulseOff 30XMS/96mS: "<</cupsInteger3 48>>setpagedevice"
|
||||
*CashDrawer1PulseOff 40XMS/128mS: "<</cupsInteger3 64>>setpagedevice"
|
||||
*CashDrawer1PulseOff 50XMS/160mS: "<</cupsInteger3 80>>setpagedevice"
|
||||
*CashDrawer1PulseOff 60XMS/192mS: "<</cupsInteger3 96>>setpagedevice"
|
||||
*CashDrawer1PulseOff 70XMS/224mS: "<</cupsInteger3 112>>setpagedevice"
|
||||
*CashDrawer1PulseOff 80XMS/256mS: "<</cupsInteger3 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1PulseOff
|
||||
*OpenUI *CashDrawer2PulseOn/Cash Drawer 2 pulse ON time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer2PulseOn
|
||||
*DefaultCashDrawer2PulseOn: 40XMS
|
||||
*CashDrawer2PulseOn None/None: ""
|
||||
*CashDrawer2PulseOn 10XMS/32mS: "<</cupsInteger4 16>>setpagedevice"
|
||||
*CashDrawer2PulseOn 20XMS/64mS: "<</cupsInteger4 32>>setpagedevice"
|
||||
*CashDrawer2PulseOn 30XMS/96mS: "<</cupsInteger4 48>>setpagedevice"
|
||||
*CashDrawer2PulseOn 40XMS/128mS: "<</cupsInteger4 64>>setpagedevice"
|
||||
*CashDrawer2PulseOn 50XMS/160mS: "<</cupsInteger4 80>>setpagedevice"
|
||||
*CashDrawer2PulseOn 60XMS/192mS: "<</cupsInteger4 96>>setpagedevice"
|
||||
*CashDrawer2PulseOn 70XMS/224mS: "<</cupsInteger4 112>>setpagedevice"
|
||||
*CashDrawer2PulseOn 80XMS/256mS: "<</cupsInteger4 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2PulseOn
|
||||
*OpenUI *CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer2PulseOff
|
||||
*DefaultCashDrawer2PulseOff: 50XMS
|
||||
*CashDrawer2PulseOff None/None: ""
|
||||
*CashDrawer2PulseOff 10XMS/32mS: "<</cupsInteger5 16>>setpagedevice"
|
||||
*CashDrawer2PulseOff 20XMS/64mS: "<</cupsInteger5 32>>setpagedevice"
|
||||
*CashDrawer2PulseOff 30XMS/96mS: "<</cupsInteger5 48>>setpagedevice"
|
||||
*CashDrawer2PulseOff 40XMS/128mS: "<</cupsInteger5 64>>setpagedevice"
|
||||
*CashDrawer2PulseOff 50XMS/160mS: "<</cupsInteger5 80>>setpagedevice"
|
||||
*CashDrawer2PulseOff 60XMS/192mS: "<</cupsInteger5 96>>setpagedevice"
|
||||
*CashDrawer2PulseOff 70XMS/224mS: "<</cupsInteger5 112>>setpagedevice"
|
||||
*CashDrawer2PulseOff 80XMS/256mS: "<</cupsInteger5 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2PulseOff
|
||||
*OpenUI *Resolution/Resolution: PickOne
|
||||
*OrderDependency: 10 AnySetup *Resolution
|
||||
*DefaultResolution: 203x203dpi
|
||||
*Resolution 203x203dpi/203 DPI Grayscale: "<</HWResolution[203 203]/cupsColorSpace 3>>setpagedevice"
|
||||
*CloseUI: *Resolution
|
||||
*CloseGroup: *CashDrawerTune
|
||||
*DefaultFont: Courier
|
||||
*% End of zj58.ppd, 10245 bytes.
|
@ -0,0 +1,212 @@
|
||||
*PPD-Adobe: "4.3"
|
||||
*%%%% PPD file for ZJ-80 with CUPS.
|
||||
*%%%% Created by the CUPS PPD Compiler CUPS v2.2.7.
|
||||
*FormatVersion: "4.3"
|
||||
*FileVersion: "1.2"
|
||||
*LanguageVersion: English
|
||||
*LanguageEncoding: ISOLatin1
|
||||
*PCFileName: "zj80.ppd"
|
||||
*Product: "(zj-80)"
|
||||
*Manufacturer: "Zijiang"
|
||||
*ModelName: "Zijiang ZJ-80"
|
||||
*ShortNickName: "ZJ-80"
|
||||
*NickName: "Zijiang ZJ-80"
|
||||
*PSVersion: "(3010.000) 550"
|
||||
*LanguageLevel: "3"
|
||||
*ColorDevice: False
|
||||
*DefaultColorSpace: Gray
|
||||
*FileSystem: False
|
||||
*Throughput: "1"
|
||||
*LandscapeOrientation: Plus90
|
||||
*TTRasterizer: Type42
|
||||
*% Driver-defined attributes...
|
||||
*VariablePaperSize: True
|
||||
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-80;CLS:PRINTER;"
|
||||
*cupsVersion: 2.2
|
||||
*cupsModelNumber: 560
|
||||
*cupsManualCopies: True
|
||||
*cupsFilter: "application/vnd.cups-raster 100 rastertozj"
|
||||
*cupsLanguages: "en"
|
||||
*UIConstraints: *CashDrawer1Setting *OptionCash1 False
|
||||
*UIConstraints: *OptionCash1 False *CashDrawer1Setting
|
||||
*UIConstraints: *CashDrawer2Setting *OptionCash2 False
|
||||
*UIConstraints: *OptionCash2 False *CashDrawer2Setting
|
||||
*UIConstraints: *CutMedia *OptionCutter False
|
||||
*UIConstraints: *OptionCutter False *CutMedia
|
||||
*OpenUI *PageSize/Media Size: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageSize
|
||||
*DefaultPageSize: X70MMY65MM
|
||||
*PageSize X70MMY65MM/80mm x 65mm: "<</PageSize[226 182]>>setpagedevice"
|
||||
*PageSize X70MMY105MM/80mm x 105mm: "<</PageSize[226 298]>>setpagedevice"
|
||||
*PageSize X70MMY210MM/80mm x 210mm: "<</PageSize[226 595]>>setpagedevice"
|
||||
*PageSize X70MMY297MM/80mm x 297mm: "<</PageSize[226 842]>>setpagedevice"
|
||||
*PageSize X70MMY3276MM/80mm x 3276mm: "<</PageSize[226 9286]>>setpagedevice"
|
||||
*CloseUI: *PageSize
|
||||
*OpenUI *PageRegion/Media Size: PickOne
|
||||
*OrderDependency: 10 AnySetup *PageRegion
|
||||
*DefaultPageRegion: X70MMY65MM
|
||||
*PageRegion X70MMY65MM/80mm x 65mm: "<</PageSize[226 182]>>setpagedevice"
|
||||
*PageRegion X70MMY105MM/80mm x 105mm: "<</PageSize[226 298]>>setpagedevice"
|
||||
*PageRegion X70MMY210MM/80mm x 210mm: "<</PageSize[226 595]>>setpagedevice"
|
||||
*PageRegion X70MMY297MM/80mm x 297mm: "<</PageSize[226 842]>>setpagedevice"
|
||||
*PageRegion X70MMY3276MM/80mm x 3276mm: "<</PageSize[226 9286]>>setpagedevice"
|
||||
*CloseUI: *PageRegion
|
||||
*DefaultImageableArea: X70MMY65MM
|
||||
*ImageableArea X70MMY65MM/80mm x 65mm: "14 0 212 182"
|
||||
*ImageableArea X70MMY105MM/80mm x 105mm: "14 0 212 298"
|
||||
*ImageableArea X70MMY210MM/80mm x 210mm: "14 0 212 595"
|
||||
*ImageableArea X70MMY297MM/80mm x 297mm: "14 0 212 842"
|
||||
*ImageableArea X70MMY3276MM/80mm x 3276mm: "14 0 212 9286"
|
||||
*DefaultPaperDimension: X70MMY65MM
|
||||
*PaperDimension X70MMY65MM/80mm x 65mm: "226 182"
|
||||
*PaperDimension X70MMY105MM/80mm x 105mm: "226 298"
|
||||
*PaperDimension X70MMY210MM/80mm x 210mm: "226 595"
|
||||
*PaperDimension X70MMY297MM/80mm x 297mm: "226 842"
|
||||
*PaperDimension X70MMY3276MM/80mm x 3276mm: "226 9286"
|
||||
*MaxMediaWidth: "226"
|
||||
*MaxMediaHeight: "9286"
|
||||
*HWMargins: 14 0 14 0
|
||||
*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
|
||||
*ParamCustomPageSize Width: 1 points 226 226
|
||||
*ParamCustomPageSize Height: 2 points 56 9286
|
||||
*ParamCustomPageSize WidthOffset: 3 points 0 0
|
||||
*ParamCustomPageSize HeightOffset: 4 points 0 0
|
||||
*ParamCustomPageSize Orientation: 5 int 0 0
|
||||
*OpenUI *CutMedia/Cut Media: PickOne
|
||||
*OrderDependency: 10 AnySetup *CutMedia
|
||||
*DefaultCutMedia: None
|
||||
*CutMedia None/No cutting: "<</CutMedia 0>>setpagedevice"
|
||||
*CutMedia EndOfPage/Cut at every page: "<</CutMedia 4>>setpagedevice"
|
||||
*CutMedia EndOfJob/Cut at every job: "<</CutMedia 2>>setpagedevice"
|
||||
*CloseUI: *CutMedia
|
||||
*OpenGroup: InstallableOptions/Installable Options
|
||||
*OpenUI *OptionCash1/Cash drawer 1: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCash1
|
||||
*DefaultOptionCash1: False
|
||||
*OptionCash1 False/Not Installed: ""
|
||||
*OptionCash1 True/Installed: ""
|
||||
*CloseUI: *OptionCash1
|
||||
*OpenUI *OptionCash2/Cash drawer 2: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCash2
|
||||
*DefaultOptionCash2: False
|
||||
*OptionCash2 False/Not Installed: ""
|
||||
*OptionCash2 True/Installed: ""
|
||||
*CloseUI: *OptionCash2
|
||||
*OpenUI *OptionCutter/Cutter: Boolean
|
||||
*OrderDependency: 10 AnySetup *OptionCutter
|
||||
*DefaultOptionCutter: False
|
||||
*OptionCutter False/Not Installed: ""
|
||||
*OptionCutter True/Installed: ""
|
||||
*CloseUI: *OptionCutter
|
||||
*CloseGroup: InstallableOptions
|
||||
*OpenGroup: BlankGroup/Blank Options
|
||||
*OpenUI *FeedDist/Feed distance: PickOne
|
||||
*OrderDependency: 10 AnySetup *FeedDist
|
||||
*DefaultFeedDist: 2feed9mm
|
||||
*FeedDist 0feed3mm/3mm: "<</AdvanceDistance 24>>setpagedevice"
|
||||
*FeedDist 1feed6mm/6mm: "<</AdvanceDistance 48>>setpagedevice"
|
||||
*FeedDist 2feed9mm/9mm: "<</AdvanceDistance 72>>setpagedevice"
|
||||
*FeedDist 3feed12mm/12mm: "<</AdvanceDistance 96>>setpagedevice"
|
||||
*FeedDist 4feed15mm/15mm: "<</AdvanceDistance 120>>setpagedevice"
|
||||
*FeedDist 5feed18mm/18mm: "<</AdvanceDistance 144>>setpagedevice"
|
||||
*FeedDist 6feed21mm/21mm: "<</AdvanceDistance 168>>setpagedevice"
|
||||
*FeedDist 7feed24mm/24mm: "<</AdvanceDistance 192>>setpagedevice"
|
||||
*FeedDist 8feed27mm/27mm: "<</AdvanceDistance 216>>setpagedevice"
|
||||
*FeedDist 9feed30mm/30mm: "<</AdvanceDistance 240>>setpagedevice"
|
||||
*FeedDist 10feed33mm/33mm: "<</AdvanceDistance 264>>setpagedevice"
|
||||
*FeedDist 11feed36mm/36mm: "<</AdvanceDistance 288>>setpagedevice"
|
||||
*FeedDist 12feed39mm/39mm: "<</AdvanceDistance 312>>setpagedevice"
|
||||
*FeedDist 13feed42mm/42mm: "<</AdvanceDistance 336>>setpagedevice"
|
||||
*FeedDist 14feed45mm/45mm: "<</AdvanceDistance 360>>setpagedevice"
|
||||
*CloseUI: *FeedDist
|
||||
*OpenUI *FeedWhere/When to feed: PickOne
|
||||
*OrderDependency: 10 AnySetup *FeedWhere
|
||||
*DefaultFeedWhere: AfterJob
|
||||
*FeedWhere None/Never: ""
|
||||
*FeedWhere AfterPage/After each page: "<</AdvanceMedia 4>>setpagedevice"
|
||||
*FeedWhere AfterJob/After whole printing: "<</AdvanceMedia 2>>setpagedevice"
|
||||
*CloseUI: *FeedWhere
|
||||
*OpenUI *BlankSpace/Blank space at page's end: Boolean
|
||||
*OrderDependency: 10 AnySetup *BlankSpace
|
||||
*DefaultBlankSpace: False
|
||||
*BlankSpace True/Print: "<</cupsInteger6 1>>setpagedevice"
|
||||
*BlankSpace False/None: "<</cupsInteger6 0>>setpagedevice"
|
||||
*CloseUI: *BlankSpace
|
||||
*CloseGroup: BlankGroup
|
||||
*OpenGroup: *CashDrawerGroup/Cash Drawer Control
|
||||
*OpenUI *CashDrawer1Setting/Cash Drawer 1: PickOne
|
||||
*OrderDependency: 10 DocumentSetup *CashDrawer1Setting
|
||||
*DefaultCashDrawer1Setting: None
|
||||
*CashDrawer1Setting None/None: "<</cupsInteger0 0>>setpagedevice"
|
||||
*CashDrawer1Setting 1BeforePrinting/Before Printing: "<</cupsInteger0 1>>setpagedevice"
|
||||
*CashDrawer1Setting 1AfterPrinting/After Printing: "<</cupsInteger0 2>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1Setting
|
||||
*OpenUI *CashDrawer2Setting/Cash Drawer 2: PickOne
|
||||
*OrderDependency: 10 DocumentSetup *CashDrawer2Setting
|
||||
*DefaultCashDrawer2Setting: None
|
||||
*CashDrawer2Setting None/None: "<</cupsInteger1 0>>setpagedevice"
|
||||
*CashDrawer2Setting 2BeforePrinting/Before Printing: "<</cupsInteger1 1>>setpagedevice"
|
||||
*CashDrawer2Setting 2AfterPrinting/After Printing: "<</cupsInteger1 2>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2Setting
|
||||
*CloseGroup: *CashDrawerGroup
|
||||
*OpenGroup: *CashDrawerTune/Cash Drawer Tune
|
||||
*OpenUI *CashDrawer1PulseOn/Cash Drawer 1 pulse ON time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer1PulseOn
|
||||
*DefaultCashDrawer1PulseOn: 40XMS
|
||||
*CashDrawer1PulseOn None/None: ""
|
||||
*CashDrawer1PulseOn 10XMS/32mS: "<</cupsInteger2 16>>setpagedevice"
|
||||
*CashDrawer1PulseOn 20XMS/64mS: "<</cupsInteger2 32>>setpagedevice"
|
||||
*CashDrawer1PulseOn 30XMS/96mS: "<</cupsInteger2 48>>setpagedevice"
|
||||
*CashDrawer1PulseOn 40XMS/128mS: "<</cupsInteger2 64>>setpagedevice"
|
||||
*CashDrawer1PulseOn 50XMS/160mS: "<</cupsInteger2 80>>setpagedevice"
|
||||
*CashDrawer1PulseOn 60XMS/192mS: "<</cupsInteger2 96>>setpagedevice"
|
||||
*CashDrawer1PulseOn 70XMS/224mS: "<</cupsInteger2 112>>setpagedevice"
|
||||
*CashDrawer1PulseOn 80XMS/256mS: "<</cupsInteger2 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1PulseOn
|
||||
*OpenUI *CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer1PulseOff
|
||||
*DefaultCashDrawer1PulseOff: 50XMS
|
||||
*CashDrawer1PulseOff None/None: ""
|
||||
*CashDrawer1PulseOff 10XMS/32mS: "<</cupsInteger3 16>>setpagedevice"
|
||||
*CashDrawer1PulseOff 20XMS/64mS: "<</cupsInteger3 32>>setpagedevice"
|
||||
*CashDrawer1PulseOff 30XMS/96mS: "<</cupsInteger3 48>>setpagedevice"
|
||||
*CashDrawer1PulseOff 40XMS/128mS: "<</cupsInteger3 64>>setpagedevice"
|
||||
*CashDrawer1PulseOff 50XMS/160mS: "<</cupsInteger3 80>>setpagedevice"
|
||||
*CashDrawer1PulseOff 60XMS/192mS: "<</cupsInteger3 96>>setpagedevice"
|
||||
*CashDrawer1PulseOff 70XMS/224mS: "<</cupsInteger3 112>>setpagedevice"
|
||||
*CashDrawer1PulseOff 80XMS/256mS: "<</cupsInteger3 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer1PulseOff
|
||||
*OpenUI *CashDrawer2PulseOn/Cash Drawer 2 pulse ON time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer2PulseOn
|
||||
*DefaultCashDrawer2PulseOn: 40XMS
|
||||
*CashDrawer2PulseOn None/None: ""
|
||||
*CashDrawer2PulseOn 10XMS/32mS: "<</cupsInteger4 16>>setpagedevice"
|
||||
*CashDrawer2PulseOn 20XMS/64mS: "<</cupsInteger4 32>>setpagedevice"
|
||||
*CashDrawer2PulseOn 30XMS/96mS: "<</cupsInteger4 48>>setpagedevice"
|
||||
*CashDrawer2PulseOn 40XMS/128mS: "<</cupsInteger4 64>>setpagedevice"
|
||||
*CashDrawer2PulseOn 50XMS/160mS: "<</cupsInteger4 80>>setpagedevice"
|
||||
*CashDrawer2PulseOn 60XMS/192mS: "<</cupsInteger4 96>>setpagedevice"
|
||||
*CashDrawer2PulseOn 70XMS/224mS: "<</cupsInteger4 112>>setpagedevice"
|
||||
*CashDrawer2PulseOn 80XMS/256mS: "<</cupsInteger4 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2PulseOn
|
||||
*OpenUI *CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time: PickOne
|
||||
*OrderDependency: 9 DocumentSetup *CashDrawer2PulseOff
|
||||
*DefaultCashDrawer2PulseOff: 50XMS
|
||||
*CashDrawer2PulseOff None/None: ""
|
||||
*CashDrawer2PulseOff 10XMS/32mS: "<</cupsInteger5 16>>setpagedevice"
|
||||
*CashDrawer2PulseOff 20XMS/64mS: "<</cupsInteger5 32>>setpagedevice"
|
||||
*CashDrawer2PulseOff 30XMS/96mS: "<</cupsInteger5 48>>setpagedevice"
|
||||
*CashDrawer2PulseOff 40XMS/128mS: "<</cupsInteger5 64>>setpagedevice"
|
||||
*CashDrawer2PulseOff 50XMS/160mS: "<</cupsInteger5 80>>setpagedevice"
|
||||
*CashDrawer2PulseOff 60XMS/192mS: "<</cupsInteger5 96>>setpagedevice"
|
||||
*CashDrawer2PulseOff 70XMS/224mS: "<</cupsInteger5 112>>setpagedevice"
|
||||
*CashDrawer2PulseOff 80XMS/256mS: "<</cupsInteger5 128>>setpagedevice"
|
||||
*CloseUI: *CashDrawer2PulseOff
|
||||
*OpenUI *Resolution/Resolution: PickOne
|
||||
*OrderDependency: 10 AnySetup *Resolution
|
||||
*DefaultResolution: 203x203dpi
|
||||
*Resolution 203x203dpi/203 DPI Grayscale: "<</HWResolution[203 203]/cupsColorSpace 3>>setpagedevice"
|
||||
*CloseUI: *Resolution
|
||||
*CloseGroup: *CashDrawerTune
|
||||
*DefaultFont: Courier
|
||||
*% End of zj80.ppd, 10245 bytes.
|
@ -0,0 +1,216 @@
|
||||
// CUPS PPD Compiler CUPS v2.1.3
|
||||
// (Don't edit .ppd directly, edit this file instead, then use
|
||||
// ppdc zj-58.drv to generate zj58.ppd)
|
||||
|
||||
// common for all thermal printers
|
||||
Version "1.2"
|
||||
DriverType custom
|
||||
ManualCopies Yes
|
||||
Throughput 1
|
||||
Attribute "PSVersion" "" "(3010.000) 550"
|
||||
Attribute "LanguageLevel" "" "3"
|
||||
Attribute "DefaultColorSpace" "" "Gray"
|
||||
Attribute "FileSystem" "" "False"
|
||||
Attribute "LandscapeOrientation" "" "Plus90"
|
||||
Attribute "TTRasterizer" "" "Type42"
|
||||
Attribute "VariablePaperSize" "" "True"
|
||||
Filter "application/vnd.cups-raster 100 rastertozj"
|
||||
ColorDevice False
|
||||
VariablePaperSize Yes
|
||||
|
||||
// cutter
|
||||
Option "CutMedia/Cut Media" PickOne AnySetup 10
|
||||
*Choice "None/No cutting" "<</CutMedia 0>>setpagedevice"
|
||||
Choice "EndOfPage/Cut at every page" "<</CutMedia 4>>setpagedevice"
|
||||
Choice "EndOfJob/Cut at every job" "<</CutMedia 2>>setpagedevice"
|
||||
|
||||
Group "BlankGroup/Blank Options"
|
||||
Option "FeedDist/Feed distance" PickOne AnySetup 10
|
||||
Choice "0feed3mm/3mm" "<</AdvanceDistance 24>>setpagedevice"
|
||||
Choice "1feed6mm/6mm" "<</AdvanceDistance 48>>setpagedevice"
|
||||
*Choice "2feed9mm/9mm" "<</AdvanceDistance 72>>setpagedevice"
|
||||
Choice "3feed12mm/12mm" "<</AdvanceDistance 96>>setpagedevice"
|
||||
Choice "4feed15mm/15mm" "<</AdvanceDistance 120>>setpagedevice"
|
||||
Choice "5feed18mm/18mm" "<</AdvanceDistance 144>>setpagedevice"
|
||||
Choice "6feed21mm/21mm" "<</AdvanceDistance 168>>setpagedevice"
|
||||
Choice "7feed24mm/24mm" "<</AdvanceDistance 192>>setpagedevice"
|
||||
Choice "8feed27mm/27mm" "<</AdvanceDistance 216>>setpagedevice"
|
||||
Choice "9feed30mm/30mm" "<</AdvanceDistance 240>>setpagedevice"
|
||||
Choice "10feed33mm/33mm" "<</AdvanceDistance 264>>setpagedevice"
|
||||
Choice "11feed36mm/36mm" "<</AdvanceDistance 288>>setpagedevice"
|
||||
Choice "12feed39mm/39mm" "<</AdvanceDistance 312>>setpagedevice"
|
||||
Choice "13feed42mm/42mm" "<</AdvanceDistance 336>>setpagedevice"
|
||||
Choice "14feed45mm/45mm" "<</AdvanceDistance 360>>setpagedevice"
|
||||
|
||||
Option "FeedWhere/When to feed" PickOne AnySetup 10
|
||||
Choice "None/Never" ""
|
||||
Choice "AfterPage/After each page" "<</AdvanceMedia 4>>setpagedevice"
|
||||
*Choice "AfterJob/After whole printing" "<</AdvanceMedia 2>>setpagedevice"
|
||||
|
||||
Option "BlankSpace/Blank space at page's end" Boolean AnySetup 10
|
||||
Choice "True/Print" "<</cupsInteger6 1>>setpagedevice"
|
||||
*Choice "False/None" "<</cupsInteger6 0>>setpagedevice"
|
||||
|
||||
Group "*CashDrawerGroup/Cash Drawer Control"
|
||||
Option "CashDrawer1Setting/Cash Drawer 1" PickOne DocumentSetup 10
|
||||
*Choice "None/None" "<</cupsInteger0 0>>setpagedevice"
|
||||
Choice "1BeforePrinting/Before Printing" "<</cupsInteger0 1>>setpagedevice"
|
||||
Choice "1AfterPrinting/After Printing" "<</cupsInteger0 2>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2Setting/Cash Drawer 2" PickOne DocumentSetup 10
|
||||
*Choice "None/None" "<</cupsInteger1 0>>setpagedevice"
|
||||
Choice "2BeforePrinting/Before Printing" "<</cupsInteger1 1>>setpagedevice"
|
||||
Choice "2AfterPrinting/After Printing" "<</cupsInteger1 2>>setpagedevice"
|
||||
|
||||
Group "*CashDrawerTune/Cash Drawer Tune"
|
||||
Option "CashDrawer1PulseOn/Cash Drawer 1 pulse ON time" PickOne DocumentSetup 9
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger2 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger2 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger2 48>>setpagedevice"
|
||||
*Choice "40XMS/128mS" "<</cupsInteger2 64>>setpagedevice"
|
||||
Choice "50XMS/160mS" "<</cupsInteger2 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger2 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger2 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger2 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time" PickOne DocumentSetup 9
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger3 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger3 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger3 48>>setpagedevice"
|
||||
Choice "40XMS/128mS" "<</cupsInteger3 64>>setpagedevice"
|
||||
*Choice "50XMS/160mS" "<</cupsInteger3 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger3 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger3 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger3 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2PulseOn/Cash Drawer 2 pulse ON time" PickOne DocumentSetup 9
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger4 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger4 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger4 48>>setpagedevice"
|
||||
*Choice "40XMS/128mS" "<</cupsInteger4 64>>setpagedevice"
|
||||
Choice "50XMS/160mS" "<</cupsInteger4 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger4 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger4 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger4 128>>setpagedevice"
|
||||
|
||||
Option "CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time" PickOne DocumentSetup 9
|
||||
Choice "None/None" ""
|
||||
Choice "10XMS/32mS" "<</cupsInteger5 16>>setpagedevice"
|
||||
Choice "20XMS/64mS" "<</cupsInteger5 32>>setpagedevice"
|
||||
Choice "30XMS/96mS" "<</cupsInteger5 48>>setpagedevice"
|
||||
Choice "40XMS/128mS" "<</cupsInteger5 64>>setpagedevice"
|
||||
*Choice "50XMS/160mS" "<</cupsInteger5 80>>setpagedevice"
|
||||
Choice "60XMS/192mS" "<</cupsInteger5 96>>setpagedevice"
|
||||
Choice "70XMS/224mS" "<</cupsInteger5 112>>setpagedevice"
|
||||
Choice "80XMS/256mS" "<</cupsInteger5 128>>setpagedevice"
|
||||
|
||||
|
||||
Installable "OptionCash1/Cash drawer 1"
|
||||
UIConstraints "*CashDrawer1Setting *OptionCash1 False"
|
||||
// UIConstraints "*CashDrawer1PulseOn *OptionCash1 False"
|
||||
// UIConstraints "*CashDrawer1PulseOff *OptionCash1 False"
|
||||
|
||||
// Attribute cupsUIConstraints Cash1Off "*OptionCash1 False *CashDrawer1Setting"
|
||||
// Attribute cupsUIConstraints Cash1Off "*OptionCash1 False *CashDrawer1PulseOn"
|
||||
// Attribute cupsUIConstraints Cash1Off "*OptionCash1 False *CashDrawer1PulseOff"
|
||||
// Attribute cupsUIResolver Cash1Off "*CashDrawer1Setting None *CashDrawer1PulseOn None *CashDrawer1PulseOff None"
|
||||
// Attribute cupsUIResolver Cash1Off "*CashDrawer1PulseOn None"
|
||||
// Attribute cupsUIResolver Cash1Off "*CashDrawer1PulseOff None"
|
||||
|
||||
Installable "OptionCash2/Cash drawer 2"
|
||||
UIConstraints "*CashDrawer2Setting *OptionCash2 False"
|
||||
// UIConstraints "*CashDrawer2PulseOn *OptionCash2 False"
|
||||
// UIConstraints "*CashDrawer2PulseOff *OptionCash2 False"
|
||||
|
||||
Installable "OptionCutter/Cutter"
|
||||
UIConstraints "*CutMedia *OptionCutter False"
|
||||
|
||||
// Attribute cupsUIConstraints CutterOff "*OptionCutter False *CutMedia"
|
||||
// Attribute cupsUIResolver CutterOff "*CutMedia None"
|
||||
|
||||
|
||||
Option "Resolution/Resolution" PickOne AnySetup 10
|
||||
*Choice "203x203dpi/203 DPI Grayscale" "<</HWResolution[203 203]/cupsColorSpace 3>>setpagedevice"
|
||||
|
||||
HWMargins 14 0 14 0
|
||||
|
||||
// 58mm printers
|
||||
{
|
||||
#define POINTS 164
|
||||
#define PIXELS 384
|
||||
|
||||
// model num is used by filter to determine raster width. 384 for 48mm, 560 for 70mm
|
||||
ModelNumber $PIXELS
|
||||
MinSize $POINTS 56
|
||||
MaxSize $POINTS 9286
|
||||
|
||||
*CustomMedia "X48MMY65MM/58mm x 65mm" $POINTS 182 14 0 14 0 "<</PageSize[$POINTS 182]>>setpagedevice" "<</PageSize[$POINTS 182]>>setpagedevice"
|
||||
CustomMedia "X48MMY105MM/58mm x 105mm" $POINTS 298 14 0 14 0 "<</PageSize[$POINTS 298]>>setpagedevice" "<</PageSize[$POINTS 298]>>setpagedevice"
|
||||
CustomMedia "X48MMY210MM/58mm x 210mm" $POINTS 595 14 0 14 0 "<</PageSize[$POINTS 595]>>setpagedevice" "<</PageSize[$POINTS 595]>>setpagedevice"
|
||||
CustomMedia "X48MMY297MM/58mm x 297mm" $POINTS 842 14 0 14 0 "<</PageSize[$POINTS 842]>>setpagedevice" "<</PageSize[$POINTS 842]>>setpagedevice"
|
||||
CustomMedia "X48MMY3276MM/58mm x 3276mm" $POINTS 9286 14 0 14 0 "<</PageSize[$POINTS 9286]>>setpagedevice" "<</PageSize[$POINTS 9286]>>setpagedevice"
|
||||
|
||||
// Zijiang ZJ-58
|
||||
{
|
||||
Manufacturer "Zijiang"
|
||||
ModelName "ZJ-58"
|
||||
PCFileName "zj58.ppd"
|
||||
Attribute "NickName" "" "Zijiang ZJ-58"
|
||||
Attribute "ShortNickName" "" "ZJ-58"
|
||||
Attribute "Product" "" "(zj-58)"
|
||||
Attribute "1284DeviceID" "" "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
|
||||
}
|
||||
|
||||
// XPrinter XP-58
|
||||
{
|
||||
Manufacturer "J-speed"
|
||||
ModelName "XP-58"
|
||||
PCFileName "xp58.ppd"
|
||||
Attribute "NickName" "" "J-speed XP-58"
|
||||
Attribute "ShortNickName" "" "XP-58"
|
||||
Attribute "Product" "" "(xp-58)"
|
||||
Attribute "1284DeviceID" "" "MFG:J-speed;CMD:Xprinter;MDL:XP-58;CLS:PRINTER;"
|
||||
}
|
||||
}
|
||||
|
||||
// 80mm printers
|
||||
{
|
||||
#define POINTS 226
|
||||
#define PIXELS 560
|
||||
// model num is used by filter to determine raster width. 58 -> 0x180, 80 -> 0x240.
|
||||
ModelNumber $PIXELS
|
||||
MinSize $POINTS 56
|
||||
MaxSize $POINTS 9286
|
||||
|
||||
*CustomMedia "X70MMY65MM/80mm x 65mm" $POINTS 182 14 0 14 0 "<</PageSize[$POINTS 182]>>setpagedevice" "<</PageSize[$POINTS 182]>>setpagedevice"
|
||||
CustomMedia "X70MMY105MM/80mm x 105mm" $POINTS 298 14 0 14 0 "<</PageSize[$POINTS 298]>>setpagedevice" "<</PageSize[$POINTS 298]>>setpagedevice"
|
||||
CustomMedia "X70MMY210MM/80mm x 210mm" $POINTS 595 14 0 14 0 "<</PageSize[$POINTS 595]>>setpagedevice" "<</PageSize[$POINTS 595]>>setpagedevice"
|
||||
CustomMedia "X70MMY297MM/80mm x 297mm" $POINTS 842 14 0 14 0 "<</PageSize[$POINTS 842]>>setpagedevice" "<</PageSize[$POINTS 842]>>setpagedevice"
|
||||
CustomMedia "X70MMY3276MM/80mm x 3276mm" $POINTS 9286 14 0 14 0 "<</PageSize[$POINTS 9286]>>setpagedevice" "<</PageSize[$POINTS 9286]>>setpagedevice"
|
||||
|
||||
// Zijiang ZJ-80
|
||||
{
|
||||
Manufacturer "Zijiang"
|
||||
ModelName "ZJ-80"
|
||||
PCFileName "zj80.ppd"
|
||||
Attribute "NickName" "" "Zijiang ZJ-80"
|
||||
Attribute "ShortNickName" "" "ZJ-80"
|
||||
Attribute "Product" "" "(zj-80)"
|
||||
Attribute "1284DeviceID" "" "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-80;CLS:PRINTER;"
|
||||
}
|
||||
|
||||
// Epson TM-T20
|
||||
{
|
||||
Manufacturer "Epson"
|
||||
ModelName "TM-T20"
|
||||
PCFileName "tm20.ppd"
|
||||
Attribute "NickName" "" "Epson TM-T20"
|
||||
Attribute "ShortNickName" "" "TM-T20"
|
||||
Attribute "Product" "" "(TM-T20)"
|
||||
Attribute "1MFG:Epson;CMD:Epson;MDL:TMT20;CLS:PRINTER;"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue