SimdSkia.Pdf
0.1.1
See the version list below for details.
dotnet add package SimdSkia.Pdf --version 0.1.1
NuGet\Install-Package SimdSkia.Pdf -Version 0.1.1
<PackageReference Include="SimdSkia.Pdf" Version="0.1.1" />
<PackageVersion Include="SimdSkia.Pdf" Version="0.1.1" />
<PackageReference Include="SimdSkia.Pdf" />
paket add SimdSkia.Pdf --version 0.1.1
#r "nuget: SimdSkia.Pdf, 0.1.1"
#:package SimdSkia.Pdf@0.1.1
#addin nuget:?package=SimdSkia.Pdf&version=0.1.1
#tool nuget:?package=SimdSkia.Pdf&version=0.1.1
0.1.1 更新
Avalonia 适配器接受 >=12.1.0 且 <13.0.0,同一 NuGet 二进制验证 12.1.0–12.1.5;核心仍使用 Sdcb.SimdCodecs 1.4.0。此版本不改写原版画质及性能差距。详情见包内 CHANGELOG.md。
SimdSkia.Pdf 0.1.0
Requires .NET 10. The inherited image provider is Sdcb.SimdCodecs 1.4.0. This stable release supports the documented PDF subset; native-equivalent 画质 and full compatibility are not claimed. PNG lossless reduction and IDAT buffer optimization are included. 性能/CPU/memory results and original quality failures are recorded in CHANGELOG and the 0.1.0 report.
Optional C# PDF parsing and page rendering, using PdfPig 0.1.16 (Apache-2.0) for PDF structure/fonts and SimdSkia for rasterization. No Skia, PDFium, MuPDF, native font library is used for PDF rendering. PDF Flate streams use the managed implementation; image codecs may use the explicitly permitted .NET native compression.
New in 0.1.0-preview.9: optional PDF reading/rendering. The same release adds
SKBitmap.GetPixels, GIF SKCodec, system font family discovery and the PDF
writer in the compatibility module. Ordinary SimdSkia.Compatibility and
SimdSkia.Avalonia users do not acquire the PDF parser dependency. Keep all
direct SimdSkia package references on the same preview version.
dotnet add package SimdSkia.Pdf --version 0.1.1
Every package includes CHANGELOG.md and NuGet release notes. This release is a
supported subset, not complete SkiaSharp or general PDF compatibility; see the
release notes.
using SimdSkia.Pdf;
using SkiaSharp;
using var document = PdfReader.Open("input.pdf");
using var page = document.RenderPage(1, dpi: 144); // one-based page number
using var output = File.Create("page-1.png");
using var png = page.Bitmap.Encode(SKEncodedImageFormat.Png, 100);
png.SaveTo(output);
// Display the same bitmap in an existing SimdSkia canvas:
// canvas.DrawBitmap(page.Bitmap, 0, 0);
RenderedPdfPage owns its bitmap; dispose it after use. Returned pages outlive
the reader. Operations on a reader are serialized; avoid disposing page pixels
while another thread is drawing them. Input is limited to 256 MiB, each expanded
Flate stream to 64 MiB, each raster page/image to 16 megapixels.
Supported and tested: multi-page PDF, ordered vector paths/fills, basic strokes, RGB/Gray images, JPEG, image soft masks, clipping, opacity, embedded TrueType/CFF outlines, page crop/rotation and managed compressed streams. Fonts without available outlines are rejected; system substitution is not automatic.
This is a subset renderer, not a general-purpose Acrobat/PDFium replacement. Annotations/form appearances, optional layers, PDF shadings/patterns, page/form transparency groups, graphics soft masks, non-normal blends, CMYK/ICC painting, dash/unsupported stroke styles, non-default UserUnit, vertical fonts, Matte soft-mask unmatting and text clipping are explicitly rejected. A PDF containing unsupported visible content fails instead of returning a falsely successful blank/partial page.
PDF generation is separately available through SKDocument.CreatePdf in
SimdSkia.Compatibility: multiple raster pages, configurable DPI, metadata,
lossless RGB or JPEG. It does not produce searchable text/vector content and
does not implement PDF/A. SkiaSharp itself supplies PDF generation, not PDF input.
Examples from the repository root:
dotnet run -c Release --project examples/Documents -- artifacts/documents
dotnet run -c Release --project examples/PdfViewer -- tests/Pdf/Fixtures/external.pdf
dotnet run -c Release --project tests/Pdf
See docs/STANDALONE-COMPATIBILITY-2026-10-27.md for source API coverage, original
comparisons, AOT verification and remaining differences. Windows was tested in
this change; Linux/macOS execution of the new reader/viewer is not yet validated.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- PdfPig (= 0.1.16)
- SimdSkia.Compatibility (>= 0.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.12 | 51 | 11/20/2026 |
| 0.1.10 | 54 | 11/19/2026 |
| 0.1.9 | 48 | 11/19/2026 |
| 0.1.8 | 50 | 11/18/2026 |
| 0.1.6 | 56 | 11/18/2026 |
| 0.1.5 | 88 | 11/17/2026 |
| 0.1.4 | 96 | 11/9/2026 |
| 0.1.3 | 105 | 11/7/2026 |
| 0.1.2 | 95 | 11/7/2026 |
| 0.1.2-preview.3 | 64 | 11/6/2026 |
| 0.1.1 | 98 | 11/4/2026 |
| 0.1.0 | 96 | 11/4/2026 |
| 0.1.0-preview.10 | 70 | 11/1/2026 |
| 0.1.0-preview.9 | 82 | 10/27/2026 |
0.1.1:Avalonia 兼容范围调整为 >=12.1.0 且 <13.0.0。适配器以 12.1.0 为最低编译基线,桌面宿主按应用 Avalonia 版本选择,同一 NuGet 二进制验证 12.1.0–12.1.5 的实际控件、桌面窗口与 Native AOT。Sdcb.SimdCodecs 1.4.0 与 0.1.0 的性能、画质边界保持,未宣称完整 SkiaSharp API 或原版画质等价。详情见包内 CHANGELOG.md 和 README.md。