PIOS Printer API Features
Description
Peripheral Input/Output Services (PIOS) Printer API provides support for several features. These features vary depending on the printer make and model. The following tables provide descriptions of these features:
Printable Objects
Printable Object |
Description |
Bitmap Image |
Images in bitmap format |
PCX Image |
Images in PCX format |
Scalable Fonts |
Fonts based on Vector graphics and scale without degradation |
Bitmap Fonts |
Fonts made of character images and may present some degradation when scaled up |
Barcode |
Barcode printing |
Printer Features
Printer Feature |
Description |
Clear Error |
Clears error condition from the printer |
Advance Forward |
Advances the paper forward |
Advance Backward |
Retracts the paper |
Dispose |
Deletes commands sent to the printer |
Get Status |
Queries the printer status |
Page measurements |
Provides page length and width in points |
Printer Head width |
Obtains the printer head width (in points) |
Text metrics |
Obtains the text dimension (in points) based on the font |
Barcode metrics |
Obtains the barcode dimension (in points) |
Image metrics |
Obtains the image dimension (in points) |
Load Image |
Uploads an image into the printer’s memory |
Delete Image |
Deletes an image from the printer’s memory |
Get DPI (Dot per inch) |
Returns the printer’s resolution |
Transport Configuration |
Modifies and sets the default transport options (Serial, Bluetooth, and so on) |
Font Configuration |
Configures (add, delete, change) font information |
Send Raw Data |
Sends raw bytes (information) directly to the printer without intervention from the API
Use this feature with caution. The printer can exhibit unexpected behavior if invalid data is sent to it. |
Graphic Mode Printing
Graphic Mode Feature |
Description |
Barcode Rotation |
Rotates a barcode in 90º increments (90º, 180º, and 270º) |
Image Rotation |
Rotates an image in 90º increments (90º, 180º, and 270º) |
Text Rotation |
Rotates text in 90º increments (90º, 180º, and 270º) |
Line thickness |
Sets the line thickness (in points) |
Draw Text |
Prints text |
Page measurements |
Provides page length and width in points (for non-continuous paper) |
Draw Barcode |
Prints barcodes |
Draw Line |
Prints lines |
Draw Rectangle |
Prints rectangles |
Draw Image |
Prints images |
Line Mode Printing
Line Mode Feature |
Description |
Barcode Alignment |
Aligns a barcode in a line (center, right, left) |
Image Alignment |
Aligns an image in a line (center, right, left) |
Text Alignment |
Aligns text in a line (center, right, left) |
Print Text |
Prints text in a line |
Print Barcode |
Prints barcodes in a line |
Print Image |
Prints images in a line |
Set Line Spacing |
Defines the space in points between two lines (in points) |
Symbology
Symbology |
Description |
Codabar |
Supports Codabar barcode symbology |
Code 39 |
Supports Code 39 barcode symbology |
Code 128 |
Supports Code 128 barcode symbology |
EAN-8 |
Supports EAN-8 barcode symbology |
EAN-13 |
Supports EAN-13 barcode symbology |
Interleaved 2 of 5 |
Supports Interleaved 2 of 5 barcode symbology |
PDF417 |
Supports PDF-417 (Portable Data Format) 2D barcode symbology |
UCC/EAN-128 |
Supports UCC/EAN barcode symbology |
UPC-A |
Supports Universal Product Code (UPC) barcode symbology |