GroupDocs.Annotation for Python via .NET is a document annotation API that adds, edits, and removes annotations and markup across many document formats. It provides a unified, format-independent interface to draw area and shape annotations, mark up text with highlights, underlines, strikeouts, and squiggly lines, stamp watermarks, images, and hyperlinks, add editable text fields, and attach threaded review comments — then save the result back to its original format with optional page-range and annotation-type filters.
Quick example
fromgroupdocs.annotationimportAnnotatorfromgroupdocs.annotation.modelsimportRectanglefromgroupdocs.annotation.models.annotation_modelsimportAreaAnnotationfromgroupdocs.pydrawingimportColor# Add an area annotation to the first page of a PDFwithAnnotator("input.pdf")asannotator:area=AreaAnnotation()area.box=Rectangle(100,100,200,80)# x, y, width, heightarea.page_number=0# 0-based page indexarea.background_color=Color.yellow.to_argb()# ARGB int, not a Color objectarea.message="Review this section"annotator.add(area)annotator.save("annotated.pdf")
Features
Shape Annotations: Draw area, ellipse, arrow, point, distance, and polyline annotations with configurable color and opacity.
Text Markup: Highlight, underline, strikeout, and squiggly-mark text, replace or redact text, and redact embedded resources.
Content Annotations: Stamp watermarks, image annotations, hyperlinks, and editable text fields onto a document.
Comments & Replies: Attach threaded review comments to any annotation with user and timestamp information.
Manage Annotations: List, update, and remove annotations — all of them or filtered by annotation type.
Save Filters: Render only selected annotation types or a specific page range when saving the result.
Supported File Formats
GroupDocs.Annotation supports a wide range of file formats. For a complete list, see the full list of supported formats.
For practical, runnable code examples covering basic and advanced annotation, see the Developer Guide section. It walks through loading documents, adding every annotation type, attaching comments and replies, listing and removing annotations, and saving results with page-range and annotation-type filters.
AI Agents & LLM Integration
Using an AI coding assistant? The AI Agents & LLM Integration page covers the bundled AGENTS.md reference, the GroupDocs MCP server, and machine-readable documentation.
Technical Support
If you experience any issues or have suggestions, see Technical Support for the available channels — the free support forum and the paid helpdesk. For licensing and evaluation questions, see Licensing and Subscription.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.