0 Replies Latest reply on May 21, 2014 11:57 PM by Aston Ray

    resizing in adobe indesign through javascript

    Aston Ray

      I have an .indd doc and i am resizing it through below script then exporting it as image, but when i increase the dimensions extra blank spaces are added and when i reduce the dimension image get cropped. How to scale it without croping or without adding extra spaces.

       

      Please help....

       

       

      var myDocument = app.open(File("filename.indd"));

       

      var myPages = myDocument.pages;

       

      myPages.item(0).resize

      (CoordinateSpaces.PAGE_COORDINATES,

      AnchorPoint.CENTER_ANCHOR,

      ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY,[2,2],true);

       

      var myPDFExportPreset = app.pdfExportPresets.item("[Press Quality]");

       

      myDocument.exportFile(

       

      ExportFormat.JPG, File(Folder.desktop + "/anchor3.jpg"), myPDFExportPreset);