Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #24629

Re: unsupported thermal receipt printer

From asdf <asdf@nospam.com>
Newsgroups comp.os.linux.misc
Subject Re: unsupported thermal receipt printer
Date 2018-10-01 22:51 +0000
Organization Aioe.org NNTP Server
Message-ID <pou8eb$1vto$1@gioia.aioe.org> (permalink)
References <pop1m0nkr@gioia.aioe.org> <f2a500459f94eb1e4ed2d4dfc73299ac@dizum.com> <por64c$v0j$1@gioia.aioe.org> <posek1$92j$1@dont-email.me>

Show all headers | View raw


On Mon, 01 Oct 2018 07:25:05 +0100, The Natural Philosopher wrote:

> I have hand edited PPDs.
> If you are really that keen...
> 
> https://www.cups.org/doc/spec-ppd.html#SYNTAX
> 
> Look at PageSize directive..

Thanks to all, I'm getting a bit closer to a working .ppd
although still far from perfect. Never edited one before:)
All test pages look fine, but are now like stretched to 200% or more
in height and about 50% in width. Another test using a Glabels template
produced similar results. Attached is the .ppd I edited, the only one
not producing a garbled (random ascii chars) print, which is /usr/share/
ppd/Epson/tm-slip-rastertotmu.ppd


*PPD-Adobe: "4.3"
*% Copyright (C) Seiko Epson Corporation 2013-2015. All rights reserved.
*%
*% PPD file for TM/BA Series Printer Driver.

*FormatVersion: "4.3"
*FileVersion: "2.0"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "EPTMSLIP.PPD"
*Manufacturer: "EPSON"
*Product: "(SlipPrinter)"
*ModelName:"EPSON TM Slip"
*ShortNickName:"TM Slip"
*NickName: "EPSON TM Slip (rastertotmu)"
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*VariablePaperSize: True
*TTRasterizer: Type42
*cupsVersion: 1.2
*cupsManualCopies: True
*cupsModelNumber: 102
*cupsFilter: "application/vnd.cups-raster 0 rastertotmu"

*OpenGroup: General/General

*%Page size settings.
*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize:RP58x297
*PageSize RP58x297/Roll paper 58 x 297 mm: "<</PageSize[144.0 841.8]/
ImagingBBox null>>setpagedevice"
*PageSize CS230x297/Cut sheet 230 x 297 mm: "<</PageSize[243.0 769.0]/
ImagingBBox null>>setpagedevice"
*PageSize CS182x257/Cut sheet 182 x 257 mm: "<</PageSize[179.1 709.0]/
ImagingBBox null>>setpagedevice"
*PageSize A4/A4: "<</PageSize[243.0 769.0]/ImagingBBox 
null>>setpagedevice"
*PageSize LT/LT: "<</PageSize[243.0 719.0]/ImagingBBox 
null>>setpagedevice"
*CloseUI: *PageSize

*OpenUI *PageRegion: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion:RP58x297
*PageRegion RP58x297/Roll paper 58 x 297 mm: "<</PageSize[144.0 841.8]/
ImagingBBox null>>setpagedevice"
*PageRegion CS230x297/Cut sheet 230 x 297 mm: "<</PageSize[243.0 769.0]/
ImagingBBox null>>setpagedevice"
*PageRegion CS182x257/Cut sheet 182 x 257 mm: "<</PageSize[179.1 709.0]/
ImagingBBox null>>setpagedevice"
*PageRegion A4/A4: "<</PageSize[243.0 769.0]/ImagingBBox 
null>>setpagedevice"
*PageRegion LT/LT: "<</PageSize[243.0 719.0]/ImagingBBox 
null>>setpagedevice"
*CloseUI: *PageRegion

*DefaultImageableArea: RP58x297
*ImageableArea RP58x297/Roll paper 58 x 297 mm: "0.0 0.0 144.0 841.8"
*ImageableArea CS230x297/Cut sheet 230 x 297 mm: "0.0 0.0 243.0 769.0"
*ImageableArea CS182x257/Cut sheet 182 x 257 mm: "0.0 0.0 179.1 709.0"
*ImageableArea A4/A4: "0.0 0.0 243.0 769.0"
*ImageableArea LT/LT: "0.0 0.0 243.0 719.0"

*DefaultPaperDimension: RP58x297
*PaperDimension RP58x297/Roll paper 58 x 297 mm: "144.0 841.8"
*PaperDimension CS230x297/Cut sheet 230 x 297 mm: "243.0 769.0"
*PaperDimension CS182x257/Cut sheet 182 x 257 mm: "179.1 709.0"
*PaperDimension A4/A4: "243.0 769.0"
*PaperDimension LT/LT: "243.0 719.0"

*%Custom page size settings.
*MaxMediaWidth: "243.0"
*MaxMediaHeight: "769.0"
*NonUIOrderDependency: 100 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop <</PageSize [ 5 -2 roll ]/ImagingBBox 
null>>setpagedevice"
*ParamCustomPageSize Width: 1 points 162.7 243.0
*ParamCustomPageSize Height: 2 points 364.5 769.0
*ParamCustomPageSize WidthOffset:  3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation:  5 int 0 0

*%Feed direction settings.
*TmxReverseFeedDirection: False

*%Paper reduction settings.
*OpenUI *TmxPaperReduction/Paper Reduction: PickOne
*OrderDependency: 20 AnySetup *TmxPaperReduction
*DefaultTmxPaperReduction: Off
*TmxPaperReduction Off/None: ""
*TmxPaperReduction Top/Top margin: ""
*TmxPaperReduction Bottom/Bottom margin: ""
*TmxPaperReduction Both/Top & Bottom margins: ""
*CloseUI: *TmxPaperReduction

*%Paper source settings.
*OpenUI *TmxPaperSource/Paper Source: PickOne
*OrderDependency: 10 AnySetup *TmxPaperSource
*DefaultTmxPaperSource: SheetEject
*TmxPaperSource SheetEject/Cut sheet [Eject]: ""
*TmxPaperSource SheetNoEject/Cut sheet [NoEject]: ""
*CloseUI: *TmxPaperSource

*%Paper eject direction settings.
*OpenUI *TmxEjectDirection/Eject Direction: PickOne
*OrderDependency: 11 AnySetup *TmxEjectDirection
*DefaultTmxEjectDirection: FeedDirection
*TmxEjectDirection FeedDirection/Feed direction: ""
*TmxEjectDirection ReverseFeedDirection/Reverse feed direction: ""
*CloseUI: *TmxEjectDirection

*CloseGroup: General

*OpenGroup: PrinterControl/Printer Setting

*%Printer type
*OpenUI *TmxPrinterType/Printer Type: PickOne
*OrderDependency: 1 AnySetup *TmxPrinterType
*DefaultTmxPrinterType: ImpactSlip
*TmxPrinterType ImpactSlip/Impact slip: ""
*% TmxPrinterType ImpactSlipv0/Impact slip v0: ""
*% TmxPrinterType InkjetSlip/Inkjet slip: ""
*% TmxPrinterType InkjetSlipv0/Inkjet slip v0: ""
*CloseUI: *TmxPrinterType

*%Resolution settings.
*OpenUI *Resolution/Resolution: PickOne
*OrderDependency: 5 AnySetup *Resolution
*DefaultResolution: 203x203dpi
*Resolution 203x203dpi/203 x 203 dpi: "<</HWResolution[203 203]/
cupsRowCount 24>>setpagedevice"
*% Resolution 80x60dpi/80 x 60 dpi: "<</HWResolution[80 60]/cupsRowCount 
8>>setpagedevice"
*Resolution 80x72dpi/80 x 72 dpi: "<</HWResolution[80 72]/cupsRowCount 
8>>setpagedevice"
*% Resolution 160x60dpi/160 x 60 dpi: "<</HWResolution[160 60]/
cupsRowCount 8>>setpagedevice"
*% Resolution 160x72dpi/160 x 72 dpi: "<</HWResolution[160 72]/
cupsRowCount 8>>setpagedevice"
*% Resolution 160x120dpi/160 x 120 dpi: "<</HWResolution[160 120]/
cupsRowCount 8>>setpagedevice"
*Resolution 160x144dpi/160 x 144 dpi: "<</HWResolution[160 144]/
cupsRowCount 8>>setpagedevice"
*Resolution 144x130dpi/[90%/160x144dpi]: "<</HWResolution[144 130]/
cupsRowCount 8>>setpagedevice"
*Resolution 128x115dpi/[80%/160x144dpi]: "<</HWResolution[128 115]/
cupsRowCount 8>>setpagedevice"
*Resolution 112x101dpi/[70%/160x144dpi]: "<</HWResolution[112 101]/
cupsRowCount 8>>setpagedevice"
*Resolution 96x86dpi/[60%/160x144dpi]: "<</HWResolution[96 86]/
cupsRowCount 8>>setpagedevice"
*Resolution 82x73dpi/[50%/160x144dpi]: "<</HWResolution[82 73]/
cupsRowCount 8>>setpagedevice"
*Resolution 72x65dpi/[45%(A4 to 85mm)/160x144dpi]: "<</HWResolution[72 
65]/cupsRowCount 8>>setpagedevice"
*CloseUI: *Resolution

*%2pass print settings.
*% Tmx2PassPrint 80x60dpi: 0
*Tmx2PassPrint 203x203dpi: 0
*Tmx2PassPrint 80x72dpi: 0
*% Tmx2PassPrint 160x60dpi: 0
*% Tmx2PassPrint 160x72dpi: 0
*% Tmx2PassPrint 160x120dpi: 0
*Tmx2PassPrint 160x144dpi: 1
*Tmx2PassPrint 144x130dpi: 1
*Tmx2PassPrint 128x115dpi: 1
*Tmx2PassPrint 112x101dpi: 1
*Tmx2PassPrint 96x86dpi: 1
*Tmx2PassPrint 82x73dpi: 1
*Tmx2PassPrint 72x65dpi: 1

