ShreePdf 2.0.0
Prefix Reserveddotnet add package ShreePdf --version 2.0.0
NuGet\Install-Package ShreePdf -Version 2.0.0
<PackageReference Include="ShreePdf" Version="2.0.0" />
<PackageVersion Include="ShreePdf" Version="2.0.0" />
<PackageReference Include="ShreePdf" />
paket add ShreePdf --version 2.0.0
#r "nuget: ShreePdf, 2.0.0"
#:package ShreePdf@2.0.0
#addin nuget:?package=ShreePdf&version=2.0.0
#tool nuget:?package=ShreePdf&version=2.0.0
<div align="center">
<img src="https://raw.githubusercontent.com/jjopensoftworks-blip/ShreePdf/main/logo.png" width="300" alt="ShreePdf">
ShreePdf
Radiant, intelligent PDF generation for .NET — built for the AI era.
Generate beautifully designed PDFs directly from C#, Markdown, or HTML — no headless browser, no native print stack, no external services.
</div>
ðŸ–¥ï¸ ShreePdf Viewer — Native Desktop App for Windows
Looking for an ultra-fast, native standalone desktop PDF reader powered by the ShreePdf vector engine? Download ShreePdf Viewer directly from the Microsoft Store:
- Microsoft Store: apps.microsoft.com/detail/9MSPJ2M5MFHS
- Official Web Page: jjopensoftworks-blip.github.io/ShreePdfPage/viewer.html
- Highlights: Sub-10ms native vector rendering, Fluent/Mica dark & light themes with vector SVG iconography, side-by-side visual document comparison, PKCS#12 digital signature verification, AcroForms inspector & flattening, unsaved-change protection, and lossless AI/RAG metadata extraction.
Install Engine (.NET Library Family)
# Install the core vector engine
dotnet add package ShreePdf
# Or install the full batteries-included ecosystem (Markdown, HTML, Charts, AcroForms, Security, Portfolios, PDF/UA, DI, Microsoft.Extensions.AI, Semantic Kernel)
dotnet add package ShreePdf.All
# Or install the global CLI tool
dotnet tool install -g ShreePdf.Tool
📦 Modular Package Ecosystem (.NET 8.0, .NET 10.0 & .NET Standard 2.0)
| Package | Targets | What It Adds |
|---|---|---|
ShreePdf.All |
netstandard2.0 · net8.0 · net10.0 |
Meta-bundle referencing the entire ShreePdf family in one install ( EnableAllFeatures()). |
ShreePdf |
net8.0 · net10.0 |
Core high-speed vector generation, pagination, manipulation, and ingestion engine. |
ShreePdf.Abstractions |
netstandard2.0 · net8.0 · net10.0 |
Zero-dependency contracts (IPdfDocumentGenerator, IPdfDocumentExtractor, PdfGenerationRequest). |
ShreePdf.Markdown |
netstandard2.0 · net8.0 · net10.0 |
GitHub Flavored Markdown (GFM), LLM output, and {{token}} mail-merge PDF pipelines. |
ShreePdf.Html |
netstandard2.0 · net8.0 · net10.0 |
Zero-Chromium HTML & Razor template-to-vector PDF helpers. |
ShreePdf.Charts |
netstandard2.0 · net8.0 · net10.0 |
Vector Bar/Line/Area/Pie/Donut charts, KPI stat cards, sparklines, barcodes & QR codes. |
ShreePdf.AcroForms |
netstandard2.0 · net8.0 · net10.0 |
Interactive fillable AcroForms (text, checkbox, dropdown, signature) & vector flattening. |
ShreePdf.Security |
netstandard2.0 · net8.0 · net10.0 |
ISO 32000-1 AES-256 encryption, PKCS#12 digital signatures, RFC 3161 TSA, PDF/A & ZUGFeRD. |
ShreePdf.Portfolios |
netstandard2.0 · net8.0 · net10.0 |
ISO 32000-1 PDF Portfolios (embedded file packages), attachment extraction & envelopes. |
ShreePdf.Accessibility |
netstandard2.0 · net8.0 · net10.0 |
Tagged PDF (Section 508 / ISO 14289-1), alt-text annotations & Section 508 / ISO 14289-1 PDF/UA. |
ShreePdf.Extensions.DependencyInjection |
netstandard2.0 · net8.0 · net10.0 |
services.AddShreePdf(...) for ASP.NET Core and worker hosts. |
ShreePdf.Extensions.MicrosoftExtensionsAI |
netstandard2.0 · net8.0 · net10.0 |
Microsoft.Extensions.AI integration (chatResponse.ToPdfBytes()). |
ShreePdf.Extensions.SemanticKernel |
netstandard2.0 · net8.0 · net10.0 |
Semantic Kernel FunctionResult.ToPdfBytes() integration. |
ShreePdf.Tool |
net8.0 · net10.0 |
Global CLI tool (shreepdf md2pdf, html2pdf, extract, merge). |
Hello, PDF
using ShreePdf.Fluent;
Document.Create("Welcome")
.AddText("Hello, ShreePdf 👋", fontSize: 24, isBold: true)
.AddText("Beautiful, themed PDFs — straight from C#.")
.Save("welcome.pdf");
Markdown & LLM output → themed PDF
Perfect for turning AI assistant responses or docs into polished output.
string markdown = """
# Quarterly Review
- Revenue up **24%**
- Churn down **3%**

[Full report](https://example.com/report)
> Prepared by our AI assistant.
""";
Document.FromMarkdown(markdown, ThemePresets.SaaSAnalytics)
.EnableAutoFit()
.Save("review.pdf");
Ingestion understands inline images — Markdown  and HTML <img>, resolved from a file path, URL, or data URI — and Markdown links ([text](url)). A broken image source is skipped rather than failing the whole document.
Rich documents with the fluent API
var pdf = Document.Create("Invoice #1042")
.WithTheme(ThemePresets.ExecutiveMinimal)
.AddImageFromFile("logo.png", width: 120)
.AddText("Invoice #1042", fontSize: 20, isBold: true)
.AddBulletList("Design services", "Cloud hosting", "Priority support")
.AddTable(t =>
{
t.Columns.Add(new TableColumn { Header = "Item" });
t.Columns.Add(new TableColumn { Header = "Amount", Alignment = Alignment.Right });
var row = new TableRow();
row.Cells.Add("Total due");
row.Cells.Add(new TableCell("$4,200.00") { IsBold = true, Alignment = Alignment.Right });
t.Rows.Add(row);
})
.AddPageNumber("Page {page} of {pages}")
.GenerateBytes();
Native charts, KPIs & barcodes
Embed native vector visuals, metric cards, barcodes, and multi-column text with single-line fluent helpers.
Document.Create("Executive Dashboard")
.WithTheme(ThemePresets.SaaSAnalytics)
// KPI Stat Cards & Status Badges
.AddStatCards(
new StatCard("Revenue", "$1.24M", "+14.2%", deltaPositive: true),
new StatCard("Active Users", "42.5K", "+8.1%", deltaPositive: true),
new StatCard("Churn Rate", "1.2%", "-0.4%", deltaPositive: true))
.AddBadge("Target Achieved", BadgeStatus.Success)
// Vector Charts (Bar, Line, Area, Pie, Donut)
.AddBarChart("Quarterly Sales", ("Q1", 240), ("Q2", 310), ("Q3", 280), ("Q4", 410))
.AddPieChart("Traffic Share", ("Direct", 45), ("Search", 35), ("Social", 20))
// Sparklines & KPI Progress Meters
.AddSparkline(SparklineType.Line, 12, 18, 15, 22, 28, 34)
.AddProgressBar("Storage Quota", value: 78, max: 100)
// Barcodes & QR Codes
.AddBarcode(BarcodeType.Code128, "INV-2026-9901")
.AddQrCode("https://example.com/invoice/9901")
// Multi-Column Text Flow
.AddMultiColumn("ShreePdf automatically wraps and balances long text across multiple newspaper-style columns.", columns: 2, height: 100)
.Save("dashboard.pdf");
Navigation: bookmarks & table of contents
Headings automatically become a reader-sidebar bookmark outline, and a one-liner drops in an auto table of contents with page numbers and clickable rows.
Document.Create("Handbook")
.AddTableOfContents("Contents") // page numbers + links, filled automatically
.AddHeading("Getting Started", 1) // becomes a bookmark + a TOC row
.AddText("Welcome to the handbook.")
.AddHeading("Installation", 2) // nested under the previous heading
.AddText("Add the NuGet package and you're set.")
.AddHeading("Advanced Usage", 1)
.Save("handbook.pdf");
Enterprise security & AES-256 encryption
Protect confidential documents with ISO 32000-1 AES-256 encryption, password controls, permissions, and security watermarks.
using ShreePdf.Fluent;
using ShreePdf.Security;
var doc = Document.Create("Confidential Strategy")
.WithTheme(ThemePresets.ExecutiveMinimal)
.AddHeading("Confidential Executive Review", 1)
.AddText("This document is protected and confidential.");
// Enable AES-256 encryption & permission flags
doc.Security.IsEncryptionEnabled = true;
doc.Security.UserPassword = "UserPassword123";
doc.Security.OwnerPassword = "MasterOwnerKey!";
doc.Security.EncryptionAlgorithm = PdfEncryptionAlgorithm.AES_256Bit;
doc.Security.Permissions = DocumentPermissions.Print | DocumentPermissions.Copy;
// Add dynamic anti-leak security watermark
doc.Security.EnableWatermark = true;
doc.Security.WatermarkText = "CONFIDENTIAL - INTERNAL ONLY";
doc.Save("secured-review.pdf");
PDF manipulation, merging & dynamic stamping (v1.14.0)
using ShreePdf.Manipulation;
// 1. Merge multiple PDF byte streams while preserving & fusing RAG metadata
byte[] mergedPdf = PdfDocumentModifier.MergeDocuments(new[] { doc1Bytes, doc2Bytes });
// 2. Extract specific page ranges or permute page order
byte[] slicePdf = PdfDocumentModifier.ExtractPages(mergedPdf, new[] { 1, 3, 5 });
byte[] reorderedPdf = PdfDocumentModifier.ReorderPages(mergedPdf, new[] { 3, 1, 2 });
// 3. Stamp dynamic watermarks, Bates numbers, and headers/footers
byte[] batesStamped = PdfPageStamper.StampBatesNumber(reorderedPdf, prefix: "ACME-CONF-", startNumber: 1001);
byte[] finalPdf = PdfPageStamper.StampWatermark(batesStamped, "INTERNAL REVIEW ONLY", opacity: 0.25f);
Interactive AcroForms, Tagged PDF/UA & PDF Portfolios (v1.15 – v1.17)
Create fillable interactive forms (or flatten them to static vectors), generate Section 508 / ISO 14289-1 Tagged PDFs (Section 508 / ISO 14289-1), and bundle multi-file PDF Portfolios (embedded file packages).
using ShreePdf.Fluent;
using ShreePdf.Import;
using ShreePdf.Portfolios;
var doc = Document.Create("Onboarding Package")
.WithTheme(ThemePresets.CorporateBlue)
.EnableTaggedPdf(language: "en-US") // PDF/UA & Section 508 structure tree
.AddHeading("Employee Onboarding Form", 1)
.AddTextField("FullName", "Full Name", defaultValue: "Ada Lovelace")
.AddCheckBox("AcceptTerms", "I accept the security policy", isChecked: true)
.AddDropdown("Department", "Department", new[] { "Engineering", "Research", "Operations" })
.AttachFile("policy.csv", csvBytes, "text/csv", "Company Policy Data") // Embed file attachment
.EnablePortfolioMode(PortfolioLayoutMode.Details);
byte[] pdfBytes = doc.GenerateBytes();
// Inspect or extract portfolio attachments & structured text from any PDF stream
var attachments = PdfPortfolioReader.ExtractAttachments(pdfBytes);
string extractedText = PdfTextExtractor.ExtractAllText(pdfBytes);
var data = new Dictionary<string, string?> { ["customer"] = "Ada Lovelace", ["total"] = "$4,200" };
Document.FromMarkdownTemplate("# Statement for {{customer}}\n\nBalance: **{{total}}**", data)
.Save("statement.pdf");
Output anywhere
doc.Save("report.pdf"); // to a file
byte[] bytes = doc.GenerateBytes(); // in memory
await doc.GenerateBytesAsync(); // async (web / serverless)
doc.GenerateToStream(httpResponseStream); // stream directly, bounded memory
Highlights
- 🎨 Out-of-the-box themes — professional presets so documents never look "default."
- 📠Universal ingestion — build with a fluent C# API, or drop in Markdown or HTML.
- 📊 Native vector charts & data reporting — bar, line, area, pie, and donut charts, sparklines, progress bars, stat cards, status badges, QR codes, Code128/EAN-13 barcodes, and multi-column newspaper layouts.
- 🧩 Rich content — text, images, hyperlinks & anchors, ordered/unordered lists, page numbers, watermarks, landscape, and full-bleed backgrounds.
- 📋 Advanced tables — per-cell styling, auto column sizing, content-sized rows that grow to fit, merged cells (row/column span), images inside cells, and headers that repeat across page breaks.
- 🧠Navigation built in — reader-sidebar bookmarks from your headings, plus an auto table of contents with page numbers and clickable links.
- 🔒 Enterprise security & Smart PII redaction — AES-256 password protection, granular permission restrictions, dynamic anti-leak watermarking, automated PII discovery (credit cards, SSNs, emails, phones, API keys), color-matched vector redaction stamps, and invisible OCR searchable text underlays for scanned images.
- âœï¸ Digital signatures & PDF/A archival — PKCS#12 cryptographic signing, RFC 3161 TSA timestamping, visible appearance seals, PDF/A-1b/2b/3b archival standards, and ZUGFeRD / Factur-X XML invoice embedding.
- 📠Interactive AcroForms & flattening — fillable text fields, checkboxes, radio buttons, dropdowns, signature widgets, programmatic form filling (
PdfFormEngine), and static vector flattening. - ♿ Tagged PDF & PDF/UA accessibility — Section 508 and ISO 14289-1 screen-reader structure trees, alt-text annotations, and screen-reader navigation.
- 📦 PDF Portfolios & ingestion — embed & extract arbitrary attachments (multi-file document packages), extract positioned text & tables (
PdfTextExtractor), and compute visual diffs (PdfDiffEngine). - 📄 Tidy pagination — smart page budgeting keeps content clean and avoids awkward orphan spills.
- ⚡ Fast & flexible output — synchronous,
async, or direct-to-Stream. - 🤖 AI / RAG friendly — optional machine-readable document metadata for indexing pipelines.
- 🌠ASP.NET Core ready — Minimal API results and Razor view rendering.
🔗 End-to-End .NET AI Pipeline: Folder → Scrubkit → LLM → ShreePdf
Pair Scrubkit (offline document extraction & PII/secret redaction across 20+ file formats, 29k+ NuGet downloads) with ShreePdf (vector PDF generation from Markdown/C#) for a complete, zero-leak enterprise AI workflow:
dotnet add package Scrubkit.All
dotnet add package ShreePdf
using Microsoft.Extensions.AI;
using Scrubkit;
using ShreePdf.Fluent;
// 1. INGEST & REDACT: Extract text from PDFs, Word, Excel & Emails offline + scrub PII/secrets
var scrubber = new FolderScrubber(new ReadOptions { Redaction = RedactionLevel.Standard }.AddAllExtractors());
var records = await scrubber.ReadAsync(@"C:\data\quarterly-filings");
// 2. SUMMARIZE: Pass sanitized text through Microsoft.Extensions.AI (zero PII leaked to LLM)
string context = string.Join("\n\n", records.Select(r => $"### {r.Name}\n{r.Text}"));
ChatResponse summary = await chatClient.GetResponseAsync(
$"Create a Markdown executive summary with key risks and metrics from:\n{context}");
// 3. PUBLISH: Render the LLM Markdown straight to a themed, auto-fitted vector PDF via ShreePdf
Document.FromMarkdown(summary.Text, ThemePresets.SaaSAnalytics)
.EnableAutoFit()
.AddPageNumber("Page {page} of {pages}")
.Save("Executive-Briefing.pdf");
ðŸ› ï¸ Related .NET AI & Document Tools by JJ OpenSoftworks
| Tool / Engine | Role in Your Stack | Install / Links |
|---|---|---|
| Scrubkit | Input & Redaction Engine: Point at a folder of PDF, Word, Excel, PowerPoint, Email, EPUB, or Images and get a clean, PII-redacted table + RAG chunks back — 100% offline. | dotnet add package Scrubkit.All · Website · GitHub |
| ShreePdf Viewer | Desktop PDF Utility: Sub-10ms native Windows vector PDF reader with visual diff, signature inspector, and RAG metadata viewer. | Microsoft Store |
| FileOrganizerAI | Desktop AI Utility: 100% offline Windows file organizer powered by local offline AI + smart rules. | Microsoft Store |
Learn more
- â–¶ï¸ Interactive playground, samples & full documentation: jjopensoftworks-blip.github.io/ShreePdfPage
- 🔄 Competitor Migration Guides: QuestPDF Alternative · IronPDF Alternative · PuppeteerSharp Alternative · iText 7 Alternative · SelectPdf Alternative
- 📦 Source, samples & issues: github.com/jjopensoftworks-blip/ShreePdf
Licensing
ShreePdf ships in a free Community tier for evaluation and everyday use, and a Pro tier for unlimited-page, watermark-free commercial use. Pro is unlocked at runtime with a license key:
LicenseManager.ActivateOnline("YOUR-LICENSE-KEY", "https://your-license-server");
Activation is opt-in and offline-friendly (validated once, then cached; re-checked only near expiry). The Community tier makes no network calls. See the project site for details.
<div align="center">
Made with â¤ï¸ by jjopensoftworks-blip
</div>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Net.Codecrete.QrCodeGenerator (>= 3.1.0)
- PDFtoImage (>= 4.1.1)
- ShreePdf.Abstractions (>= 2.0.0)
- SkiaSharp (>= 4.151.0)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.151.0)
-
net8.0
- Net.Codecrete.QrCodeGenerator (>= 3.1.0)
- PDFtoImage (>= 4.1.1)
- ShreePdf.Abstractions (>= 2.0.0)
- SkiaSharp (>= 4.151.0)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.151.0)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on ShreePdf:
| Package | Downloads |
|---|---|
|
ShreePdf.Extensions.MicrosoftExtensionsAI
Microsoft.Extensions.AI integration for ShreePdf. Convert ChatResponse and ChatMessage Markdown outputs directly into themed, auto-fitted vector PDFs with embedded RAG structured metadata. |
|
|
ShreePdf.All
Convenience meta-package that references the entire ShreePdf family: core vector engine, Markdown & HTML ingestion, vector charts/barcodes/QR, interactive AcroForms, AES-256 security/PKCS#12/PDF-A/ZUGFeRD, ISO 32000-1 PDF Portfolios, Tagged PDF/UA accessibility, DI integration, Microsoft.Extensions.AI, and Semantic Kernel. |
|
|
ShreePdf.Markdown
Markdown and LLM response to vector PDF conversion extensions for ShreePdf. Renders headings, tables, inline images, links, callouts, and {{token}} mail-merge templates directly into themed PDFs without headless browsers. |
|
|
ShreePdf.Extensions.DependencyInjection
Microsoft.Extensions.DependencyInjection integration for ShreePdf. Call services.AddShreePdf(...) to register IPdfDocumentGenerator, IPdfDocumentExtractor, and default PdfGenerationRequest options with ILogger diagnostic bridging. |
|
|
ShreePdf.Charts
Vector data visualization descriptors and builders for ShreePdf: Bar, Line, Area, Pie, and Donut charts, KPI stat cards, sparklines, progress bars, Code128/EAN-13 barcodes, and ISO 18004 QR codes. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0 | 128 | 11/24/2026 |
| 1.18.0 | 87 | 11/21/2026 |
| 1.17.0 | 99 | 11/21/2026 |
| 1.16.0 | 213 | 8/25/2026 |
| 1.15.0 | 135 | 8/23/2026 |
| 1.14.0 | 138 | 8/19/2026 |
| 1.13.0 | 120 | 8/19/2026 |
| 1.12.0 | 115 | 8/19/2026 |
| 1.11.0 | 142 | 8/17/2026 |
| 1.10.0 | 144 | 8/15/2026 |
| 1.9.0 | 133 | 8/9/2026 |
| 1.8.0 | 127 | 8/9/2026 |
| 1.7.0 | 128 | 8/6/2026 |
| 1.6.0 | 145 | 8/4/2026 |
| 1.5.0 | 129 | 8/6/2026 |
| 1.3.0 | 143 | 8/1/2026 |
| 1.0.0 | 134 | 7/31/2026 |