Adobe 27510753 Scripting Guide - Page 146
Exporting a document as PDF, Using current PDF export options
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 146 highlights
138 Working with Documents in JavaScript Adobe InDesign CS2 Scripting Guide catch(e){} try{ myPreset.sourceSpace = sourceSpace; } catch(e){} try{ myPreset.intent = intent; } catch(e){} try{ myPreset.crd = crd; } catch(e){} try{ myPreset.profile = profile; } catch(e){} try{ myPreset.opiImageReplacement = opiImageReplacement; } catch(e){} try{ myPreset.omitBitmaps = omitBitmaps; } catch(e){} try{ myPreset.omitEPS = omitEPS; } catch(e){} try{ myPreset.omitPDF = omitPDF; } catch(e){} try{ myPreset.flattenerPresetName = flattenerPresetName ; } catch(e){} try{ myPreset.ignoreSpreadOverrides = ignoreSpreadOverrides; } catch(e){} alert("Done!"); } 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.jsx //An InDesign CS2 JavaScript //Assumes you have a document open and that you have defined a PDF export //preset named "prepress". //document.export parameters are: //Format as (use either the ExportFormat.pdfType enumeration //or the string "Adobe PDF") //To as File //ShowingOptions 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)