SDK Samples

Python SDK

Document conversion, redaction, form fill, and template generation.

17 samples6 categoriesProduct home →Guides →
How these samples work

This Next.js frontend calls a FastAPI backend that wraps the Nutrient Python SDK. The frontend handles uploads and displays results; the backend performs the conversions, signing, and template population.

01

Office to PDF

Convert Word, Excel, and PowerPoint documents to PDF format

Conversion
02

Markdown to PDF

Convert Markdown documents to PDF format

Conversion
03

PDF to HTML

Convert PDF documents to HTML for web display

Conversion
04

PDF to Office

Convert PDF documents to Word and Excel formats

Conversion
05

Digital Signature

Apply digital signatures to PDF documents with certificates

Signatures
06

PDF Redaction

Permanently remove sensitive content from PDF documents

Editor
07

Form Field Detection

Detect form fields in an unfielded PDF with the Nutrient SDK's ML detector

Forms
08

PDF Form Fill

Programmatically fill PDF form fields with data and generate a filled PDF

Forms
09

VLM Transcription

Transcribe handwriting via Vision.describe() with a custom prompt — works on cursive where ICR doesn't

Extraction
10

OCR Extraction

Extract printed text from images with Adaptive OCR — high-throughput, optimized for purely printed content

Extraction
11

ICR Extraction

Extract structured document data from images using the Nutrient SDK's ICR engine — printed pages and hand-printed forms

Extraction
12

VLM Extraction

Extract structured content from documents without native form fields (e.g. invoices) via VLM-enhanced ICR with Claude

Extraction
13

Table Extraction

Extract structured tables (rows, columns, spanning cells) from an invoice via VLM-enhanced extraction with Claude

Extraction
14

Document to Markdown

Convert a complex document to clean Markdown for RAG and LLM ingestion pipelines

Extraction
15

Field Extraction

Pull labeled fields into clean values — native key-value regions plus schema-driven extraction with a custom prompt

Extraction
16

Image Alt Text

Generate WCAG-style accessibility descriptions for images at standard or detailed level

Extraction
17

Word Template Generation

Generate PDF documents from Word templates populated with JSON data

Templates