Create Custom PS Header Pages with Graphics


Contents

About this document
Creating header pages using your web browser
Example header page

About this document

You can use your favorite HTML editor and web browser to create custom header pages for AIX printing by following a few simple instructions. The instructions can be extended to using a PC word processor to create PostScript pages that can be used as header pages including graphics. This document describes how you can create your own custom header pages.

One key thing to remember is that the AIX pioburst page will look for the percent sign (%) as a key to flags. As a result, any percent signs that are created in the PostScript will have to be converted to %% so that pioburst will turn them back to single %. See the example section.

This document applies to all levels of AIX 3.2.5 and 4.x.


Creating header pages using your web browser

Steps needed to create header pages using your web browser

  1. Create the page.

  2. View the page with your favorite browser.

  3. Disable the PostScript queue: disable ps assuming the queue name is ps.

  4. Print from the web browser or save as PostScript.

  5. cd /var/spool/qdaemon

  6. Copy the temporary file from that directory to /tmp/H.ps.

  7. vi /tmp/H.ps

  8. Make a backup copy of /usr/lib/lpd/pio/burst/H.ps.

  9. cp /tmp/H.ps /usr/lib/lpd/pio/burst/H.ps

  10. Enable the queue: enable ps.

    Example header page

    This is the HTML source code for an HTML header page with a graphic.

    <html>
     <head>lt;title>Sample HTML header page<title>lt;head>
     <body bgcolor=#ffffff text=#000000 link=#ff0000 vlink=#a00080>
    <h2>AIX Printing with Custom Header Pages<h2>
    <p>
    <IMG SRC="/images/wizard.gif" ALIGN=left alt="AIX">
    <H1>%s  %S<H1>
    <br>
    %t  %T
    <br>
    %q  %Q
    <br>
    %p  %P
    <br>
    %h  %H
    <br>
    %l  %L
    <br>
    ******************************************************************************
    <br>
    %a
    %A<br>
    ******************************************************************************
    <body>
    

    This is the postscript before you edit it.

    %!PS-Adobe-3.0
    %%BoundingBox: 54 72 558 720
    %%Creator: Mozilla (NetScape) HTML->PS
    %%DocumentData: Clean7Bit
    %%Orientation: Portrait
    %%Pages: 1
    ...
    (AIX Printing with Custom Header Pages) show
    54.6 663.5 moveto
    24 f1
    (%s %S) show
    0 621 moveto
    12 f0
    (%t %T ) show
    0 607.7 moveto
    12 f0
    (%q %Q ) show
    ...
    

    This is the postscript after you edit it.

    %%!PS-Adobe-3.0
    %%%%BoundingBox: 54 72 558 720
    %%%%Creator: Mozilla (NetScape) HTML->PS
    %%%%DocumentData: Clean7Bit
    %%%%Orientation: Portrait
    %%%%Pages: 1
    ...
    (AIX Printing with Custom Header Pages) show
    54.6 663.5 moveto
    24 f1
    (%s %S) show
    0 621 moveto
    12 f0
    (%t %T ) show
    0 607.7 moveto
    12 f0
    (%q %Q ) show
    ...
    




    [ Doc Ref: 9222071999732     Publish Date: Apr. 18, 2000     4FAX Ref: 6434 ]