Unable to call getDocumentBounds

I was saying that whatever sample you got that code from, you could use the 1.8 version of that sample, since it couldn’t have called that new method.

Also, if you had searched for “getDocumentBounds”, you should have found: GuidedDragging and SelectionObject