Get a Document's page count, page sizes, and file type with an AI agent over MCP before rendering any page — and handle password-protected files up front....Legal Security Events Acquisition GroupDocs Documentation / GroupDocs...before rendering How to check a document's pages before rendering them...