Article View: adobe.scripting.indesign
Article #18513Re: Color information EPS or PDF object
From: Olav Kvern
Date: Tue, 18 Mar 2003 17:10
Date: Tue, 18 Mar 2003 17:10
13 lines
1737 bytes
1737 bytes
Rene-- There's no direct way to get the colors defined in an imported PDF or EPS via scripting (or, for that matter, via the user interface). I can think of two approaches: 1. Create a new document. Get its list of colors. Place the EPS or PDF. Get the document's current list of colors and compare the new list with the old list. The added colors are the ones that are defined in the graphics file. 2. Open the EPS/PDF using scripting (EPS and PDF are text files, and both VB and AppleScript are good at reading/writing text files). The color definitions for the EPS are near the start of the file and are quite easy to read. I'm not sure about PDF, but I think it uses some similar scheme. Note, however, that the above approaches will only find the named colors in either graphic--just the swatches that would be added to your InDesign document when you place the EPS or PDF file. Unnamed colors would take considerably more work. Thanks, Ole
Technical Details
Message-ID:
<1de857b3.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de857b3.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,b86936de9c8bd0ce X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-18 09:40:02 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Color information EPS or PDF object Message-ID: <1de857b3.0@WebX.la2eafNXanI> Date: Tue, 18 Mar 2003 09:10:29 -0800 References: <1de857b3.-1@WebX.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit