Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

GroupDocs.Parser for Python via .NET – Code Examples

🚀 Welcome to the GroupDocs.Parser for Python via .NET repository!

This repository contains runnable Python examples for GroupDocs.Parser for Python via .NET.


📖 About GroupDocs.Parser for Python via .NET

GroupDocs.Parser for Python via .NET is a powerful document‑parsing and data‑extraction library. It lets you extract text, images, attachments, barcodes, and structured content from a wide range of document formats, including PDF, Word, Excel, PowerPoint, emails, archives, e‑books and many image types. The library runs on Windows, Linux and macOS and works with any supported Python 3.5+ interpreter.


Key Features

  • Rich text extraction & search – plain or formatted text, page‑level access, case‑sensitive, whole‑word and regex search.
  • Structured content & templates – parse headings, paragraphs, tables, text areas and use templates to pull strongly‑typed fields from invoices, receipts, etc.
  • Images, attachments & barcodes – extract embedded images, file attachments and barcodes from supported documents.
  • OCR for scanned documents – read text from scanned PDFs and raster images, with optional spell‑checking.
  • Wide format & platform support – dozens of document, image and archive formats on Windows, Linux and macOS, all via a unified .NET‑powered API accessed from Python.

Supported Document Formats

Word Processing – DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF, TXT, ODT, OTT
PDF – PDF (full text, images, attachments, forms, barcode scanning)
Markup – XHTML, MHTML, MD, XML
eBooks – CHM, EPUB, FB2, MOBI, AZW3
Spreadsheets – XLS, XLT, XLSX, XLSM, XLSB, XLTX, XLTM, ODS, OTS, CSV, XLA, XLAM, NUMBERS
Presentations – PPT, PPS, POT, PPTX, PPTM, PPSX, PPSM, POTX, POTM, ODP, OTP
Email – PST, OST, EML, EMLX, MSG
Notes – ONE
Archives – 7Z, ZIP, RAR, TAR, GZ, BZ2
Images – BMP, GIF, JP2, JPG/JPEG, PNG, TIF/TIFF, DICOM, DJVU, EMF, J2K, PS, PSD, SVG, SVGZ, WEBP, WMF


Getting Started

Prerequisites

  • Python 3.5+
  • Windows, Linux or macOS with a supported Python runtime

Installation

pip install groupdocs-parser-net

Upgrade to the latest version:

pip install --upgrade groupdocs-parser-net

Quick Example – Extract Text from a PDF

fromgroupdocs.parserimportParserwithParser("sample.pdf") asparser:
text=parser.GetText()
print(text)

Additional Small Samples

Search text in a PDF

fromgroupdocs.parserimportParserwithParser("sample.pdf") asparser:
forareainparser.Search("Total Amount"):
print(f"Page {area.PageIndex}, Rectangle: {area.Rectangle}")

Extract images from a Word document

fromgroupdocs.parserimportParserwithParser("sample.docx") asparser:
images=parser.GetImages()
fori, imageinenumerate(images, 1):
image.Save(f"image{i}.png")

Read document metadata

fromgroupdocs.parserimportParserwithParser("sample.pdf") asparser:
metadata=parser.GetMetadata()
foriteminmetadata:
print(f"{item.Name}: {item.Value}")

📜 Licensing

You can request a 30‑day Temporary License for unrestricted testing:

  1. Visit the Get a Temporary License page.
  2. Follow the instructions to obtain the license file.
  3. Apply the license in your code:
importosfromgroupdocs.parserimportLicenselicense_path=os.path.abspath("./GroupDocs.Parser.lic")
License().set_license(license_path)

GroupDocs.Parser for Python via .NET is distributed under the GroupDocs End‑User License Agreement (EULA). For full pricing details see the pricing page.


🛠️ Support

GroupDocs offers unlimited free technical support for all products, including evaluation versions.


📬 Stay Updated

About

Code examples for GroupDocs.Parser for Python via .NET

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors