Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What's the difference between ps and eps?

977 views
Skip to first unread message

Erik Per

unread,
Aug 8, 2000, 3:00:00 AM8/8/00
to
What's the difference beween the ps and eps format?


Erik

Ross Maloney

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
The only difference that I am aware of is that eps contains an
additional comment line towards the start of the file. That
line contains the "containment box" dimensions which surrounds
the postscript drawing generated by the rest of the file. In
cases such as LaTeX, that containment box can be read and space
allowed for in the page layout. However, because the containment
box is withing a comment, the eps file can be printed and handled
as though it was a normal postscript (ps) file.

Ross

Erik Per wrote:
>
> What's the difference beween the ps and eps format?
>
> Erik

--
+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-
Ross Maloney | email: rmal...@central.murdoch.edu.au
School of Information Technology | telephone: (uni) 8 9360 6270
Murdoch University | (home) 8 9364 1927
Perth, W.A., Australia | A graduate student aiming to understand
+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-=+-


Robin Fairbairns

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
Ross Maloney <rmal...@murdoch.edu.au> wrote (quoting upside-down --
i've corrected that):

>Erik Per wrote:
>> What's the difference beween the ps and eps format?
>
>The only difference that I am aware of is that eps contains an
>additional comment line towards the start of the file. That
>line contains the "containment box" dimensions which surrounds
>the postscript drawing generated by the rest of the file. In
>cases such as LaTeX, that containment box can be read and space
>allowed for in the page layout.

there are commands (showpage is an obvious example, but there's a list
somewhere in the postscript reference manual) which may not appear in
encapsulated postscript. the most common cause of failure when
including supposed eps files is inclusion of one of these forbidden
commands, which stymie the postscript that typical dvi->ps programs
generate.

what's more, the boundingbox comment you refer to is pretty regularly
included in non-encapsulated postscript. (dvips does so, by default,
with my config files.)

>However, because the containment
>box is withing a comment, the eps file can be printed and handled
>as though it was a normal postscript (ps) file.

actually, often not: since the eps file doesn't contain a showpage
command, some printers will solemnly read and render the postscript,
and then just throw the results away when the end-job command appears.
--
Robin Fairbairns, Cambridge

Peter Wyzlic

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
r...@pallas.cl.cam.ac.uk (Robin Fairbairns) writes:

> >The only difference that I am aware of is that eps contains an
> >additional comment line towards the start of the file. That
> >line contains the "containment box" dimensions which surrounds
> >the postscript drawing generated by the rest of the file. In
> >cases such as LaTeX, that containment box can be read and space
> >allowed for in the page layout.
>

[showpage and boundingbox]

Just to mention it. One big difference is: eps is not multipage.
Here at home I have the postscript book of Thomas Merz. He refers to
Adobe's "Red Book" and mentions certain forbidden operators like
initmatrix, initclip, initgraphics, setpagedevice etc.

Peter

Tim Love

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
Peter Wyzlic <pwy...@uni-bonn.de> writes:

>Just to mention it. One big difference is: eps is not multipage.
>Here at home I have the postscript book of Thomas Merz. He refers to
>Adobe's "Red Book" and mentions certain forbidden operators like
>initmatrix, initclip, initgraphics, setpagedevice etc.

It is/was covered in the Postscript FAQ too. I made some notes in
http://www-h.eng.cam.ac.uk/help/tpl/graphics/postscript.html


Donald Arseneau

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
r...@pallas.cl.cam.ac.uk (Robin Fairbairns) writes:

> Ross Maloney <rmal...@murdoch.edu.au> wrote (quoting upside-down --
> i've corrected that):
> >Erik Per wrote:
> >> What's the difference beween the ps and eps format?
>

> there are commands (showpage is an obvious example, but there's a list
> somewhere in the postscript reference manual) which may not appear in
> encapsulated postscript.
>

> >However, because the containment
> >box is withing a comment, the eps file can be printed and handled
> >as though it was a normal postscript (ps) file.
>
> actually, often not: since the eps file doesn't contain a showpage
> command, some printers will solemnly read and render the postscript,
> and then just throw the results away when the end-job command appears.

That's why showpage *is* allowed in eps. The documentation says
that a postscript renderer should ignore a showpage command when
including eps in another postscript document/image.

(As I recall, the specs don't *require* that showpage be accepted
and ignored, but they say it should be.)

Donald Arseneau as...@triumf.ca

Ilya Zakharevich

unread,
Aug 9, 2000, 3:00:00 AM8/9/00
to
[A complimentary Cc of this posting was sent to Erik Per
<ep...@jungle.bt.co.uk>],
who wrote in article <8mpa0q$lhj$1...@pheidippides.axion.bt.co.uk>:

> What's the difference beween the ps and eps format?

Here is a related question: our print job processor accepts
"well-formed postscript" only (one with all the required %%fields
present). I spent a hour or more looking for a command-line tool to
wrap an EPS file (produced by pbmtops - sp?) into such a PS file, but
utterly failed. (So our sysadm needed to do it manually...)

Any hints?

Ilya

Peter Wyzlic

unread,
Aug 10, 2000, 3:00:00 AM8/10/00
to
il...@math.ohio-state.edu (Ilya Zakharevich) writes:

> Here is a related question: our print job processor accepts
> "well-formed postscript" only (one with all the required %%fields
> present). I spent a hour or more looking for a command-line tool to
> wrap an EPS file (produced by pbmtops - sp?) into such a PS file, but
> utterly failed. (So our sysadm needed to do it manually...)

Perhaps ghostscript with -sDEVICE=psmono or -sDEVICE=pswrite.

Peter

0 new messages