Programmer's Guide User guide

1 | Programmer’s Guide
Thermal Printer Programmer’s Guide 24
Caution: Exercise caution when issuing these PJL Commands. They cannot be undone.
1
Use the PJL DISKLOCK variable to prevent unauthorized file system access. Refer to
the PJL Technical Reference document for more information.
PJL File System Commands
For the FSDOWNLOAD, FSMKDIR, and FSDELETE commands, the additional
parameter “TYPE” is used to restrict access to the user flash file system. Also, specific
extensions must be used on file names if they are to be accessed via front panel user file
functions. Sub folders will not be accessible from the front panel in these directories
therefore the NAME parameter should not contain directory paths. If using a filename
that already exists the new file will replace the older one.
The following is the syntax to download a file:
@PJL FSDOWNLOAD FORMAT:BINARY SIZE = nnn TYPE = n NAME = "0:filename.ext"
<LF>
Above, the size is the amount of data starting after the end of line.
Type and filename extension are as follows:
Table 10: Type and File Name Extensions
User Font Download via PJL
To download a user font, it must be a True Type format and unbounded, meaning there
are more than 256 supported characters typically addressed via Unicode. It is the users
responsibility to obtain the appropriate licenses to use the fonts. There must be sufficient
space in the user flash section to download a font. Currently, there is a limit of ten (10)
downloaded fonts.
Use the PJL FSDOWNLOAD command to download a font to the printer. The syntax is
as follows:
@PJL FSDOWNLOAD FORMAT:BINARY SIZE=aaa TYPE=5
NAME=”0:FontName=bbb.ttf” <CR><LF>data…
Type (n) - User File Location File Name
0 - User Labels (default) xxx.pcl
1 - User Setups xxx.stc
2 - User Media xxx.stm
3 - User Images xxx.png, xxx.jpg
4 - User Languages xxx.qm
5 - User Fonts xxx.ttf