IBM Support

Capabilities and Limitations of Host Print Transform (HPT)

Troubleshooting


Problem

This document provides information on the capabilities and limitations of Host Print Transform (HPT), including the functions available when printing *AFPDS spooled files to an ASCII laser printer using the AFPDS to ASCII Transform code within HPT.

Resolving The Problem

This document provides information on the capabilities and limitations of Host Print Transform (HPT), including the functions available when printing *AFPDS spooled files to an ASCII laser printer using the AFPDS to ASCII Transform code within HPT.

This document was last updated on 8 July 2014.
 



In general, Host Print Transform (HPT) can be used to print spooled files on the following:
 
o Dot matrix or line printers that support the IBM Proprinter (IBM PPR), Epson ESC/P, and Epson ESC/P2 data streams. Plain ASCII text can be sent to dot matrix and line printers that support other ASCII-based printer data streams by using the system-supplied QSYS/QWPDEFAULT workstation customizing or *WSCST object (WSCST).
o Laser printers that support IBM PPDS (IBM Personal Printer Data Stream), HP PCL3, HP PCL4, HP PCL5, HP PCL5c, HP PCL5e, HP PCL6, or HP PCL6c.
o Ink jet printers that support HP PCL3.

and cannot be used to print spooled files on the following:
 
o Dot matrix or line printers that support Intelligent Printer Data Stream (IPDS), unless they also support and are configured to use the IBM Proprinter (IBM PPR), Epson ESC/P or Epson ESC/P2 data streams.
o Laser printers that support Intelligent Printer Data Stream (IPDS), unless they also support and are configured to use the IBM PPDS (IBM Personal Printer Data Stream), HP PCL3, HP PCL4, HP PCL5, HP PCL5c, HP PCL5e, HP PCL6, or HP PCL6c data streams.
o Ink jet or laser printers that support a Host-based, Windows-only or proprietary (GDI) printer data stream, or that support a printer data stream that is not supported by HPT including Adobe PostScript, PostScript emulation, RPCS, UDF, ZPL, EPL, CPCL, and XPS (to name a few), unless they also support and are configured to use the IBM PPDS (IBM Personal Printer Data Stream), HP PCL3, HP PCL4, HP PCL5, HP PCL5c, HP PCL5e, HP PCL6, or HP PCL6c data streams.
 



APAR SA47912

APAR SA47912 "OSP PRINT WRITER AFPDS TRANSFORM ENHANCEMENT", the APAR that initially provided enhancements to Host Print Transform to convert *AFPDS spooled files to ASCII, states the following:

The print writer has been enhanced to take advantage of the Host Print Transform AFPDS to ASCII transform. The best support for this new function will be to PPDS and PCL laser and ink jet printers (D/T4019, D/T4029, HP LaserJet, etc.). The AFPDS to ASCII transform does not support the following:

COR
Multi-up
Graphics (CHRSIZE DDS keyword, Office large print)
Overlays with Office documents
Alignment

Also, to use raster mode, the destination printer must have at least 1 megabyte of memory.
 



Informational APAR II13564

Informational APAR II13564 "HOST PRINT TRANSFORM RESTRICTIONS, V5R3M0 and V5R4M0" states the following:

This informational APAR is to officially document restrictions of the Host Print Transform (HPT) function of OS/400.

Host print transform does not support Graphics data. If the attributes of your spooled file indicate Graphics special requirements, it will not print via host print transform. The most common way to get Graphics data is to use the CHRSIZ DDS keyword with a DEVTYPE(*AFPDS) printer file.

Color support is available to PCL color laserjet technology printers via MFRTYPMDL values including, but not restricted to, *HPCOLORLJ, *IBM4308, and *LEXOPTRAC. However, the actual color support is limited from a customer standpoint. This color support only allows you to print color text. Color image is not supported. You cannot print color barcodes, either. HPT has never supported the printing of Graphics Object Content Architecture (GOCA) objects, so it follows that printing of color GOCA is not supported.

Even with color text, there are restrictions. Under Presentation Text Object Content Architecture (PTOCA), there are 2 types of color controls. The older PT1 Set Text Color PTOCA command is the control that HPT supports. HPT does not support the newer PT3 Set Extended Color command. If you use the BOX or LINE DDS keywords, and you specify the *COLOR subfunction with the PT1 type color, this actually generates text controls, and HPT will honor the color lines and boxes. Drawing the lines and boxes with the PT3 type color will not work. Lastly, if you use a workstation customizing object that specifies to use RASTER mode, color will not print.

Technically, this next item is not a HPT restriction, but a restriction of the various print drivers that call HPT. This includes the *IBMPJLDRV, *HPPJLDRV, *IBMSNMPDRV, Lexlink, and remote writer driver programs. When you print spooled files that specify a DEVTYPE(*AFPDS), and you start printing on a page other than page 1, the output may not be as desired. This is because information such as DUPLEX and DRAWER are referenced in a form definition at the beginning of page 1. If you don't print page 1, the form definition is not processed. For Version 5 Release 2, PTFs SI13331 and SI14747 improve this situation for the PJL driver and the SNMP drivers only.

