Skip to content

Commit 1769473

Browse files
committed
filter: add a raster to ESC/POS filter
ESC/POS is a de facto standard for POS (Point Of Sale) terminal printers (eg, thermal receipt printers). This patch adds a very bare-bones implementation to print raster data on printers that implement this command set. It also includes support for cutting paper either at the end of a page or at the end of a job. Signed-off-by: Sergio Gómez <[email protected]>
1 parent 196a892 commit 1769473

File tree

2 files changed

+394
-0
lines changed

2 files changed

+394
-0
lines changed

Makefile.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ pkgfilter_SCRIPTS = $(genfilterscripts)
177177
pkgfilter_PROGRAMS += \
178178
pdftopdf \
179179
texttotext \
180+
rastertoescpos \
180181
rastertoescpx \
181182
rastertopclx \
182183
commandtoescpx \
@@ -512,6 +513,17 @@ pdftoraster_LDADD = \
512513
$(LIBPPD_LIBS) \
513514
$(CUPS_LIBS)
514515

516+
rastertoescpos_SOURCES = \
517+
filter/rastertoescpos.c
518+
rastertoescpos_CFLAGS = \
519+
$(CUPS_CFLAGS) \
520+
$(LIBCUPSFILTERS_CFLAGS) \
521+
$(LIBPPD_CFLAGS)
522+
rastertoescpos_LDADD = \
523+
$(CUPS_LIBS) \
524+
$(LIBCUPSFILTERS_LIBS) \
525+
$(LIBPPD_LIBS)
526+
515527
rastertoescpx_SOURCES = \
516528
filter/escp.h \
517529
filter/rastertoescpx.c

0 commit comments

Comments
 (0)