Article View: adobe.scripting.indesign
Article #18644FlattenerStyles in conjuction with PDFExportPreferences
From: Peter May
Date: Fri, 28 Feb 2003 10:00
Date: Fri, 28 Feb 2003 10:00
26 lines
1966 bytes
1966 bytes
My apologies in advance if this has already been answered but I could not find any matches using the search facility.
I am successfully creating a PDFExportPreference object and can use it to create for instance, Adobe 4 and Adobe 5 PDFS.
I am successfully creating a FlattenerStyle. I believe this to be working since the first time I create the style I get no messages. But if I then create a style with the same name then I get an error message regarding the line where the NAME property is set.
I link the flattener style to the FlatteneStyle property of the PDFExportPreferences object as follows:
361 $pdfexportpreferences->{'FlattenerStyle'} = $InDesign->FlattenerStyles->Item("Peter May");
Peter May being the name of the flattener style I created =)
When run I get the following error:
The property is not applicable in the current state.
Win32::OLE(0.1502) error 0x80020009: "Exception occurred"
in PROPERTYPUTREF "FlattenerStyle" at ImageServer.pl line 361
Any advice what-so-ever would be greatfully received.
Thank you.
I am happy to post more of my code if that would help.
Language is Perl but is syntactically close to VB for these lines. Swop "->" for "."
Technical Details
Message-ID:
<1de81235.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9a3a2afbcc4404a0,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-28 02:07:32 PST From: "Peter May" <peter_may@umbro.co.uk> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: FlattenerStyles in conjuction with PDFExportPreferences Message-ID: <1de81235.-1@WebX.la2eafNXanI> Date: Fri, 28 Feb 2003 02:00:35 -0800 Lines: 34 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit