Constructs a tags object.
Returns true if the given tag is defined.
Method for recursive parsing of tags.
Helper method for simple 0/1 switches.
Prints plain text and strips out leading and trailing whitespaces.
Prints plain text.
Sets text to be printed bold.
Sets text to be printed double striked.
Sets text to be printed inverted.
Sets text to be printed underlined.
Sets Upside Down Printing.
Use this tag to use the second color (if support by your printer).
Prints a QR code. Possible attributes:
Prints a barcode to the printer. See Printer::ESCPOS::Manual for a list of possible options. The barcode content should be set as the tag content like <barcode>content</barcode>. All other options must be set as attributes.
Can print text with special styling.
Moves to the next line.
Moves the cursor to next horizontal tab position.
Print image from named file.
Sets the print area width.
Sets horizontal tab positions for tab stops.
Choose font a, b or c.
Set justification to left, right or center.
Set font height.
Set font width.
Set character spacing.
Set line spacing.
Reverts to default line spacing for the printer.
Sets the distance from the beginning of the line to the position at which characters are to be printed.
Sets the left margin for printing.
Prints bit image stored in non-volatile (NV) memory of the printer.
Prints bit image stored in volatile memory of the printer.
To install XML::Printer::ESCPOS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Printer::ESCPOS
CPAN shell
perl -MCPAN -e shell install XML::Printer::ESCPOS
For more information on module installation, please visit the detailed CPAN module installation guide.