Adobe 27510753 Scripting Guide - Page 112
Exporting a document as PDF, Using current PDF export options, Setting PDF export options
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
104 Working with Documents in AppleScript Adobe InDesign CS2 Scripting Guide set profile of myPreset to profile of print preferences of myDocument end try try set OPI image replacement of myPreset to OPI image replacement of ¬ print preferences of myDocument end try try set omit bitmaps of myPreset to omit bitmaps of ¬ print preferences of myDocument end try try set omit EPS of myPreset to omit EPS of print preferences of myDocument end try try set omit PDF of myPreset to omit PDF of print preferences of myDocument end try try set flattener preset name of myPreset to flattener preset name of ¬ print preferences of myDocument end try try set ignore spread overrides of myPreset to ignore spread overrides of ¬ print preferences of myDocument end try display dialog ("Done!") end tell end tell Exporting a document as PDF InDesign scripting offers full control over the creation of PDF files from your page layout documents. Using current PDF export options The following script exports the current document as PDF using a PDF export preset: --ExportPDF.as --An InDesign CS22 AppleScript --Assumes you have a document open --export command parameters are: --Format as (use either the pdf type enumeration or the string "Adobe PDF") --To as string (you'll have to fill in a complete file path) --Showing options as boolean (setting this option to true displays --the PDF Export dialog box) --Using as PDF export preset (or a string that is the name of a PDF export preset) tell application "Adobe InDesign CS2" tell active document export format PDF type to "yukino:test.pdf" using "myTestPreset" without ¬ showing options end tell end tell Setting PDF export options The following example sets the PDF export options before exporting: --ExportPDFWithOptions.as --An InDesign CS2 AppleScript --Sets pdf export preferences. tell application "Adobe InDesign CS2" --Get the bleed amounts from the document's bleed. tell document preferences of active document