Article View: adobe.scripting.indesign
Article #16227Re: Script to export to PDF?
From: Iolaire_McFadden
Date: Fri, 03 Oct 2003 13:32
Date: Fri, 03 Oct 2003 13:32
11 lines
1342 bytes
1342 bytes
This code exports a pdf utilizing a PDFExportStyle manually created in InDesign via the user interface and named "CoStar Print". Usually I would use VB in Excel to run this as I do not have the real VB package.
Public myInDesign As InDesign.Application
Public myDocument As InDesign.Document
Sub export_to_pdf()
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.Open("C:\Publications\My Template.indd")
pdf_name = "Name of My PDF File"
myDocument.Export idExportPDF, "C:\Publications\" & pdf_name & ".pdf", False, myInDesign.PDFExportStyles.Item("CoStar Print")
End Sub
Good luck,
iolaire
Technical Details
Message-ID:
<2ccd96fc.12@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd96fc.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,731e1fab0f686b1d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-03 06:37:53 PST From: Iolaire_McFadden@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Script to export to PDF? Message-ID: <2ccd96fc.12@webx.la2eafNXanI> Date: Fri, 3 Oct 2003 06:32:11 -0700 References: <2ccd96fc.-1@webx.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit