Options and Configuration

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Parser MCP server lets your agent work with files on your machine; they are never uploaded. It runs in Docker: replace /path/to/documents with the folder it may use.

claude mcp add groupdocs-parser -- docker run --rm -i -v /path/to/documents:/data ghcr.io/groupdocs-parser/parser-net-mcp:latest
Folders, licensing and more →

Most parsing scenarios work with defaults, but groupdocs.parser.options exposes classes to control how documents are opened and processed. Use these options to handle passwords, guide format detection, or tune search and text extraction modes.

Apply load options

from groupdocs.parser import Parser
from groupdocs.parser.options import LoadOptions

# Pass a password and open from a stream
with open("./protected.pdf", "rb") as stream:
    options = LoadOptions("123456")
    with Parser(stream, options) as parser:
        reader = parser.get_text()
        print(reader.read_to_end() if reader is not None else "Text extraction isn't supported.")

The following sample file is used in this example: protected.pdf

Payroll summary - December 2025
Confidential: prepared by Finance for the directors of Harbor Lane Provisions.
Department                              Headcount          Gross pay            Employer costs
Warehouse                               21                 $71,400              $13,900
Drivers                                 9                  $29,700              $5,800
Sales and customer service              7                  $27,300              $5,300
Procurement               
[TRUNCATED]

Download full output

When to use other options

  • Search options — control case-sensitivity or regex mode when calling search APIs.
  • Text/formatting options — request formatted text (HTML/Markdown/plain) where supported.
  • Parser settings — adjust resource loading or timeouts for specific environments.

Check the groupdocs.parser.options namespace for the complete list of option classes and their parameters, and pass them to the corresponding methods as documented in the API reference.