🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8239

Export To PDF using a Preset

#8239
From: Norbert D'souza
Date: Wed, 25 Oct 2006 12:42
12 lines
1196 bytes
var myPDFExportPreset = app.pdfExportPresets.item("High Quality Print");
myDoc.exportFile(ExportFormat.pdfType, myFile, myPDFExportPreset);

The above is an excerpt of a huge script so I cannot post it all but the error I get here is:
Invalid value for parameter 'showingOption' of event 'exportFile'. Expected Boolean but received nothing.

What am I doing wrong here? I have actually used the above code from threads in this forum which apparently have worked for others.

If I replace myPDFExportPreset with false, the PDF is created but I think it is using the default preset which is not "High Quality Print"

Cheers
Norbert
Technical Details
Message-ID: <3bc2134d.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e6488cc6320e7b31,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Norbert D'souza" <norbert_ds@yahoo.co.in>
Newsgroups: adobe.scripting.indesign
Subject: Export To PDF using a Preset
Message-ID: <3bc2134d.-1@webcrossing.la2eafNXanI>
Date: Wed, 25 Oct 2006 05:42:11 -0700
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing