🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by Ben_J.D Mon, 19 Jan 2009 03:27
[JS]::[CS3] - Exporting a PDF
#1808
Author: Ben_J.D
Date: Mon, 19 Jan 2009 03:27
15 lines
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
Re: [JS]::[CS3] - Exporting a PDF
#1810
Author: Thomas_B._Nielsen
Date: Mon, 19 Jan 2009 08:13
7 lines
799 bytes
Have you setup the exportPresets?

Look at the ExportPDFWithOptions.jsx from the indesign_scripting_guide_scripts?

Your export settings might be different in the two applications.

(app.pdfExportPreferences)
Re: [JS]::[CS3] - Exporting a PDF
#1832
Author: Ben_J.D
Date: Tue, 20 Jan 2009 01:10
1 lines
723 bytes
Thanks for the repy. I can't see any Export Options that control page size though. Only bleed margins.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads