Skip to content

About

Code examples for GroupDocs.Parser for Python via .NET

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

GroupDocs.Parser for Python via .NET - Code Examples

banner

Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License

GroupDocs.Parser for Python via .NET extracts text, formatted text (HTML, Markdown), images, tables, metadata, hyperlinks, barcodes, annotations and the table of contents from PDF, Word, Excel, PowerPoint, email, eBook, archive and image files, 65+ formats in all; it also searches text, reads document structure, recognizes text in scanned pages (OCR), and pulls fields out of invoices and forms with templates.

Features

  • Text: Plain text of a document or one page, in accurate or fast raw mode, with OCR for scanned pages and images.
  • Formatted Text: HTML, Markdown or plain text that keeps headings, lists, tables and emphasis.
  • Search: Keyword and regular-expression search with highlights around each hit.
  • Tables: Extract tables from PDF, Word, spreadsheet and presentation pages, or from page areas you define.
  • Images, Hyperlinks and Barcodes: From whole documents, single pages or rectangular page areas.
  • Annotations: Comments and notes with their author, time and page.
  • Metadata and Structure: Document properties, the table of contents, and the document's structure as XML.
  • Templates: Extract fields and tables from documents that share a layout, such as invoices.
  • Containers: Iterate ZIP, RAR, 7Z and TAR archives, email attachments and PDF portfolios.
  • On-Premise: No MS Office or OpenOffice installation required.

Supported File Formats

GroupDocs.Parser for Python via .NET supports a wide range of file formats, including Word, Excel, PowerPoint, PDF, OpenDocument, Email, eBook, Markup, Image, Archive, and many others. See the full list of supported formats for details.

Get Started

  1. Set Up Environment: Ensure that Python 3.6+ is installed on your system. The package itself supports Python 3.5-3.14; the examples use f-strings and need 3.6+.

  2. Get the Code: Clone or download this repository.

    git clone git@github.com:groupdocs-parser/GroupDocs.Parser-for-Python-via-.NET.git
  3. Navigate to the Examples Folder

    cd ./GroupDocs.Parser-for-Python-via-.NET/Examples
  4. Install Package: install dependencies with pip:

    pip install -r requirements.txt

    Alternatively, download the platform-specific .whl file from the GroupDocs Releases website and install it directly (adjust the filename to your platform — win_amd64, manylinux*_x86_64, macosx_*_arm64, macosx_*_x86_64):

    pip install ./groupdocs_parser_net-26.10.0-py3-none-win_amd64.whl
  5. Configure License (Optional): run_all_examples.py applies a license automatically when the GROUPDOCS_LIC_PATH environment variable holds the absolute path of your .lic file.

    With a license applied, examples run with the full feature set; without one, extracted text stops after about 20 lines and ends with an evaluation notice, and only the first 5 metadata items are returned. Get a free 30-day temporary license for evaluation.

  6. Run the Examples: To run all the examples, execute the following command:

    python ./run_all_examples.py

    You can also run individual examples by navigating to the folder containing the example script and running it. Output files are placed in the same folder as the script file.

Run with Docker

The repository ships a Dockerfile that builds a Linux image with Python 3.13, the system packages the examples need (libicu-dev, libfontconfig1, fonts-liberation, libgdiplus), and the groupdocs-parser-net package preinstalled.

# Build the image
docker build -t parser-examples .

# Run unlicensed (evaluation mode)
docker run --rm parser-examples

# Run with a license mounted from the host
docker run --rm \
    -v /path/to/license:/lic:ro \
    -e GROUPDOCS_LIC_PATH=/lic/your-license.lic \
    parser-examples

On Windows with Git Bash, set export MSYS_NO_PATHCONV=1 before docker run to prevent MSYS from rewriting the mounted license path.

AI agents and LLM integration

The groupdocs-parser-net wheel ships a bundled AGENTS.md reference for AI coding assistants (Claude Code, Cursor, GitHub Copilot in agent mode, and similar). Once the package is installed, the reference is discovered automatically at groupdocs/parser/AGENTS.md — it covers canonical imports, quick-start usage, licensing, the API surface table, and troubleshooting.

For on-demand documentation lookups, combine the bundled AGENTS.md with the GroupDocs MCP server at https://docs.groupdocs.com/mcp. See the AI agents and LLM integration page for the per-tool setup snippets.

Continuous integration

The .github/workflows/ directory contains the CI matrix that runs the full example suite on every push. The matrix is reproducible locally via the Dockerfile above.

More Resources

Find additional details and examples in the GroupDocs.Parser for Python via .NET documentation.

We also offer GroupDocs.Parser packages for other platforms:


Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License

About

Code examples for GroupDocs.Parser for Python via .NET

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages