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())The code above runs in trial mode, which applies a watermark to the output. To remove the watermark, register your license key (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