Skip to content

Commit

Permalink
filter: add a raster to ESC/POS filter
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
sergio-gdr committed Aug 27, 2024
1 parent 196a892 commit 1769473
Show file tree
Hide file tree
Showing 2 changed files with 394 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ pkgfilter_SCRIPTS = $(genfilterscripts)
pkgfilter_PROGRAMS += \
pdftopdf \
texttotext \
rastertoescpos \
rastertoescpx \
rastertopclx \
commandtoescpx \
Expand Down Expand Up @@ -512,6 +513,17 @@ pdftoraster_LDADD = \
$(LIBPPD_LIBS) \
$(CUPS_LIBS)

rastertoescpos_SOURCES = \
filter/rastertoescpos.c
rastertoescpos_CFLAGS = \
$(CUPS_CFLAGS) \
$(LIBCUPSFILTERS_CFLAGS) \
$(LIBPPD_CFLAGS)
rastertoescpos_LDADD = \
$(CUPS_LIBS) \
$(LIBCUPSFILTERS_LIBS) \
$(LIBPPD_LIBS)

rastertoescpx_SOURCES = \
filter/escp.h \
filter/rastertoescpx.c
Expand Down
Loading

0 comments on commit 1769473

Please sign in to comment.