Python SDK sample downloads
Download our ready-to-use Python code samples for document processing, editing, extraction, and conversion tasks. Each sample includes complete source code and shows how to implement common document workflows in your applications.
Document Editor samples
These samples demonstrate how to manipulate PDF documents programmatically, including adding pages, editing metadata, and merging files.
Add custom pages to PDFs
Add custom pages with specific dimensions to existing PDF documents. This is useful for inserting signature pages, cover pages, or blank pages for notes.
Edit PDF metadata
Modify document properties like title, author, subject, and keywords.
Merge a PDF into another PDF
Combine multiple PDF documents into a single file.
Data extraction samples
These samples demonstrate how to extract data from images using advanced recognition technologies.
Extract data from images using ICR
Extract structured data from images using intelligent content recognition (ICR). This uses local AI models for offline document understanding, and detecting tables, equations, and semantic elements without external API calls.
Extract data from images using OCR
Extract text from images using optical character recognition (OCR). This is optimized for speed and high-throughput scenarios with fast text extraction and minimal overhead.
Document conversion samples
These samples show how to convert between different document formats, including Office documents, PDFs, and HTML.
Word document to PDF
Convert Microsoft Word documents (.docx) to PDF format.
Word document to PDF/UA
Convert Word documents to PDF/UA (universal accessibility)-compliant format. This is useful for legal documents, government forms, and accessibility compliance.
Excel document to PDF
Convert Microsoft Excel spreadsheets to PDF format.
PowerPoint document to PDF
Convert Microsoft PowerPoint presentations to PDF format.
PDF to Word document
Convert PDF files back to editable Microsoft Word documents.
PDF to Excel document
Extract and convert PDF content to Microsoft Excel format.
PDF to PowerPoint document
Convert PDF files to Microsoft PowerPoint presentations.
PDF to HTML
Convert PDF documents to HTML format for web display.
Template processing samples
These samples demonstrate how to generate documents from templates with dynamic content and convert them to accessible formats.
Word template generation
Generate documents from Word templates with dynamic content. This is useful for creating contracts, reports, and personalized documents.
Word template to PDF/UA
Convert Word templates to PDF/UA-compliant documents. This is useful for accessible template-based document generation.
What’s next
After exploring these samples:
- Get started with integration — Follow our Python SDK getting started guide for production setup.
- Explore API documentation — Check out our Python API reference for complete method documentation.
- Need help? — Contact our Support team for questions and assistance.