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:

Terminal window
pip install nutrient-sdk

Example 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 document
with 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

What’s next