Article View: adobe.scripting.indesign
Article #1808[JS]::[CS3] - Exporting a PDF
From: Ben_J.D
Date: Mon, 19 Jan 2009 03:27
Date: Mon, 19 Jan 2009 03:27
15 lines
1301 bytes
1301 bytes
Hi folks, I am having some difficulties exporting a pdf using javascript. The code I am using looks like this: myDocument.exportFile( ExportFormat.PDF_TYPE, new File(pathToFile) ); myDocument is a business card sized document. When my script is run from CS4 on a mac this code works fine. It exports a business card sized PDF. However in CS3 on Windows it exports the artwork into a letter sized PDF. I don't think that it is a Windows problem I just happen to only have access to CS3 on windows and CS4 on a mac. I'd appreciate if anyone can shed some light on this and give me some pointers on how I can ensure my pdf is the correct size (the same size as the document). cheers Ben
Technical Details
Message-ID:
<59b78c4b.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,55be54363fc4022c,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Ben_J.D@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS]::[CS3] - Exporting a PDF Message-ID: <59b78c4b.-1@webcrossing.la2eafNXanI> Date: Sun, 18 Jan 2009 19:27:19 -0800 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 21