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

    Create document with user defined width and height

    Mahesh_JW Level 1

      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);
            myPreset.remove();

       

       

      It Shows the Error "Data is out of range"

      What to do?

       

      Thanks in advance