Integrate Nutrient Python SDK into any Python application
This guide helps you integrate Nutrient Python SDK, enabling you to build tools that automatically handle its download and updates for document processing capabilities (PDF, Word, Excel, and more). By the end, you’ll be able to open a Word document and convert it to PDF using Nutrient Python SDK.
Requirements
- Python 3.8 or higher
- pip (Python package manager, included with Python)
Installation
Use pip to install Nutrient Python SDK:
pip install nutrient-sdkExample usage
Below is an example demonstrating how to open a Word document and convert it to PDF using Nutrient Python SDK:
from nutrient_sdk import Document, License, PdfExporter
# Register your license key (optional, leave blank for trial mode)License.register_key("your-license-key")
# Open and convert a documentwith Document.open("input.docx") as doc: doc.export("output.pdf", PdfExporter())For trial mode, register an empty key with
License.register_key(""), which applies a watermark to the output. To remove the watermark, register your license key instead (replace"your-license-key"with your actual key). Contact Sales to obtain a license.
Features
- PDF editing — Add pages, edit metadata, and merge documents
- Document conversion — Convert between PDF, Word, Excel, PowerPoint, and HTML
- Template processing — Generate documents from Word templates with dynamic content
- Data extraction — Extract text and structured data from images and documents using OCR and ICR
What’s next
- Explore the Python SDK guides for more features
- Contact Sales for licensing information
Frequently asked questions
Install it with pip: pip install nutrient-sdk. It requires Python 3.8 or higher, and pip ships with Python — no other system dependencies are needed.
Python 3.8 and higher. The SDK is a standard Python package, so it runs anywhere CPython does — local scripts, servers, containers, and CI pipelines.
Open the document and export it with Document.open("input.docx") and doc.export("output.pdf", PdfExporter()). The same pattern converts between PDF, Word, Excel, PowerPoint, and HTML — see the conversion guides.
No. Register an empty key with License.register_key("") to run in trial mode, which applies a watermark to the output. Contact Sales to obtain a license key that removes it.
It also covers PDF editing (pages, metadata, and merging) and data extraction (text and structured data via OCR and ICR). Browse everything in the Python SDK guides.