Find empty pages in doc
Hi community.
I am trying to find empty pages in doc.
Here is the sample part to count the pages in doc, but I also need to check if page is empty or not.
var doc = app.ActiveDoc;
var bodyPage = doc.FirstBodyPageInDoc;
var counter = 0;
while (bodyPage.ObjectValid()) {
counter++;
bodyPage = bodyPage.PageNext;
}
Console('number of pages is ' + counter);The GetText() function is not working on BodyPage object. I also can not find a way to get TextRange of BodyPage in order to use GetTextForRange() property.
Do you know any way to check if page is empty or not?
Thanks.
