summaryrefslogtreecommitdiff
path: root/doc/src/Ps2epsi.rst
blob: 053674f1ee45cb11002d7a5f7339ecb2d73f123b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.. title:: Convert PostScript to Encapsulated PostScript Interchange Format

.. meta::
   :description: The Ghostscript documentation
   :keywords: Ghostscript, documentation, ghostpdl


.. _Ps2epsi.htm:


Convert PostScript to Encapsulated PostScript Interchange Format
======================================================================




The information in this document was contributed by `George Cameron`_; please direct any questions about it to him. Because the software described here is no longer being maintained, this document may be obsolete, or inconsistent with ``ps2epsi.1``.

For other information, see the :ref:`Ghostscript overview<Ghostscript Introduction>`.



Overview
-----------

``ps2epsi`` is a utility based on Ghostscript, which takes as input a PostScript file and generates as output a new file which conforms to Adobe's Encapsulated PostScript Interchange (EPSI) format, a special form of Encapsulated PostScript (EPS) which adds to the beginning of the file, as PostScript comments, a low-resolution monochrome bitmap image of the final displayed page. Programs which understand EPSI can use this bitmap as a preview on screen of the full PostScript page. The displayed quality is often not very good, but the final printed version uses the "real" PostScript, and thus has the normal full PostScript quality. Framemaker can use EPSI.

The `Adobe Framemaker`_ DTP system is one application which understands EPSI files, and ``ps2epsi`` has been tested using Framemaker 3.0 on a Sun workstation with a number of PostScript diagrams from a variety of sources. Framemaker on other platforms may also be able to use files made with ``ps2epsi``, although this has not been tested.


Usage
-------

MS-DOS
~~~~~~~~~~

Using the supplied batch file ``ps2epsi.bat``, the command is:

.. code-block:: bash

   ps2epsi infile.ps outfile.epi


where ``infile.ps`` is the original PostScript file, and ``outfile.epi`` is the output EPSI file to be created.


Unix
~~~~~~~~

Using the supplied shell script ``ps2epsi``, the command is:

.. code-block:: bash

   ps2epsi infile.ps [outfile.epsi]

where ``infile.ps`` is the input file and ``outfile.epsi`` is the output EPSI file to be created. If the output filename is omitted, ``ps2epsi`` generates one from the input filename; and any standard extension (``.ps``, ``.cps``, ``.eps`` or ``.epsf``) of the input file is replaced in the output file with the extension ``.epsi``.


Limitations
------------------

Not all PostScript files can be encapsulated, because there are restrictions in what is permitted in a PostScript file for it to be properly encapsulated. ``ps2epsi`` does a little extra work to try to help encapsulation, and it automatically calculates the bounding box required for all encapsulated PostScript files, so most of the time it does a pretty good job. There are certain to be cases, however, when encapsulation fails because of the nature of the original PostScript file.


Files
--------

.. list-table::
   :widths: 50 50
   :header-rows: 1

   * - File
     - Contents
   * - ``ps2epsi.bat``
     - MS-DOS batch file
   * - ``ps2epsi``
     - Unix shell script
   * - ``ps2epsi.ps``
     - Ghostscript program which does the work








.. External links

.. _Adobe Framemaker: http://www.adobe.com/products/framemaker/main.html
.. _George Cameron: george@bio-medical-physics.aberdeen.ac.uk

.. include:: footer.rst