Re: How to read the eps file information?
- From: Helge Blischke <h.blischke@xxxxxxx>
- Date: Sat, 30 Jan 2010 22:04:50 +0100
George White wrote:
On Sat, 30 Jan 2010, Helge Blischke wrote:Yes, but as PostScript is an interpeted language, it is much easier to
Could you please advise me how to find out the below information in
illustrator(.eps) file. Please note i need to get all below points
without opening the eps file through illustrator applicaton.
1) How to get the Paths count and pathPoints count.
2) How to know the Gradient/Pattern color used in the eps file or not
3) Find out the Text size and Text font information.
4) Find out the Text and pathItems color values(percentages) for
filled and stroke (like Cyan, Magenta, Yellow, Black and GRAY values)
seperately for every items.
It is quite common for PostScript programmers to redefine some of
the basic PostScript operators in a file to print information.
An example is the ps2ai.ps file in ghostscript, which converts
PostScript to Adobe Illustrator format.
And also kindly advise me is there any problem to find out these
information without help of illustrator application.
Write a PostScript program that analyzes the .eps file. But be warned,
I guess it is at least about one to two months of hard work for an
experienced PostScript pfogrammer.
This would be a nice 6-months project for someone who wants to become
an experienced PostScript programmer.
Tools like this would also be useful additions to ghostscript, where you
have the option to implement the tools as a device driver rather than
being limited to PostScript. An existing example of a driver that
extracts information from an EPS file is the bbox device. Using the
driver approach ties you to the ghostscript interpreter, but since that is
widely available it shouldn't be a big concern. To write a driver you
need to be a C programmer as well as a PostScript programmer.
modify a PostScript pfogram according to changing needs as is modifying a
ghostscript device, isn't it? But, I admit, to a certain extent it is a
matter of taste which programming language to use.
- Prev by Date: Re: Outlined text prints bolder
- Next by Date: Re: Outlined text prints bolder
- Previous by thread: Re: How to read the eps file information?
- Next by thread: Outlined text prints bolder