19
3
Documents
The work you do in InDesign revolves around documents—creating them, saving them, printing or
exporting them, and populating them with page items, colors, styles, and text. Almost every
document-related task can be automated using InDesign scripting.
This chapter shows you how to do the following
X Perform basic document-management tasks, including:
Z Creating a new document.
Z Opening a document.
Z Saving a document.
Z Closing a document.
X Perform basic page-layout operations, including:
Z Setting the page size and document length.
Z Defining bleed and slug areas.
Z Specifying page columns and margins.
X Change the appearance of the pasteboard.
X Use guides and grids.
X Change measurement units and ruler origin.
X Define and apply document presets.
X Set up master pages (master spreads)
X Set text-formatting defaults.
X Add XMP metadata (information about a file).
X Create a document template.
X Create watermarks.
X Apply different sizes to different pages (multiple pages sizes).
X Print a document.
X Export a document as Adobe PDF.
X Export pages of a document as EPS.
We assume that you have already read Adobe InDesign CS5 Scripting Tutorial and know how to create,
install, and run a script.