§SelectPdf · .NET 10 · Razor Pages
PDF Library for .NET samples.
SelectPdf for .NET 10 creates, edits, reads and manipulates PDF documents in .NET — no third-party dependencies, no Adobe software required. Each sample below ships with its full C# source.
Pdf Creation Basics
12 samples
Getting Started
Create a PDF and write text
Document Properties
Set title, author, keywords
Viewer Preferences
Control how viewers open the PDF
Page Settings
Size, orientation, margins
Security Settings
Passwords and permissions
Element Positions
Place elements precisely
Text Element
Draw styled text
Image Element
Place images in the PDF
Html Element
Render HTML into a region
Graphic Elements
Lines, rectangles, shapes
Links
Internal and external links
Bookmarks
Document outline tree
Advanced Topics
19 samples
Templates
Reusable page templates
Headers & Footers
Repeat content per page
Stamps
Stamp content onto pages
Watermarks
Background watermarks
Page Numbering
Add page numbers
Merge
Combine multiple PDFs
Split
Split a PDF into parts
Digital Signatures
Sign documents
Modify Existing PDF
Edit an existing document
Compression
Shrink file size
Advanced Security
Fine-grained security + signing
Form Filling
Fill AcroForm fields
Portfolio
PDF portfolios / packages
Accessible PDF (PDF/UA)
Tagged output for screen readers
PDF/A Archiving
PDF/A-1 to PDF/A-4 conformance
Electronic Invoice
ZUGFeRD / Factur-X hybrid invoice
Resize / Scale
Resize or scale pages
Redaction
Remove text and images for good
Existing PDF Headers & Footers
Headers/footers on existing PDFs
Html to Pdf Converter
24 samples
Getting Started
Convert HTML to PDF
Convert URL to PDF
Render a web page to PDF
Convert HTML Code
Render an HTML string to PDF
Document Properties
Metadata on converted PDFs
Viewer Preferences
Viewer prefs on conversion
Security Settings
Secure converted PDFs
Multiple URLs
Merge several URLs into one PDF
Async Conversion
Convert several URLs at the same time
Conversion Delay
Wait before rendering
Headers & Footers
HTML headers and footers
Page Breaks
Control page breaks
Automatic Bookmarks
Bookmarks from HTML headings
HTTP Headers
Send custom request headers
HTTP Cookies
Send cookies with the request
HTTP POST Request
Convert a POST response
Start from JavaScript
Trigger conversion from JS
Media Types
Screen vs print CSS
Links
Internal/external links in output
Partial Conversion
Convert a single page section
Exclude Elements
Skip elements when converting
Current Web Page
Convert the current page
Convert & Email
Convert and email the PDF
Web Elements Location
Get element positions in the PDF
Table of Contents
Generate a table of contents