Python API reference
Complete API reference for Nutrient Python SDK.
Installation
pip install nutrient-sdkQuick start
from nutrient_sdk import Document
# Open a PDF and convert it to a Word documentwith Document.open("input.pdf") as document: document.export_as_word("output.docx") print("Successfully converted to output.docx")Classes
| Class | Description |
|---|---|
Document | Represents a document that can be opened, edited, and exported in various formats. Provides a uni… |
License | Manages licensing for the Nutrient Native SDK. Provides methods to register license keys and trac… |
Vision | Provides machine learning and computer vision capabilities for document processing. Enables AI-po… |
Modules
| Module | Description |
|---|---|
editors | Document editor classes for PDF and Word manipulation |
editors.pdf.annotations | PDF annotation types (highlight, text, shape, stamp, and more) |
editors.pdf.formfields | PDF form field types (text, check box, radio, list, signature) |
editors.pdf.pages | PDF page access, metadata, and page collections |
enums | Enumeration types used across the SDK |
exceptions | SDK-specific exception classes raised by operations that can fail |
exporters | Exporters for PDF, image, Markdown, HTML, SVG, Word, spreadsheet, and presentation formats |
interfaces | Interface definitions implemented by SDK types |
settings | Configuration objects controlling SDK behavior |
signing | Digital signatures, appearance, and timestamp configuration |
types | Primitive value types (Color, Rectf, Vec2f) |
Statistics
- Classes: 111
- Enumerations: 35