I'm pretty sure of that. And I'm willing to test that first. I.e.,
1. check to see if the document is only one page long (I know how to do that from VBA using the IAC (interapplication communication). If it's not, pop up a message to the user that they have to do something manually.
2. check to see if the one page document is 8.5x11". If not, pop up a message to the user.
If everything is one page, 8.5x11", I'm good.
If there are a lot of exceptions, I'll come up with something that deals with that.
You can use this code to achieve it:
if (this.numPages>1) app.alert("This file has more than one page!");
else {
var cropBox = this.getPageBox("Crop", 0);
var pageWidth = cropBox[2]-cropBox[0];
var pageHeight = cropBox[1]-cropBox[3];
if (pageWidth!=612 && pageHeight!=792) app.alert("The dimensions of this page are not 8.5\" x 11\".");
}
I used the Crop box, as it's the default one, but you can change it to something else, or test multiple boxes, if you wish.