Reply To: Help with creating InDesign Export Presets …

Home Page / Forums / General InDesign Topics (CLOSED) / Help with creating InDesign Export Presets … / Reply To: Help with creating InDesign Export Presets …

#114651

Hi,

your mentioned script does export a active document to a specified location. It doesn’t honor page ranges.

It seems not possible, to save page ranges in a preset either (same with “view after export”). But you can set those values inside a script. From Adobes examples:

    
//using the current PDF export settings.
    var myDocument = app.documents.item(0);
    with(app.pdfExportPreferences){
    //Enter the names of the pages you want to export in the following line.
    //Note that the page name is not necessarily the index of the page in the
    //document (e.g., the first page of a document whose page numbering starts
    //with page 21 will be "21", not 1).
    	pageRange = "1, 3-6, 7, 9-11, 12";
    }
    myDocument.exportFile(
		ExportFormat.pdfType,
        File(Folder.desktop + "/ExportPageRangeAsPDF.pdf"),
        false
	);
    //</fragment>

best
Kai

This article was last modified on February 26, 2019

Comments (0)

Loading comments...