Uses of Record Class
io.github.chkrishnatej.rp3200.PrinterProfile
Packages that use PrinterProfile
Package
Description
Receipt printing for the TVS RP 3200 Lite (and other ESC/POS thermal printers) from a Java
server - typically a Spring Boot web application.
Text templates for receipts:
{{placeholders}} for data plus [markup] for
formatting, compiled once and rendered to ESC/POS bytes.-
Uses of PrinterProfile in io.github.chkrishnatej.rp3200
Fields in io.github.chkrishnatej.rp3200 declared as PrinterProfileModifier and TypeFieldDescriptionstatic final PrinterProfilePrinterProfile.RP3200_58MMTVS RP 3200 Lite with 58 mm paper: 32 characters per line, code page PC437, default replacements.static final PrinterProfilePrinterProfile.RP3200_80MMTVS RP 3200 Lite with 80 mm paper: 48 characters per line, code page PC437, default replacements.Methods in io.github.chkrishnatej.rp3200 that return PrinterProfileModifier and TypeMethodDescriptionEscPosBuilder.profile()Returns the profile this builder was created with.PrinterProfile.withCharsPerLine(int chars) Returns a copy with a different line width, e.g. 64 when the printer is set to the smaller Font B.PrinterProfile.withCodePage(int page, Charset cs) Returns a copy that uses another code page.PrinterProfile.withReplacement(String from, String to) Returns a copy with one extra (or overridden) text replacement, e.g.Constructors in io.github.chkrishnatej.rp3200 with parameters of type PrinterProfile -
Uses of PrinterProfile in io.github.chkrishnatej.rp3200.template
Methods in io.github.chkrishnatej.rp3200.template with parameters of type PrinterProfileModifier and TypeMethodDescriptionReceiptTemplate.preview(Object data, PrinterProfile profile) Returns a plain-text picture of what would be printed - ideal for logs and unit tests of templates without a printer.byte[]ReceiptTemplate.render(Object data, PrinterProfile profile) Renders the template to ESC/POS bytes ready to send to the printer (for example as anapplication/octet-streamresponse that the browser forwards to rp3200-agent).