PDFiumSharp Library
The PDFiumSharp library is a C#/.NET wrapper around the PDFium library. It enables .NET developers to create, open, manipulate, render and save PDF documents.
Getting Started
The easiest way to get going is to reference the NuGet packages. There are five NuGet packages available: Â
- PDFium.Windows contains the native PDFium binaries for windows. Either install this package or provide the binaries yourself (put pdfium_x64.dll, pdfium_x86.dll in the application directory).
- PDFiumSharp contains the core package. With this you can create, open, manipulate, render and save PDF documents. PdfPages can be rendered to PDFiumBitmaps (which are simply memory buffers). This package depends on the presence of the native PDFium binaries.
- PDFiumSharp.GdiPlus extends the PdfPage class with extension methods to render to Bitmaps.
- PDFiumSharp.Wpf extends the PdfPage class with extension methods to render to WriteableBitmaps.
- PDFiumSharp.Xwt extends the PdfPage class with extension methods to render to BitmapImages.