1 Reply Latest reply on Jun 10, 2010 3:40 AM by Kasyan Servetsky

    Create document with user defined width and height


      Hi all,


      This is my code


          var myW = "131pt";
           var myH = "41pt";
           var myPreset =  app.documentPresets.add();
           myPreset.pageWidth = myW;
           myPreset.pageHeight = myH;
           var myDoc =  app.documents.add(true,myPreset,undefined);



      It Shows the Error "Data is out of range"

      What to do?


      Thanks in advance