-
-
06 May 2017 06:38:14 UTC
- Distribution: Printer-ESCPOS
- Module version: 1.006
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (2)
- Testers (259 / 0 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (43.32KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 2 contributors-
Dominic Sonntag
- Shantanu Bhadoria <shantanu att cpan dott org>
NAME
Printer::ESCPOS::Roles::Profile - Role for all Printer Profiles for Printer::ESCPOS
VERSION
version 1.006
ATTRIBUTES
driver
Stores the connection object from the Printer::ESCPOS::Connections::*. In any normal use case you must not modify this attribute.
usePrintMode
Use Print mode to set font, underline, double width, double height and emphasized if false uses the individual command ESC M n for font "c" ESC M is forced irrespective of this flag
fontStyle
Set ESC-POS Font pass "a" "b" or "c". Note "c" is not supported across all printers.
emphasizedStatus
Set/unset emphasized property
heightStatus
set unset double height property
widthStatus
set unset double width property
underlineStatus
Set/unset underline property
METHODS
text
Sends raw text to the local buffer ready for sending this to the printer. This would contain a set of strings to print or ESCPOS Codes.
$device->printer->text("Hello World\n");
print
prints data in the buffer
read
Reads n bytes from the printer. This function is used internally to get printer statuses when supported.
AUTHOR
Shantanu Bhadoria <shantanu@cpan.org> https://www.shantanubhadoria.com
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Shantanu Bhadoria.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Printer::ESCPOS, copy and paste the appropriate command in to your terminal.
cpanm Printer::ESCPOS
perl -MCPAN -e shell install Printer::ESCPOS
For more information on module installation, please visit the detailed CPAN module installation guide.