sungaila/PDFtoImage
Acerca de
A .NET library for rendering PDF files as images.
Diseño y multimediaCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +4
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original
PDFtoImage
A .NET library for rendering PDF files as images.
PDFtoImage uses PDFium for rendering and SkiaSharp for images.
Getting started
Render the first page of a PDF as PNG with PDFtoImage.Conversion:
using var pdf = File.OpenRead("document.pdf");
PDFtoImage.Conversion.SavePng(
imageFilename: "page1.png",
pdfStream: pdf,
page: 0);
SaveJpeg, SavePng, SaveWebp, and ToImage render a single page. ToImages and ToImagesAsync render multiple pages.
Dispose returned SKBitmap instances after use. To save one, use SKBitmap.Encode.
Unity project installation
- Open your project and navigate to
Window→Package Management→Package Manager. - Click on the
+button (top-left corner) and selectInstall package from git URL.... - Enter the following URL and confirm with the
Installbutton:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage
Supported runtimes
Tested and supported frameworks
- ASP.NET
- ASP.NET Core
- Blazor WebAssembly
- .NET Multi-platform App UI (.NET MAUI)
- Unity
- Universal Windows Platform (UWP)
- Windows UI Library 3 (WinUI 3)
Parallel rendering
PDFium is not thread-safe, so PDFtoImage serializes PDFium calls within each process. For parallel rendering on .NET 11 or later, use PDFtoImage.Parallel. It runs PDFium in separate worker processes; see the Parallel README for examples.
Index and Range for .NET Framework
PolySharp provides System.Index and System.Range for .NET Framework projects. It also exposes the following generated types; avoid using them directly:
System.IndexSystem.RangeSystem.Diagnostics.CodeAnalysis.DoesNotReturnAttributeSystem.Diagnostics.CodeAnalysis.NotNullWhenAttributeSystem.Runtime.CompilerServices.IsExternalInit
Explorar proyectos relacionados
Cargando…