PHCOM Print Markup Language

Travelmanager Team
May 15, 2026
3 min read
Travelmanager

PHCOM Print Markup Language

The PHCOM Print Markup Language is a specialized markup language for controlling ticket print commands over connections such as Bluetooth, LAN, or print servers.

The basic rules are straightforward:

  • The ticket is printed from top to bottom.
  • Text wraps when the maximum line length is reached.
  • An opened tag remains active until it is closed.
  • Tags generally cannot be combined, except for specific cases such as centered and bold text.

Important Tags

  • QR code (qr): Use qr: to print a QR code. Example: qr:1234567890 prints a QR code with the content 1234567890. The QR code is printed in MODEL 2 format with a fixed width and height of 5.
  • Barcode (barcode): Use barcode: to print a Code39 barcode. Example: barcode:123456 prints a barcode with the code 123456. The barcode width is 2 and the height is 100.
  • Separator (separator): Prints a separator line across the full paper width using underscores.
  • Text line (line): Prints a simple line of text. Example: line:Hello world.
  • Inverted text (textinverted): Prints text with inverted colors, white on black.
  • Bold text (textbold): Prints text in bold.
  • Large text (textlarge): Prints text in a larger font size.
  • Small text (textsmall): Prints text in a smaller font size.
  • Standard text (textstandard): Resets text to the standard font size.
  • Left-aligned text (textleft): Aligns text to the left.
  • Right-aligned text (textright): Aligns text to the right.
  • Centered text (textcenter): Centers text on the page.
  • Print logo (printlogo): Prints a previously cached logo.
  • Cut paper (cut): Performs a paper cut.
  • Open cash drawer (pulse): Opens the cash drawer. Example: pulse:120 opens it for 120 milliseconds.

Using the Tags

The tags can be combined to create functional and readable print output.

  • QR codes: Make sure the code content is correct before printing.
  • Barcodes: Use Code39-compatible values so scanners can read the output reliably.
  • Text formatting: Use bold or large text to emphasize headings or important information.
  • Alignment: Decide whether content should be left-aligned, right-aligned, or centered depending on the ticket layout.
  • Separators: Use separators to divide ticket sections clearly.
  • Logo: Make sure the logo is cached in the correct format before printing.
  • Cash drawer: Adjust the pulse duration so the drawer opens reliably during checkout.

These tags provide a flexible way to design print output for operational use cases.

Last updated on May 15, 2026