Using Printer Resident Fonts

Embed Size (px)

Citation preview

  • 8/2/2019 Using Printer Resident Fonts

    1/5

    Using Printer Resident Fonts

    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 th

    SAP server must be made. These changes can be made using the Adobe XDC Editor. In order to make the

    changes, certain information about the printer will first have to be acquired.

    BackgroundPrinter 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 whicXDC 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-appserver-

    tools

    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 file5. Upload the newly modified XDC file to the server.

    https://www.sdn.sap.com/irj/sdn/nw-appserver-toolshttps://www.sdn.sap.com/irj/sdn/nw-appserver-toolshttps://www.sdn.sap.com/irj/sdn/nw-appserver-toolshttps://www.sdn.sap.com/irj/sdn/nw-appserver-tools
  • 8/2/2019 Using Printer Resident Fonts

    2/5

    Step 1: Identify the name of the printer resident font

    There are a number of ways to find the list of printer resident fonts:

    1. Use the front panel on the printer to print out a list of fonts.

    2. If the printer has a built in web server, use your web browser to request the printer to print out a list fonts.

    3. Consult the printer's technical reference manual. You can usually locate the reference manual online

    Manufacturer Web Site

    HP Use search term: "HP Printer Manual"

    Ricoh http://www.ricoh-usa.com/downloads

    Lexmark http://www.lexmark.com/publications/techref.html

    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:

    &t0P(19U(s0ph0s0b4099T

    The list of escape sequences for the printer resident fonts appear on the generated list.

    Notes on entering the escape sequences:

    Latin2 (2NShift-JIS (19K

    GBK (18CHanguel (19HBig5 (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.

    For PostScript printers, only the name of the font is required.

    http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp?lang=en&cc=us&taskId=101&contentType=SupportManual&docIndexId=64255%E2%88%8FTypeId=18972%E2%88%8FCatId=236252http://www.ricoh-usa.com/downloadshttp://www.lexmark.com/publications/techref.htmlhttp://www.ricoh-usa.com/downloadshttp://www.lexmark.com/publications/techref.htmlhttp://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp?lang=en&cc=us&taskId=101&contentType=SupportManual&docIndexId=64255%E2%88%8FTypeId=18972%E2%88%8FCatId=236252
  • 8/2/2019 Using Printer Resident Fonts

    3/5

    Step 2: Specify the name of the font in the template

    Using the Adobe Designer, you can specify the name of the font by entering the name in the Font Palette.

    Normally a font is selected from the drop down list, but Adobe Designer does permit you to enter a font

    name.

    Font Mapping

    If you do not wish to modify the template or you a large number of templates that wish to use a specific fonthen 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 Edito

    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 sameis true for PCL printers.

    Important Note:

    https://www.sdn.sap.com/irj/sdn/nw-appserver-toolshttps://www.sdn.sap.com/irj/sdn/nw-appserver-tools
  • 8/2/2019 Using Printer Resident Fonts

    4/5

    1. Since the XDC is a critical file in the ADS rendering process, it is important that you make a copy o

    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 b

    using the File/Save As... command in the XDC editor the first time you save the file. This will ensurthat 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 validname.

    For PCL printers, escape sequence (i.e. Font Sequence) is required: The screen will look like the following

  • 8/2/2019 Using Printer Resident Fonts

    5/5

    Important Note:

    When you are modifying the XDC file and entering the sequence, be sure to double check it. Since the XDCeditor 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.

    Step 4: Upload the newly modified XDC file to the server.

    1. Make sure you have used the "Save as..." command in the XDC editor to ensure that a unique ID hasbeen created for this XDC file.

    2. Upload the XDC file to the server.

    3. You now need to associate the newly modified XDC file with the appropriate printer. Please consulCustomer Note #685571 for more details.

    4. If required, configure the SAP cascading fonts definition to map the fonts in the form design to the

    printer fonts.

    5. Render a template using the modified XDC file and verify that the results are correct.

    If there is a problem with the output:

    1. If there is an error message related to type of font, it is possible that made a mistake while entering th

    name of font or the sequence.

    2. You can trace the font mappings to see what is taking place. If the configuration is set to trace font

    information, you can receive details on the mapping of fonts, including any errors that have takenplace.

    3. If there is no output in the printer at all, check the error log on the printer or try to obtain a copy of th

    spooled output file from the server.4. Try rendering the output on another printer if possible.