GroupDocs.Parser for Python via .NET Overview
Leave feedback
On this page
What is GroupDocs.Parser?
GroupDocs.Parser for Python via .NET is a native Python library that extracts text, formatted text, tables, images, metadata, hyperlinks and annotations from PDF, Word, Excel, PowerPoint, OpenDocument, 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. It runs entirely on-premise, requires no Microsoft Office installation, and ships as a pre-built wheel for Windows, Linux, and macOS.
Typical uses include:
AI and search pipelines — feed the plain or Markdown text of PDFs, Office files and emails into a search index, a RAG pipeline or an LLM.
Data extraction — pull the tables out of reports into rows and cells, and read invoice numbers, dates and totals with a template.
Content migration — export the text, images and metadata of a document archive to another system.
Document review — collect the comments reviewers left in Word, PDF and PowerPoint files, with their authors and pages.
Inventory and triage — read file types, page counts and document properties across a folder, archives and email attachments included.
Key Capabilities
Capability
Description
Text extraction
Extract the text of a document or one page, in accurate or fast raw mode, with OCR for scanned pages and images.
No cloud calls, no Microsoft Office install, no network traffic. See System Requirements.
Quick Example
Extract the text of a document with just a few lines of code:
fromgroupdocs.parserimportParserdefquick_example():# Open the document and extract its textwithParser("./sample.pdf")asparser:text=parser.get_text()# get_text() returns None for a format without text extractioniftextisNone:print("Text extraction isn't supported for this format")else:print(text)if__name__=="__main__":quick_example()
sample.pdf is the sample file used in this example. Click here to download it.
Investor relations
Annual Report 2025 | Port Ellery
Annual Report 2025
1. Overview
Harbor Lane Provisions supplies specialty food to 1,265 independent grocers, cafes and restaurants from its
Quayside warehouse in Port Ellery. In 2025 net revenue grew 15.1% to $21.4 million, driven by the Autumn
[TRUNCATED]
To keep the headings, lists and tables of a document, extract its text as Markdown:
fromgroupdocs.parserimportParserfromgroupdocs.parser.optionsimportFormattedTextMode,FormattedTextOptionsdefextract_markdown():# Open the document and extract its text as MarkdownwithParser("./sample.docx")asparser:options=FormattedTextOptions(FormattedTextMode.MARKDOWN)markdown=parser.get_formatted_text(options)ifmarkdownisNone:print("Formatted text extraction isn't supported for this format")else:print(markdown)if__name__=="__main__":extract_markdown()
sample.docx is the sample file used in this example. Click here to download it.
**Supply Agreement**
Harbor Lane Provisions and Northwind Coffee Roasters
# **1. Parties**
**Buyer:** Harbor Lane Provisions, 18 Quayside Road, Port Ellery, represented by Lena Park, Procurement Lead.
**Supplier:** Northwind Coffee Roasters, 4 Roastery Lane, Millbrook, represented by Alex Chen.
[TRUNCATED]