Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Summary
The purpose of this document is to explain how to configure Adobe Document Services running on SAP Interactive Forms by Adobe so that printed output can use a printer resident font.
Overview
In order to use a printer resident font, modifications to the appropriate XDC configuration file residing on the SAP server must be made. These changes can be made using the Adobe XDC Editor. In order to make these changes, certain information about the printer will first have to be acquired.
Background
Printer Resident Fonts are fonts that are stored inside the printer. The form factor for a printer resident font could be a special hardware cartridge or the font could be built into the printer's memory. For PostScript printers, only the name of the font is required. For PCL printers, it is necessary to define an escape sequence of characters. The names of the printer resident fonts can be obtained from the front panel of the printer or by using the printer's built in web server (if available). SAP Interactive Forms by Adobe can render different formats (PDF, PCL, PostScript, ZPL) by using a special print driver and an XML based configuration file called an XDC. These XDC files reside on the ADS server. When a template (XDP) and data (XML) are rendered, part of the configuration specifies which XDC to use.
Required Steps
1. Identify the name of the printer resident font that you wish to use. 2. Specify the name of the printer resident font in the template that is to be rendered or use the SAP Cascading Font configuration to map a font used in the templates to the printer resident font on this printer. 3. Download the Adobe XDC Editor from: https://www.sdn.sap.com/irj/sdn/nw-appservertools
4. Locate the most suitable XDC file to use for your printer based on the type of output to be rendered (PostScript or PCL) and using a copy of the XDC file, make the appropriate changes to the XDC file. 5. Upload the newly modified XDC file to the server.
For PCL Printers, you have to identify the escape sequence of PCL characters which are to be used. For example, to use the "Courier" font on a Lexmark 644 PCL printer. the sequence required is: <ESC/>&t0P<ESC/>(19U<ESC/>(s0p<var name="fontPitch" />h0s0b4099T The list of escape sequences for the printer resident fonts appear on the generated list. Notes on entering the escape sequences:
Latin2 Shift-JIS GBK Hanguel Big5 <Esc/>(2N <Esc/>(19K <Esc/>(18C <Esc/>(19H <Esc/>(18T
Sometimes the font map shows the full sequence including the above encoding:
and sometimes the encoding is left open. In this case you must use the encoding form the table above.
Font Mapping If you do not wish to modify the template or you a large number of templates that wish to use a specific font, then you can map a font in a template to a printer resident font using the cascading font feature built into SAP.
Step 3: Locate the appropriate XDC file and modify using the XDC editor.
You will modify the XDC file with the Adobe XDC editor (see screen shot below). The Adobe XDC Editor is an Eclipse based editor and can be downloaded from:
https://www.sdn.sap.com/irj/sdn/nw-appserver-tools
To access the XDC files, follow the instructions in the XDC editor documentation. For PostScript printing, there are XDC files containing the letters "PS" (e.g. "HP4350PS.XDC"). The same is true for PCL printers.
Important Note:
1. Since the XDC is a critical file in the ADS rendering process, it is important that you make a copy of the file before you begin the editing process. 2. Also, since ADS will cache the XDC based on the ID attribute (not the filename), it is important that this ID value should be unique when making changes. You can force the ID attribute to be unique by using the File/Save As... command in the XDC editor the first time you save the file. This will ensure that the ID attribute has been modified. To make the change, select the "Fonts" tab: For PostScript printers, only the name is required. The screen will look like the following:
Important Note: When you are modifying the XDC file and entering the font name, be sure to double check it. Since the XDC editor is not connected to your printer it cannot check to make sure that you are specifying a valid name. For PCL printers, escape sequence (i.e. Font Sequence) is required: The screen will look like the following:
Important Note: When you are modifying the XDC file and entering the sequence, be sure to double check it. Since the XDC editor is not connected to your printer it cannot check to make sure that you are specifying a valid sequence.
Enter the values obtained in step #1 from the list of printer resident fonts.