Article View: adobe.scripting.indesign
Article #2621Re: InDesign export to single PDF files with variable Filename
From: loic_aigon
Date: Fri, 12 Dec 2008 10:03
Date: Fri, 12 Dec 2008 10:03
9 lines
1249 bytes
1249 bytes
what you need is to operate throuh a loop.
for(i=0; i<app.activeDocument.pages.length;i++) { //Assuming you labelled the textframe containing the ID with ID var myID = app.activeDocument.pages[i].textFrames.item("ID").contents; //Assuming you labelled the textframe containing the ZIP with ZIP var myZip = app.activeDocument.pages[i].textFrames.item("ZIP").contents;
var myPath = //something like "/disk/folder/" //Set a path to where you want to export the pdf
var myFileName = myID + myPath + myZip + ".pdf";
//Export to PDF - the forum is full of examples, you should find easily what you are asking for with search
}
Loic
Technical Details
Message-ID:
<59b7403e.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7403e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7961642815815b64 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: loic_aigon <loic_aigon@yahoo.fr> Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: InDesign export to single PDF files with variable Filename Message-ID: <59b7403e.0@webcrossing.la2eafNXanI> Date: Fri, 12 Dec 2008 02:03:10 -0800 References: <59b7403e.-1@webcrossing.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit