PPDs generated and installed, but now what? (Filter definitions)
peer at baden-online.de
peer at baden-online.de
Thu Jun 9 05:06:18 PDT 2005
In order to make a driver for the Seike Smart Label Printer Series, I managed to create a seiko-slp-<*>.drv file and to compile it to the different seiko-slp-<*>.ppd files, and I can install them in the cups system, then set paper sizes and other options just fine.
But now what?
The printer is neither PCL nor ESC/P, but some relatively simple custom format, the specification of which can be downloaded with the Smart SLP SDK from their web site, which I have.
Where do I find the interface specification which I need to create a filter for the low-level SLP printer language?
And hopefully some models I can base my filter on?
Since I do not really know C yet, I plan to make a python script first. It could accept raster image data via STDIN and produce the resulting slp language commands and data via STDOUT. But I need the specification of the interface which I did not find so far.
AFAIUnderstand, the interface seems to reside in these parts of the example (of the docs):
// Include ESC/P driver definitions
#include <escp.h>
// Specify that this driver uses the ESC/P driver...
DriverType escp
// Specify the driver options via the model number...
ModelNumber ($ESCP_ESCK $ESCP_EXT_UNITS $ESCP_EXT_MARGINS $ESCP_USB
$ESCP_PAGE_SIZE $ESCP_RASTER_ESCI)
Is this right? So how do I interface a command line tool with this?
And what about these "commandtoescpx" and "rastertoescpx": do I have to create both types?
I made the following statements in my .drv file:
// Driver Definition
DriverType custom
// Each filter provided by the driver...
Filter application/vnd.cups-raster 100 rastertoseikoslp
But now, how do I create the rastertoseikoslp filter?
The documentation in cupsddk-1.0/doc/cupsddk.html is not clear to me and seems to lack the oppropriate info. A hint to the info about the filter (and model filters) would be nice.
Thanks
Peer
More information about the cups-devel
mailing list