RE: EPS information
RE: EPS information
- Subject: RE: EPS information
- From: "Wadson, David" <email@hidden>
- Date: Tue, 31 Dec 2002 10:57:13 -0500
I think the Image Info OSAX can do the CMYK/RGB stuff.
As for the fonts, you can read the EPS file as text using Applescript and
search for the font section. It's usually either at the beginning or end of
the file:
%%PageTrailer
%%EndPage
%%Trailer
%%DocumentSuppliedResources:
%%+ font OAAAAA+Times-Bold
%%+ font OAAAAA+Frutiger-Bold
%%+ font OAAAAA+HelveticaNeue-BlackCondObl
%%+ font OAAAAA+MediciScript
%%DocumentNeededResources:
%%+ font OAAAAA+Arial-Bold
%%+ font OAAAAA+Futura-Bold
%%+ procset (Adobe Acrobat - PDF operators) 1.2 0
%%+ procset (Adobe Acrobat - type operators) 1.2 0
%%+ procset (Adobe Acrobat - general image support) 1.2 0
%%+ procset (Adobe Acrobat - monochrome image support) 1.2 0
%%EOF
Depending on the size of the EPS file, you may have to read it in chunks to
avoid memory errors. You'll also have to parse out the extra characters in
order to get just the name of the font. You probably only needed to concern
yourself with the existence of the "DocumentNeededResources" section as
those are the fonts that aren't embedded in the EPS file. I have written a
program that among other things scans an EPS file for missing fonts.
>
----------
>
From: Jan Machalek
>
Sent: Tuesday, December 31, 2002 10:04 AM
>
To: Apple Script
>
Subject: EPS information
>
>
Hello to all,
>
>
I am trying to get information on EPS pictures, without opening the
>
file(s)
>
in Photoshop (bitmap EPS) or Illustrator (vector EPS). Is it possible to
>
get
>
such information with an addition of some sort? Does anyone knows, or
>
would
>
have any hints for me? The information I am after is whether the file is
>
in
>
CMYK or RGB. And for vector files, what fonts are used in that file. Is it
>
possible to get such information without physically opening a file?
>
>
I am trying to get this information from plain AS, which does not offer
>
much
>
choices on image handling. Quark is better, but I cannot get what I am
>
looking for from there either. AquaSweets are better, but still, no easy
>
answer there either... Hmmm...
>
>
Any hints/pointers/ideas would be greatly appreciated.
>
>
Jan Machalek
>
Montreal, Canada
>
>
P.S.: HAPPY NEW YEAR to all scripters on this list!
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.