# Copyright (C) 2001, System Development Inc. All Rights Reserved.
#
# pcl_init: template file
# 
# Color LJ init file
#
{0x1b}%-12345X
@PJL RDYMSG DISPLAY="SDI PCL_INIT"{0x0a}
@PJL SET PAGEPROTECT=OFF{0x0a}
@PJL SET RESOLUTION={resolution}{0x0a}
@PJL ENTER LANGUAGE=PCL{0x0a}

# duplicate version of the switch to PCL

{0x1b}%0A

# Reset the printer

{0x1b}E

# Set the resolution, use both because we do not know which will be used

{0x1b}*t{resolution}R
{0x1b}&u{resolution}D

# Tell it to autoselect the tray

{0x1b}&l7H

# Letter paper size

{0x1b}&l{paper_size}a

# set vertical motion index to 0.1666 inches (8c)
# and number of lines from top (1E)

{0x1b}&l8c1E

{0x1b}*c0t{print_width}x{print_height}Y
{0x1b}*r{pixel_width}S
{0x1b}*r{pixel_height}T
{0x1b}*p0x0Y

# Color Palatte Info for CMYK

{0x1b}*v6W{0x00}{0x0}{0x4}{0x8}{0x8}{0x8}
{0x1b}*v255a255b255c0I
{0x1b}*v0a0b0c1I
{0x1b}*v0a255b255c2I
{0x1b}*v0a0b0c3I
{0x1b}*v255a0b255c4I
{0x1b}*v0a0b0c5I
{0x1b}*v0a0b255c6I
{0x1b}*v0a0b0c7I
{0x1b}*v255a255b0c8I
{0x1b}*v0a0b0c9I
{0x1b}*v0a255b0c10I
{0x1b}*v0a0b0c11I
{0x1b}*v255a0b0c12I
{0x1b}*v0a0b0c13I
{0x1b}*v0a0b0c14I
{0x1b}*v0a0b0c15I

# final things before start

{0x1b}*b1M
{0x1b}*r1A
