🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15637

Re: Need help with Export to PDF Command

#15637
From: Peter_Christofferson
Date: Wed, 26 Nov 2003 20:31
13 lines
1148 bytes
This code snippet works for me:

	set myDocument to active document
	set docName to name of myDocument
	choose folder with prompt "Where would you like to save the PDF file?"
	set pdfLocation to the result as string
	set pdfName to pdfLocation & docName & ".pdf"
	tell myDocument
	export myDocument to file pdfName format "Adobe PDF"

You could probably simplify it for your situation.

P.
Technical Details
Message-ID: <2cce82ab.1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2cce82ab.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,fd5530c859b0ca73
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-26 12:38:14 PST
From: Peter_Christofferson@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Need help with Export to PDF Command
Message-ID: <2cce82ab.1@webx.la2eafNXanI>
Date: Wed, 26 Nov 2003 12:31:28 -0800
References: <2cce82ab.-1@webx.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit