Exporting A Document As Pdf; Using Current Pdf Export Options; Setting Pdf Export Options - Adobe 27510753 - InDesign CS2 - PC Manual

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

104
Working with Documents in AppleScript
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
end try
try
set omit bitmaps of myPreset to omit bitmaps of
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
end try
try
set ignore spread overrides of myPreset to ignore spread overrides of
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
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
print preferences of myDocument
print preferences of myDocument
print preferences of myDocument
print preferences of myDocument
showing options
Adobe InDesign CS2 Scripting Guide
¬
¬
¬
¬
¬

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents