InterpressToolsDoc.tioga
Bloomenthal, June 8, 1993 2:39 pm PDT
Michael Plass, July 28, 1993 2:22 pm PDT
INTERPRESSTOPOSTSCRIPT
CEDAR10.1 —
InterpressToPostScript
A program to convert an Interpress master to a PostScript file
Jules Bloomenthal, Michael Plass
© Copyright 1992 Xerox Corporation. All rights reserved.
Abstract: InterpressToPostscript is a program that translates Interpress masters (binary formatted) files to PostScript (ASCII) files. The translation has been successful for a wide range of tests but a few functions may still be missing.
Created by: Jules Bloomenthal and Michael Plass
Maintained by: Bloomenthal.parc, Plass.parc
Keywords: Imager, Interpress, PostScript, page description language, printing
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

The Command
InterpressToPostScript (IPtoPS) [output ← ] input [-option]
options include:
  encapsulate: produce encapsulated PostScript
  compact:  at the loss of some legibility of the PostScript document,
    make the document compact.
This program converts a binary Interpress master to an ASCII PostScript file. Both Interpress and PostScript are page description languages that specify text and graphics for the displayed or printed page. Interpress masters are normally printed on Interpress printers; PostScript files may be printed on PostScript printers.
PostScript has roots in the Interpress language and many of the functions are translated without difficulty. The two do not correlate exactly, however, and some functions may not execute as expected. Problems encountered with the PostScript output may be examined using the Ghostscript program.
For justified text, the Interpress master specifies the inter-word spacing, on a line by line (and, within a line, on a font by font) basis. Because commerically available PostScript fonts do not match Interpress fonts, it is not possible for the Interpress master to properly specify inter-word spacing for justified text printed on a PostScript printer. This inter-word spacing can be set during the translation process, assuming the translator has access to PostScript fonts.
This program does not assume such fonts may be accessed. Instead, it instructs the PostScript printer itself to determine the inter-word spacing. Unfortunately, this results in larger PostScript files and some delay in the printing or displaying of the PostScript file. The file expansion and printing delay, however, appear acceptable.
Caveats
The support of sampled colors is far from perfect. The transformation should be correct now for all scan orders and placements, but the following restrictions remain:
grayscale images must use a color operator equivalent to
ImagerColor.NewColorOperatorGrayLinear[sWhite: 255, sBlack: 0]
color images must use a color operator equivalent to
ImagerColor.NewColorOperatorRGB[sWhite: 255, sBlack: 0]
The colors don't tile the plane, so the original should only try to mask the base instance of the tile.
Sampled colors don't work with SHOW, or with MASKPIXEL as masks.
The use of MOVE or TRANS may misalign an image.
As restricted as this is, it will probably work OK with most of the images that turn up in practice.