Discussion:
Postscript validator - available?
(too old to reply)
Konstantin Shemyak
2005-08-15 06:46:32 UTC
Permalink
Can anyone suggest a validator for Postscript? Currently, writing
an application which generates Postscript code, I can only make
sure that particular Postscript interpreters do not complain on it.
Open source alternatives preferred.

Thanks in advance,

Konstantin.
bugbear
2005-08-15 09:40:07 UTC
Permalink
Post by Konstantin Shemyak
Can anyone suggest a validator for Postscript? Currently, writing
an application which generates Postscript code, I can only make
sure that particular Postscript interpreters do not complain on it.
That's as good as you can do; I would suggest running GhostScript
at a (very!) low resolution for language testing.

BugBear
ktingle
2005-08-15 14:20:05 UTC
Permalink
Post by bugbear
That's as good as you can do; I would suggest running GhostScript
at a (very!) low resolution for language testing.
BugBear
What's the advatage to using a low resolution?
Helge Blischke
2005-08-15 14:21:58 UTC
Permalink
Post by ktingle
Post by bugbear
That's as good as you can do; I would suggest running GhostScript
at a (very!) low resolution for language testing.
BugBear
What's the advatage to using a low resolution?
Nothing but speed. The fastest method to validate a PS job using gs is using
the nullpage device.

Helge
--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
RodW
2005-08-15 10:14:29 UTC
Permalink
Konstantin

Use Ghostscript or similar to convert the file to PDF and watch the error
log.

I often use Acrobat (or Ghostscript) to check hand written code as it (and
Ghostscript) include a Postscript interpreter. If it works for them, it'll
be fine on anything!

Rod Webster
Post by Konstantin Shemyak
Can anyone suggest a validator for Postscript? Currently, writing
an application which generates Postscript code, I can only make
sure that particular Postscript interpreters do not complain on it.
Open source alternatives preferred.
Thanks in advance,
Konstantin.
E. Rosten
2005-08-23 09:11:56 UTC
Permalink
Post by Konstantin Shemyak
Can anyone suggest a validator for Postscript? Currently, writing
an application which generates Postscript code, I can only make
sure that particular Postscript interpreters do not complain on it.
Open source alternatives preferred.
The best you can do is run the program. Of course, there is no complete
solution--if you have complex programming going on, then I think proving
it is valid is like trying to solve the halting problem--ie you have to
run it and see if it fails.

-Ed
--
(You can't go wrong with psycho-rats.) (er258)(@)(eng.cam)(.ac.uk)

/d{def}def/f{/Times findfont s scalefont setfont}d/s{10}d/r{roll}d f 5/m
{moveto}d -1 r 230 350 m 0 1 179{1 index show 88 rotate 4 mul 0 rmoveto}
for /s 15 d f pop 240 420 m 0 1 3 { 4 2 1 r sub -1 r show } for showpage
Jim Land
2005-08-23 17:00:33 UTC
Permalink
Post by Konstantin Shemyak
Can anyone suggest a validator for Postscript? Currently, writing
an application which generates Postscript code, I can only make
sure that particular Postscript interpreters do not complain on it.
Open source alternatives preferred.
You might consider PSAlter. It's a PS programmer's text editor that helps
you debug your PS program by executing it one step at a time, while
displaying the graphics state, the contents of stacks, and comprehensive
error messages. (MSWin) (UK pounds sterling) £200
http://www.quite.com/psalter/

Loading...