.NET SDK sample downloads
Download our ready-to-use C# 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.
Annotation samples
Add annotations to PDFs for review, markup, and redaction workflows.
Add annotations to a PDF
Add multiple annotation types in one workflow.
Add sticky note annotations
Add comment notes for review and collaboration.
Add text markup annotations
Highlight, underline, strike out, and squiggle text.
Add free text annotations
Add editable text boxes as annotations.
Add shape annotations
Add rectangles, ellipses, and other shapes.
Add stamp annotations
Apply stamp-style annotations for approvals or status.
Add link annotations
Create clickable links to URLs or document pages.
Add redaction annotations
Mark content for permanent redaction.
Form field samples
Create, edit, and fill interactive PDF form fields.
Add form fields to a PDF
Create text fields, checkboxes, dropdowns, and signature fields.
Fill PDF form fields
Populate form fields programmatically for automation workflows.
Edit PDF form fields
Update field properties and configuration.
Detect and add form fields
Detect form field regions and add matching AcroForm fields automatically.
Digital signature samples
Add visible and invisible signatures with advanced signing options.
Add a visible signature to a PDF
Place a visible signature field and sign the document.
Add an invisible signature to a PDF
Apply cryptographic signatures without visual appearance.
Advanced digital signatures
Use PAdES-T and stronger hash algorithms for compliance.
Data extraction samples
Extract text and structured data from images using OCR and ICR 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.
Speed up first ICR by downloading requirements
Predownload ICR resources to reduce first-run latency.
Extract data from images using VLM
Use vision language models to extract structured data from images.
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.
Apply OCR to PDF
Add an invisible text layer to scanned documents to make them searchable and selectable.
Apply OCR to a PDF page
Run OCR on a single page without reprocessing the rest of the document.
Extract form fields from image
Detect form fields in image-based documents and export their locations and types as structured JSON.
Extract structured data
Extract schema-shaped JSON data from documents using AI-backed structured extraction.
Generate extraction schema
Generate JSON schemas for structured extraction from example documents.
JSON data extraction
Extract structured JSON data from PDFs for storage, API workflows, and analytics pipelines.
Extract data from specific pages
Extract structured data from selected pages instead of processing the entire document.
Read barcodes with Vision
Read barcodes as part of document layout analysis and export barcode values with surrounding context.
Search document text
Build a searchable index and return ranked passages from document text.
Read text from image
Extract text from images using OCR.
Read text from image in multiple languages
Extract text from images containing multiple languages.
Detect document language
Detect document language and text direction before downstream OCR or routing.
Parse a document into structured content
Turn a PDF or image into structured JSON and Markdown: paragraphs, tables, figures, key-value regions, and words.
AI document understanding samples
Generate descriptions and insights from images using AI models.
Classify documents
Classify documents against your own candidate labels using text and visual layout signals.
Describe images with Claude
Generate image descriptions with Claude models.
Describe images with local AI
Generate image descriptions with local AI models.
Describe images with OpenAI
Generate image descriptions with OpenAI models.
Label form fields with VLM
Assign human-readable semantic labels to detected form fields using a vision language model.