If a spooled file is of type *AFPDS, and it contains inline font resource (*FNTRSC) objects, these objects will not be used when printing. Host print transform only uses *FNTRSC objects that reside in libraries.

If you are using a host print transform that uses raster mode, and you are using the HIGHLIGHT DDS keyword, the text will not appear bold. This is due to the font substitution used when using raster mode. To get bold text when using raster mode, you must specify a CDEFNT or FNTCHRSET that is bold by nature.

If a DEVTYPE(*AFPDS) spooled file contains an object container with a truetype font, this is not supported via host print transform. If the spooled file references a truetype font, that font must exist in the IFS according to the rules laid out in the FONTNAME discussion of the DDS Reference manual.

When using a double byte character set (DBCS) transform, and printing a DBCS spooled file, PAGRTT(*AUTO) will not work the same as when using a single byte character set transform (SBCS). Examples of DBCS transforms use *HPDBCS, *IBMPAGES, *ESCPDBCS, *CANLIPS3, and *NECPCPR201, among others. When using a DBCS transform, and PAGRTT(*AUTO) is specified in the spooled file attributes, the output will be printed as if PAGRTT(0) was specified. PAGRTT(90) will print landscape. PAGRTT(*COR) will print landscape, but only SBCS data is reduced, DBCS data and grid lines are not reduced, which could cause misalignment of data.

Prior to Version 5, Release 4, Host Print Transform does not support the Font Horizontal Scaling Factor triplet that is in the *AFPDS architecture. This allows you to widen or narrow the characters when using a scalable font. If this exists in the spooled file, the font will not be scaled horizontally as requested. Infoprint Designer, for example, is a product that allows you to specify a horizontal scaling factor when adding text data.

Host Print Transform does not support the stapling function that is offered via the printer file, or with a form definition.

Host Print Transform does not support the use of .otf fonts with the FONTNAME DDS keyword.

Host print transform does not support the Include Object AFPDS structured field. This control is the one that uses X'D3AFC3' as an identifier. This AFPDS control is most commonly used when specifying to rotate or size a page segment using the DDS support.

Rotation of overlays via the OVERLAY DDS keyword is not supported.
Rotation or sizing of page segments via the PAGSEG DDS keyword is not supported.

When you create a spooled file that specifies DEVTYPE(*AFPDS) PAGRTT(90, 180, or 270), and includes an overlay, the position of the overlay when printed through host print transform could differ than on a real IPDS printer. This is because the point of rotation origin differs between IPDS and PCL. To get similar results you must specify the proper page size in your spooled file attributes. For example, if you are printing with PAGRTT(90), on Letter size paper, specify a width of 11 inches and a length of 8.5 inches, as those are the dimensions of the page after rotation. This is just a guideline, the printers' unprintable border may also cause slight differences.

Even if you are not using DEVTYPE(*AFPDS), it is very important that you specify the proper page size in your spooled file attributes if you specify PAGRTT of 90, 180, or 270. This is because the point of origin in rotation differs between IPDS printers and host print transform printers. The best way to get HPT output and IPDS output to print similar is to specify the page size which matches the paper size you are actually using.

The use of the AFPRSC DDS keyword is not supported by Host Print Transform (HPT) until IBM i 7.2. As with Transform Services, Host Print Transform supports both TIFF and JFIF (JPG or JPEG), but does not support PDF, PCL, BCOCA, GOCA, or IOCA.

Note: Host Print Transform (HPT) does not support AFP overlays or AFP page segments with color image, but does support color TIFF or JFIF (JPG or JPEG) images starting in 7.2 i5/OS.

It is possible to perform landscape printing on an IPDS AFP capable printer by using a form definition that was created for a cut sheet printer which specifies a Medium Descriptor containing a Orientation of landscape. Host print transform does not honor this type of landscape printing.

If a form definition is specified that specifies a Page Origin Position, it will be ignored by host print transform.

Host print transform does not support the Medium Descriptor (MDD) MODCA structured field that exists in some form definitions.

If performing WSCST programming, only the first 128 bytes of data in the INITPRT tag will be sent to the printer. You can put more in the WSCST source, but only the first 128 bytes will be used.




AFPDS to ASCII Transform Code within Host Print Transform (HPT)

The AFPDS to ASCII Transform code within Host Print Transform (HPT) provides support for printing *AFPDS spooled files on ASCII printers that do not have built-in support for the Intelligent Printer Data Stream (IPDS).

Host Print Transform (HPT) can be used to print *AFPDS spooled files, or spooled files that have generated with the Printer device type (DEVTYPE) parameter set to *AFPDS, on laser printers that support IBM PPDS, HP PCL3, HP PCL4, HP PCL5, HP PCL5c, HP PCL5e, HP PCL6, or HP PCL6c, and on ink jet printers that support HP PCL3.

