l8HP DECprint Supervisor (DCPS) for OpenVMSG

HP DECprint Supervisor (DCPS) for OpenVMS
User's Guide



 z d f  
PreviousContentsIndex

M

7.6.1 Description of PJL and TBCP



G PJL is a command language that allows job-level printer control. TBCP I is a communications protocol for the serial, LAT, and parallel ports of I a printer. It allows 8-bit binary data in files concurrent with the use F of some control characters for communications and print job control. I You cannot print TBCP to printers that do not support TBCP, or to ports D other than the serial, LAT or parallel ports for printers. When an I application is creating files for printing to printers that support PJL - or TBCP, the files can include PJL and TBCP.b

7.6.2 Steps to Prevent Problems with DECprint Supervisor



I When printing files that include PJL, DCPS strips any PJL code from the H file. This process allows DCPS to use PJL to switch print protocols in G the printer, and enables the printing of these files on printers that  do not support PJL.

GIf the interconnect to the printer is not serial or LAT, the file must 7not use the TBCP. DCPS does not remove TBCP characters.Z

7.6.2.1 Preventing Problems with PostScript



GWhen an application is generating PostScript output, use the following guidelines:

GWhether printing to a printer or saving to a file, it is best to avoid both TBCP and PJL.

CIf the interconnect is serial or LAT then TBCP may be used. If the Einterconnect is raw TCP/IP or AppleTalk, then TBCP must be disabled. DBecause detailed information about the printer and queue may not be Aavailable to a Windows user, HP recommends that TBCP be disabled.

EDisable the "Tagged Binary" item from the Advanced Options HMenu of printer drivers that offer this option. This disables TBCP, and Ethe TBCP introducer is not included in the file. Note that disabling Fthe Performance item "Binary" in the PostScript Option menu Cis not sufficient. The file will not include binary data, but will @include the TBCP introducer, which will cause PostScript errors.A

7.6.2.2 Problems with PCL



BDCPS removes all PJL commands from PCL files, which may result in Dproblems when printing these files. Because drivers for PCL Level 5 Bprinters use PJL to select advanced printing features such as the Aconfiguration of the Resolution Enhancement hardware (RET), page Aprotection, and print resolution, the print job may not print as "expected without the PJL commands.

HMoreover, the PCL is sent to the printer only if DCPS supports printing HPCL directly to the printer. Otherwise, the PCL (Level 4) translator is used.

GIf problems arise with PCL output, an alternative would be to generate 3PostScript output if the application allows for it.

7.7 Interaction Between Native PCL Printing and Automatic DATA_TYPE Detection



@Jobs that use DATA_TYPE=AUTOMATIC=PCL may print with unexpected Gresults. In particular, files printed as PCL which contain commands to Hswitch to PostScript may be printed entirely as PCL. This result occurs 'if all of the following cases are true:

EUnder these circumstances, DCPS uses the PCL language interpreter in Ethe printer, and does not look for a switch to PostScript. Also, the Hautomatic language sensing feature of the printer is not used to detect Cthe file's switch from the PCL language to the PostScript language Gbecause DCPS specifies the file's data type as PCL, which disables any Gauto language sensing by the printer. You can use one of the following workarounds:
    G
  1. Set up the print queue to use AUTOMATIC, but select ANSI as the I default data type. Generally, the text part of files that include both G text and PostScript is simple ACSII text that is handled properly by $ both the ANSI and PCL translators.D
  2. Ensure that the PCL translator is used for all PCL files, by G setting up the print queue with a qualifier that requires the use of J the PCL translator (include the PAGE_LIMIT parameter as a default queue J parameter). Note, however, that the PCL translator interprets PCL level F 4. The printers for which DCPS supports printing in native PCL mode ) have PCL level 5 language interpreters.
s

7.8 Native PCL Mode Concatenates Files



I If the PCL language interpreter in a printer is used to print PCL files H and a job includes multiple PCL files, the PCL files are concatenated. F DCPS does not ensure that the files begin on new pages, or even that F the last line of the first PCL file does not get printed over by the = first line of the next PCL file. Concatenation can occur if:



HIf concatenated PCL files are not acceptable, the following workarounds can be used:




G

Chapter 8
Printing Proprinter Files




EDCPS includes a translator for Proprinter files, allowing PostScript Hprinters to emulate the IBM Proprinter XL24. If your Proprinter file is Jnot automatically recognized by the DECprint Supervisor software, you can @explicitly specify the Proprinter data type using the DATA_TYPE parameter. For example:

 

"
H    $ PRINT /PARAMETERS=DATA_TYPE=PROPRINTER MYFILE.PRO






/  
Note

FBecause of incompatibilities among Proprinter printers, files created Cfor Proprinter models other than the XL24 printer may not print as Fexpected. For best results, when producing a file to be printed using Fthe Proprinter translator, specify the Proprinter XL24 as the printer "model in your application.
m

8.1 Proprinter Translator Versus the Proprinter Printer



GThe DCPS translator for Proprinter files differs from the operation of 2the Proprinter XL24 printer in the following ways:



HDocumentation specifying the Proprinter language is available from IBM. CThe documentation specific to the Proprinter and the XL24 includes:        
IBM's4 Proprinter Family Technical Reference " IBM part number SC31-2587-3
IBM's; Proprinter X24E and XL24 Guide to Operations ! IBM part number SA34-2106-0
n

8.2 How DECprint Supervisor Recognizes Proprinter Files



NDECprint Supervisor recognizes the Proprinter data type if the files have the following characteristics:



>If your Proprinter file does not meet these criteria, you can Gexplicitly specify the data type by including the DATA_TYPE=PROPRINTER parameter in your PRINT command.

8.3 Modifying the Default State of the Proprinter Translator



GThe default state of the XL24 can be modified from its front panel and Ffrom its DIP switches. Emulate these settings in your print job using @PRINT parameters and the translator-specific front panel escape zsequences. Table 8-1 shows the print attributes that you can modify using PRINT parameters.

~  * * $                 
Table 8-1 PRINT Parameters that Affect Proprinter Settings
Print Attribute PRINT Parameter Reference
 orientation " /PARAMETERS=PAGE_ORIENTATION > Section 1.4
 tray selection  /PARAMETERS=INPUT_TRAY 1 F Section 3.1
 paper size  /PARAMETERS=PAGE_SIZE F Section 10.7



B1Instructions in the data file can override this PRINT parameter.



EAll of the print attributes on the XL24 front panel and DIP switches Ccan be modified in the Proprinter translator using the appropriate !front panel mode escape sequence.

6The format of the front panel mode escape sequence is:

'Escape Sequence Format

 

"
R    ESC   `   count-low count-high item-id new-value-low [new-value-high]




Decimal Values

 

"
    027   096 






/  
Note

AThis format shows spaces between the elements of the command for >clarity. Do not include spaces in your actual command.


+This escape sequence allows you to specify:



EDo not use ASCII encoded numerals (1, 2, 3,...) to specify the count Hbytes, item-id, and new-value in the escape sequence. GInstead, use ASCII characters whose numeric codes represent the values Dyou want. For example, zero is represented by the NULL code; 126 is 'represented by the tilde character (~).

HThe print attributes that you can change using this escape sequence are listed in Table 8-2. The item-id is listed first, followed Dby a description of the print attribute. The third column shows the Edefault Proprinter translator behavior for this print attribute. The =last column shows how to present the value for each item.

r  " & 3 *                                                                                                                                
Table 8-2 Proprinter Print Attributes
Item-Id Description Default Translator Value You Specify ...
 2  Slashed 0  Default: 0 1 or 0.
 3 Auto NL  Default: 0 1 or 0.
 4  Form length w Default: based on logical page length. See Section 8.4.2. J The page length in points (72 units per inch). Any value is allowed.
 5  Character set  Default: Set 1 " 1 indicates character set 1.'
2 indicates character set 2.
 6 Auto CR  Default: 0 1 or 0.
 7 Margins v Default: based on logical page width. See Section 8.4.2. I The page width in points (72 units per inch). Any value is allowed.
 8  Ignore FF I This determines whether form feeds are ignored at the top of form.  Default: 1 1 or 0.
 12  12 cpi comp. ? There are three options: 12, 17.1, or 20 cpi. Default: 12  2 indicates 12 cpi.
3 indicates 17.1 cpi.
4 indicates 20 cpi.
 13  Code page  Default: 437 & The code page value: 437 or 850.
 14 AGM  Default: disabled 1 or 0.
 16  Left offset " Default: 18 points (1/4 in.) 6 The left offset in points. Any value is allowed.
 17  Top offset " Default: 36 points (1/2 in.) N The top offset in points. Any value is allowed. This is the position of 1 the baseline of the first line of the file.
 19  Characters per inch  Default: 10 cpi  1 indicates 10 cpi.
2 indicates 12 cpi.
3 indicates 17.1 cpi.
4 indicates 20 cpi.$
5 indicates proportional.
 20  Emphasize  Default: 0 1 or 0.
 21  Dbl Wide  Default: 0 (single) 1 or 0.
 22  Dbl High  Default: 0 (single) 1 or 0.
 23  Printer ID , Number for use with ERDPR. Default: 23  The printer ID number.
 24 ( 9-wire or 24-wire downloaded fonts J A flag that determines 9-wire (0) or 24-wire (1) emulation. This is L required so that appropriate downloaded fonts are selected with ESC I.
Default: 24-wire
1 or 0.
 25  Grey bitmaps H A flag that is true if bitmaps are printed dark gray (85% black).  Default: 0 1 or 0.
 26  Printer ID + Number for use with ERSIC. Default: 3  The printer ID number.
 27  Alternate dots K A flag that determines whether alternate dots are dropped in certain  graphics modes.
Default: 0
1 or 0.
T

8.3.1 Creating a Setup Module for Proprinter Commands



FThe front panel mode commands affect the way a file is printed if the Fcommands are in a setup module and the setup module is specified with Gthe file in the PRINT command. To use front panel commands to affect a 'print job, use the following procedure:

    I
  1. Create a setup module that includes the necessary front panel mode commands.@
  2. Ask your system manager to insert the setup module into a $ Proprinter device control library.D
  3. Print the file, specifying the setup module and the file. For example:

     

    "
    M    $ PRINT /QUEUE=PS$A14 /PARAMETERS=DATA_TYPE=PROPRINTER -J    _$ /SETUP=module-name file-name.DAT
    
    
    



FThe system manager can include the setup module in a form definition, Hwhich can be associated with a queue by default. In this case, you need Honly specify the data file name and the queue name in the PRINT command.

HFor example, to change the default character set of the translator from Ccode page 437, character set 1, to code page 850, character set 2, Bcreate a setup module that contains the following escape sequence:

'Escape Sequence Format

 

"
9    ESC `    ETX NUL CR  R   ETX ESC `   STX NUL ENQ STX 




Decimal Values

 

"
9    027 096  003 000 013 082 003 027 096 002 000 005 002 






/  
Note

CThese examples show spaces between the elements of the command for >clarity. Do not include spaces in your actual command.


>To change the translator from printing on just 10 inches of a Fletter-size sheet to printing on all 11 inches of the sheet, create a :setup module that includes the following escape sequences:

'Escape Sequence Format

 

"
8    ESC '   STX NUL DC1 LF  ESC '   ETX NUL EOT CAN ETX 




Decimal Values

 

"
8    027 096 002 000 017 010 027 096 003 000 004 024 003 




GThis front panel command changes the top offset to 10 points, and sets Gthe text length to 11 inches. Because most laser printers cannot print Hon the entire sheet, you may need to scale the page using the NUMBER_UP 5or LAYUP parameters to fit within the printable area.[

8.4 Changing the Printable Area



EApplications that create files for Proprinter print jobs assume that Hthe entire page is available for printing. Dot matrix printers, such as EProprinter devices, use the full page. Laser printers, such as those >supported by the DCPS software, have a printable area that is Hoften smaller than the entire page, and leave a blank margin around the printable area.

FThe software that translates Proprinter files for PostScript printing Eformats the text so that it prints only within the printable area on Dthe laser printer. Specifically, the translator formats the text so Fthat it does not print within 1/4 inch of the left and right edges of Fthe page, nor within 1/2 inch of the bottom edge. The first line of a Ffile prints with its baseline 1/2 inch from the top edge of the page. UThis is illustrated in Figure 8-1.

=Figure 8-1 Proprinter Default Printable Area


&

Y

8.4.1 Proprinter Files That Do Not Fit on the Page

GWhen you print a Proprinter file, you may find that a page that should lfit on one page requires two pages, as shown in Figure 8-2.

CFigure 8-2 Proprinter Page on Two PostScript Pages


&

EYou can correct this problem by using a setup module that causes the )translator to put more lines on the page.

FFor example, to change the translator from printing on 10 inches of a Hletter-size sheet to printing on 11 inches of the sheet, create a setup Amodule to scale the page. Include the following escape sequences:

2Proprinter Escape Sequence Format

 

"
9     ESC '   STX NUL DC1 LF  ESC '   ETX NUL EOT CAN ETX 




Decimal Values

 

"
9     027 096 002 000 017 010 027 096 003 000 004 024 003 






/  
Note

CThese examples show spaces between the elements of the command for >clarity. Do not include spaces in your actual command.


FThis changes the top offset to 10 points, and sets the text length to 11 inches.

FThe new output may also need to be scaled because the text prints off Zthe bottom of the page (see Figure 8-3).

4Figure 8-3 Proprinter Page Too Long


&

EYou can correct this problem by scaling the page image. To scale the Fpage image, specify any one of the following qualifiers for the print job:

 

"
    /PARAMETERS=NUMBER_UP=1 )    /PARAMETERS=LAYUP_DEFINITION=BORDERS 9    /PARAMETERS=LAYUP_DEFINITION=layup-file-name




<The DCPS software includes an example layup definition file Cthat shrinks the size of the logical page to fit within the normal Dlaser printer margins. The example file PROPRINTER-FULL-PAGE.LUP is Gsupplied in SYS$COMMON:[SYSHLP.EXAMPLES.DCPS]. Ask your system manager Gto copy it to the DCPS$LAYUP area if it is not already there. Then you Gcan specify the layup definition file in the PRINT command, as follows:

 

"
e    $ PRINT file-name.PRO /PARAMETERS=LAYUP_DEFINITION=PROPRINTER-FULL-PAGE




\The final output is illustrated in Figure 8-4.

>Figure 8-4 Proprinter Page Adjusted to Fit PostScript Page


&




 z a d f  
PreviousNextContentsIndex