HELPLIB.HLB  —  PMDF  PSWRAP
    Convert a PostScript file to a file which can be mailed without
    requiring encoding or other special handling.

1  –  Restrictions

    This utility cannot produce correct output for some PostScript
    files.

    Syntax

      PMDF PSWRAP  input-file-spec [output-file-spec]

    Qualifiers                     Defaults

    /RECORD_LENGTH=width           /RECORD_LENGTH=76

2  –  Prompts

    Input file:   input-file-spec
    Output file:  output-file-spec

3  –  Parameters

 input-file-spec

    The name of the PostScript file to process. Only a single file
    can be specified; wildcards cannot be used.

 output-file-spec

    An optional parameter specifying the name of the new PostScript
    file to output. If no file name is specified, then the output
    file will have the same name as the input file.

4  –  Description

    The PSWRAP utility can be used to convert a PostScript file to
    a file with varying length records, carriage return carriage
    control, and no record longer than the specified length.

                                 WARNING

       This utility cannot produce correct output for some
       PostScript files. PostScript files contain complex programs
       written in the PostScript language. The PSWRAP utility
       understands the PostScript language syntax and can perform
       syntactically correct line wrappings. However, some
       PostScript files contain data which cannot be wrapped, for
       instance, input to the PostScript "readstring" operator.
       Short of actually interpreting the PostScript file, it is
       not possible to determine whether or not it is safe to wrap
       lines in the file. The PSWRAP utility ignores this issue
       and as such could output non-functioning PostScript. Be sure
       to test (e.g., print) the output of PSWRAP before mailing
       it to someone else or deleting the input file. QuarkXPress,
       for example, produces output which PSWRAP will not properly
       wrap.

       If a readstring operator is seen in the PostScript file, a
       PMDF-W-READSTRSEEN warning message will be output.

5  –  Qualifiers

5.1    /RECORD_LENGTH

       /RECORD_LENGTH=length

    Maximum record length to allow in the output file. If not
    specified, a length of 76 bytes will be imposed.

6  –  Examples

      In the following example the file JACS_PAPER2.PS is processed
      and the new file JACS.PS output. The resulting file is then
      printed to assure validity and then mailed to another user.

 $ PMDF PSWRAP JACS_PAPER2.PS JACS.PS
 $ PRINT/QUEUE=PS_PRINTER/NOTIFY JACS.PS
 Job JACS (queue PS_PRINTER, entry 741) started on PS_PRINTER
 $
 Job JACS (queue PS_PRINTER, entry 741) completed
 $ MAIL/SUBJECT="Latest draft" JACS.PS "IN%""BOB@EXAMPLE.COM"""
Close Help