SkillAgentSearch skills...

PDFtoImage

A .NET library to render PDF files into images.

Install / Use

/learn @sungaila/PDFtoImage
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PDFtoImage Logo PDFtoImage

GitHub Workflow Build Status GitHub Workflow Test Runs Succeeded SonarCloud Quality Gate NuGet version NuGet downloads Website GitHub license

A .NET library to render PDF files into images.

This .NET library is built on top of

Getting started

Call a static method from PDFtoImage.Conversion:

SaveJpeg, SavePng, SaveWebp and ToImage for a single page.

ToImages and ToImagesAsync for multiple pages.

Note: SkiaSharp.SKBitmap can be exported with the Encode method.

Unity project installation

  1. Open your project and navigate to WindowPackage Manager.
  2. Click on the + button (top-left corner) and select Install package from git URL....
  3. Enter the following URL and confirm with the Install button:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage

Supported runtimes

Tested and supported frameworks

No parallelization support

The native PDFium library used by this project for rendering is not thread-safe. For that reason, all calls into PDFium are protected with locks.

This means that you can only process one PDF at a time.

If you need true parallel processing, you’ll have to spawn multiple processes and distribute the workload across them, then collect the results using inter-process communication (IPC) and appropriate serialization.

Ghostscript may be easier for this use case, since (under certain conditions) it can support multiple instances within the same process.

Index and Range for .NET Framework

PolySharp is used to enable the use of System.Index and System.Range in .NET Framework projects. As a side effect, the following classes are generated and exposed, which should not be used directly by your project:

  • System.Index
  • System.Range
  • System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute
  • System.Diagnostics.CodeAnalysis.NotNullWhenAttribute
  • System.Runtime.CompilerServices.IsExternalInit
View on GitHub
GitHub Stars341
CategoryDevelopment
Updated20h ago
Forks36

Languages

C#

Security Score

100/100

Audited on Mar 23, 2026

No findings