Host Print Transform (HPT) cannot be used to print *AFPDS spooled files, or spooled files that have generated with the Printer device type (DEVTYPE) parameter set to *AFPDS, on dot matrix or line printers, on ink jet or laser printers that support a Host-based, Windows-only or proprietary (GDI) printer data stream, or on ink jet or laser printers that support a printer data stream other than IBM PPDS or HP PCL3 or above, including Adobe PostScript, PostScript emulation, RPCS, UDF, ZPL, EPL, CPCL, and XPS (to name a few).

What Functions are Supported by the AFPDS to ASCII Transform code within Host Print Transform (HPT)

The AFPDS to ASCII Transform code within Host Print Transform (HPT) supports the following:
 
o AFPDS overlays. This include overlays specified using the OVERLAY (Overlay) DDS keyword with an externally described printer file, or using the Front side overlay (FRONTOVL) and Back side overlay in the Create Printer File (CRTPRTF), Change Printer File (CHGPRTF), or Override with Printer File (OVRPRTF) commands.
o AFPDS page segments. This include overlays specified using the PAGSEG (Page Segment) DDS keyword with an externally described printer file, or included in an AFPDS overlay, such as when using an AFPDS overlay created by the IBM Infoprint Designer product (5733ID1).
o Barcodes specified using the BARCODE (Bar code) DDS keyword with an externally described printer file.

Note: Not all barcode types are supported by Host Print Transform (HPT). V5R4M0 (R540) i5/OS added support for for printing specific types of 2D (or two-dimensional) bar codes, namely MaxiCode, PDF417, and Data Matrix using the AFPDS to ASCII Transform code within Host Print Transform (HPT).

Note: HPT has also added support for QR two-dimensional bar codes, The Unprintable character action ( RPLUNPRT ) parameter in the printer file may need to be set to *NO for some languages.

There is no support to create a QR bar code through the BARCODE (Bar code) DDS keyword or using the IBM Infoprint Designer for iSeries product (5733ID1).

For more information, please refer to the following document:

N1018277: IBM OS/400 Support for Two-Dimensional Bar Codes - MaxiCode, PDF417 and Data Matrix


Functions that are not supported by the AFPDS to ASCII Transform code within Host Print Transform (HPT)

The AFPDS to ASCII Transform code within Host Print Transform (HPT) does not support the following:
 
o Computer Output Reduction (COR)

When a spooled file is generated with the Printer device type (DEVTYPE) parameter set to *SCS, Host Print Transform (HPT) will perform Computer Output Reduction (COR) processing to print in landscape and in a compressed font when the Degree of page rotation (PAGRTT) parameter is set to *AUTO or *COR, depending on the settings of the Page size (PAGESIZE), Lines Per Inch (LPI), Characters Per Inch (CPI), and Font identifier (FONT) parameters.

Host Print Transform (HPT) does not perform COR processing on *AFPDS spooled files. If a spooled file is generated with the Printer device type (DEVTYPE) parameter set to *AFPDS and the Degree of page rotation (PAGRTT) parameter set to *AUTO or *COR, then the AFPDS-to-ASCII Transform code within HPT will print the spooled file in portrait without compressing the font.

For more information, please refer to the following document:

N1019598: Explanation of Computer Output Reduction (COR) and Options To Circumvent It
o Pages per side (MULTIUP)

The Pages per side (MULTIUP) parameter can be used with *AFPDS spooled files, to print 2, 3 or 4 pages of output on one physical sheet of paper (or one each side when printing with duplex).

Host Print Transform (HPT) does not support the Pages per side (MULTIUP) parameter. Spooled files

with IPDS-capable laser printers that are either configured using a *LAN IPDS device description for a LAN-attached IPDS printer or a *LCL or *RMT IPDS printer device description for a twinax-attached IPDS printer. If using a *LAN IPDS DEVD to print to a LAN-attached IPDS printer, then a license for Print Services Facility/400 (PSF/400) is required after then initial 70-day grace period.
o Graphics

This includes GOCA graphics objects, text specified using the CHRSIZE (Character Size) DDS keyword in an externally describe printer file, and the Large Print feature in OfficeVision/400 (OV/400) documents.

For more information, please refer to the following document:

N1010360: Using the #$@INCLGRPH Control Record in a IBM System/36 Environment Program
o Overlays with OfficeVision/400 (OV/400) documents
o Forms Alignment
 



For More Information

For more information, please refer to the following documents:

N1018277: IBM OS/400 Support for Two-Dimensional Bar Codes - MaxiCode, PDF417 and Data Matrix
N1019598: Explanation of Computer Output Reduction (COR) and Options To Circumvent It
N1010360: Using the #$@INCLGRPH Control Record in a IBM System/36 Environment Program

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CP9AAM","label":"Print-\u003EHost Print Transform or HPT"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Historical Number

524446159

Document Information

Modified date:
28 July 2023

UID

nas8N1018601