I'm having a little trouble with determining if an XObject in the content stream is visible. I'm trying to use PDEElementIsCurrentlyVisible, but it throws an Adobe exception at this call, and the error message is "Incorrect PDEObject Type". Needless to say, this isn't exactly the most enlightening error message I've ever seen. I'll post the code I'm using, and hopefully someone can tell me where I've gone wrong... Thanks.