VOOZH about

URL: https://www.nuget.org/packages/Unchained.Pptx.Rendering/

โ‡ฑ NuGet Gallery | Unchained.Pptx.Rendering 0.1.0


๏ปฟ

๐Ÿ‘ Image
Unchained.Pptx.Rendering 0.1.0

dotnet add package Unchained.Pptx.Rendering --version 0.1.0
 
 
NuGet\Install-Package Unchained.Pptx.Rendering -Version 0.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unchained.Pptx.Rendering" Version="0.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unchained.Pptx.Rendering" Version="0.1.0" />
 
Directory.Packages.props
<PackageReference Include="Unchained.Pptx.Rendering" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unchained.Pptx.Rendering --version 0.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Unchained.Pptx.Rendering, 0.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Unchained.Pptx.Rendering@0.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unchained.Pptx.Rendering&version=0.1.0
 
Install as a Cake Addin
#tool nuget:?package=Unchained.Pptx.Rendering&version=0.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Unchained.Pptx.Rendering

Slide rasterization for Unchained.Pptx. Renders PPTX slides to PNG (or other image formats) using FreeType2 for font rasterization and HarfBuzz for text shaping.

Installation

<PackageReference Include="Unchained.Pptx.Rendering" />

The FreeType2 native library is supplied automatically โ€” by the FreeTypeSharp package on Windows, macOS, and linux-x64, and by Unchained.Drawing.Runtimes on linux-arm64. No manual fetch step is needed to consume the package.

Building the repo from source on linux-arm64 is the one case that needs a fetch (the binary is not committed):

# linux-arm64 host only โ€” every other platform is a no-op
bash scripts/FetchNatives/fetch-natives.sh --rid linux-arm64

Quick start

using Unchained.Pptx.Engine;
using Unchained.Pptx.Rendering;
using Unchained.Pptx.Rendering.Engine;

var processor = new PresentationProcessor();
var doc = await processor.LoadAsync("presentation.pptx");

// Render all slides at 1920ร—1080 (default)
var images = await SlideRenderer.RenderAllAsync(doc);

// Save each slide as PNG
for (var i = 0; i < images.Length; i++)
 await images[i].SaveAsync($"slide{i + 1}.png");

// Render a single slide at custom resolution
var thumbnail = await SlideRenderer.RenderAsync(
 doc.Slides[0],
 doc.SlideSize,
 new RenderOptions { WidthPx = 640, HeightPx = 360 },
 doc.Media); // pass Media so embedded fonts are used

Pass document.Media to RenderAsync (it is passed automatically by RenderAllAsync) so embedded fonts resolve. Without it, custom typefaces fall back to bundled substitutes.

Fonts

Runs are rendered with FreeType2 + HarfBuzz. Font resolution order per run:

  1. Embedded font โ€” if the presentation embeds the run's typeface (<p:embeddedFontLst> โ†’ /ppt/fonts/*.fntdata), the real font bytes are used, matched by typeface and style (regular/bold/italic/bold-italic).
  2. Bundled substitute โ€” Standard-14 names map to DejaVu; everything else falls back to NotoSans-Regular.

Glyphs are blitted via BlitGlyphFromFace, which reads the FreeType glyph slot through FreeTypeSharp's typed structs. Marshaling is correct on every platform โ€” including Windows x64, where the previous SharpFont binding used a wrong Face.Glyph offset and yielded empty bitmaps (the old cause of missing text in slide renders).

Output formats

RenderOptions.Format selects the encoder:

Format Status Notes
RenderImageFormat.Png (default) Supported Lossless, recommended
RenderImageFormat.Bmp Supported Uncompressed 24-bit, large files
RenderImageFormat.Jpeg Not implemented Throws NotSupportedException

The returned PptxImage.Format always matches the bytes in PptxImage.Data.

Embedded images

Embedded PNG pictures (p:pic) are decoded (BCL-only inflate + unfiltering) and blitted into their shape rectangle. Other formats โ€” JPEG, EMF/WMF, SVG, WDP โ€” are not yet decoded; those picture regions are left transparent. Text, shapes, and solid fills always render.

Dependencies

Library License Purpose
HarfBuzzSharp MIT Unicode text shaping
FreeTypeSharp MIT FreeType2 managed bindings + bundled native binaries
FreeType2 (native) FTL (BSD-like) Font rasterization

Bundled fonts: DejaVu (Bitstream Vera / SIL OFL) ยท NotoSans-Regular (SIL OFL)

Targets

net8.0 ยท net9.0 ยท net10.0

License

MIT โ€” no commercial restrictions.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0 46 6/25/2026
0.1.0-rc.4 56 6/20/2026