*%Pitch of feed settings.
*OpenUI *TmxFeedPitch/Pitch of Feed: PickOne
*OrderDependency: 7 AnySetup *TmxFeedPitch
*DefaultTmxFeedPitch: 203.2
*TmxFeedPitch 203.2/203 dpi: ""
*% TmxFeedPitch 60.0/60 dpi: ""
*% TmxFeedPitch 72.0/72 dpi: ""
*% TmxFeedPitch 120.0/120 dpi: ""
*TmxFeedPitch 144.0/144 dpi: ""
*CloseUI: *TmxFeedPitch

*%Used command set version.
*% C1:ESC *, C2:GS 8 L (fn=113), R1:GS v 0, R2:GS 8 L (fn=112), R2-:GS 
( L (fn=112)
*TmxCommandSetVersion ImpactSlip: "C1"
*% TmxCommandSetVersion ImpactSlipv0: "R1"
*% TmxCommandSetVersion InkjetSlip: "C2"
*% TmxCommandSetVersion InkjetSlipv0: "R1"

*% Maximum band image width (dots)
*OpenUI *TmxMaxBandWidth/Maximum Band Width: PickOne
*OrderDependency: 7 AnySetup *TmxMaxBandWidth
*DefaultTmxMaxBandWidth: 540
*TmxMaxBandWidth 400/400: ""
*TmxMaxBandWidth 540/540: ""
*% TmxMaxBandWidth 744/744: ""
*% TmxMaxBandWidth 800/800: ""
*% TmxMaxBandWidth 960/960: ""
*% TmxMaxBandWidth 1430/1430: ""
*CloseUI: *TmxMaxBandWidth

*%Line number of band.
*OpenUI *TmxBandLines/Band Lines: PickOne
*OrderDependency: 7 AnySetup *TmxBandLines
*DefaultTmxBandLines: 8
*TmxBandLines 8/8: ""
*% TmxBandLines 24/24: ""
*% TmxBandLines 256/256: ""
*CloseUI: *TmxBandLines

*%Bidirectional printing settings.
*OpenUI *TmxBidirectionalPrinting/Printing: PickOne
*OrderDependency: 10 AnySetup *TmxBidirectionalPrinting
*DefaultTmxBidirectionalPrinting: Bidirectional
*TmxBidirectionalPrinting Bidirectional/Bidirectional: ""
*TmxBidirectionalPrinting Unidirectional/Unidirectional: ""
*CloseUI: *TmxBidirectionalPrinting

*CloseGroup: PrinterControl

*OpenGroup: CashDrawerControl/Cash Drawer Control

*% Drawer settings
*OpenUI *TmxDrawerControl/Cash Drawer: PickOne
*OrderDependency: 20 AnySetup *TmxDrawerControl
*DefaultTmxDrawerControl: None
*TmxDrawerControl None/Don't open drawers: ""
*TmxDrawerControl Drawer#1,Before/Open drawer #1 BEFORE printing: ""
*TmxDrawerControl Drawer#1,After/Open drawer #1 AFTER printing: ""
*TmxDrawerControl Drawer#2,Before/Open drawer #2 BEFORE printing: ""
*TmxDrawerControl Drawer#2,After/Open drawer #2 AFTER printing: ""
*CloseUI: *TmxDrawerControl

*% Pulse width settings
*OpenUI *TmxPulseOnTime/Pulse On Time: PickOne
*OrderDependency: 20 AnySetup *TmxPulseOnTime
*DefaultTmxPulseOnTime: 20,10,100
*TmxPulseOnTime 20,10,100/20 msec: ""
*TmxPulseOnTime 40,20,100/40 msec: ""
*TmxPulseOnTime 60,30,120/60 msec: ""
*TmxPulseOnTime 80,40,160/80 msec: ""
*TmxPulseOnTime 100,50,200/100 msec: ""
*TmxPulseOnTime 120,60,240/120 msec: ""
*CloseUI: *TmxPulseOnTime

*CloseGroup: CashDrawerControl

*%Message defines.
*TmxMessage ParameterError: "Invalid parameter."

*% UIConstraints

*% NonUIConstraints

*% End

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: unsupported thermal receipt printer Nomen Nescio <nobody@dizum.com> - 2018-09-30 13:35 +0200
  Re: unsupported thermal receipt printer asdf <asdf@nospam.com> - 2018-09-30 18:54 +0000
    Re: unsupported thermal receipt printer Robert Heller <heller@deepsoft.com> - 2018-09-30 14:39 -0500
    Re: unsupported thermal receipt printer Andreas Kohlbach <ank@spamfence.net> - 2018-09-30 16:47 -0400
    Re: unsupported thermal receipt printer The Natural Philosopher <tnp@invalid.invalid> - 2018-10-01 07:25 +0100
      Re: unsupported thermal receipt printer asdf <asdf@nospam.com> - 2018-10-01 22:51 +0000

csiph-web