Answered
How do I create a new document with the same dimensions as the original document?
If you make a new document with dimensions as in the original document, then the dimensions of the artboard do not match at all in the new document, how can this be handled?
var sourceDoc = app.activeDocument;
var newDoc = app.documents.add(DocumentColorSpace.CMYK);
newDoc.artboards[0].artboardRect = sourceDoc.artboards[0].artboardRect;
