Re: How to read the eps file information?



George White wrote:

On Sat, 30 Jan 2010, Helge Blischke wrote:

maria wrote:

Hi all,

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.

Thanks

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.

Helge

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.

Yes, but as PostScript is an interpeted language, it is much easier to
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.

Helge


.



Relevant Pages

  • Re: How to read the eps file information?
    ... PostScript to Adobe Illustrator format. ... 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. ... To write a driver you need to be a C programmer as well as a PostScript programmer. ...
    (comp.lang.postscript)
  • Re: printing to Kyocera FS-1030D
    ... if you'd be able to switch it to PostScript ... ghostscript to know about this printer? ... There are several possible drivers you could use; pcl3 pxlmono pxlcolor. ... The gutenprint driver also supports your printer directly. ...
    (freebsd-questions)
  • Re: PDF generation
    ... MW's PostScript 3 printer driver on the icon bar but it doesn't need to be ... - "Save as PDF" uses the WimpSlot the installed Ghostscript requires rather ...
    (comp.sys.acorn.misc)
  • Re: advice: writing a printer driver
    ... > have any info regarding postscript driver source code? ... You should probably start by reading some source from ghostscript. ...
    (comp.os.linux.hardware)
  • Re: How to read the eps file information?
    ... PostScript to Adobe Illustrator format. ... have the option to implement the tools as a device driver rather than ... need to be a C programmer as well as a PostScript programmer. ... A device driver has access to information not available to the PS intepreter such as where fonts are found on disk -- could be useful in a diagnostic role. ...
    (comp.lang.postscript)