## WithDocument(TextDocument) {#withdocument_1} Adds a text document to the document collection for the chat copilot options. ```csharp public OpenAIChatCopilotOpt WithDocument(TextDocument textDoc......ai/) * assembly [Aspose.PDF](../../.. ---...AI](../../..aspose.pdf.ai/) * assembly [Aspose.PDF](../../.. ---...