PDFiumSharpV2

C#/.NET Wrapper for the PDFium library. Add also a package for the native binaries (currently only PDFium.Windows is provided) or provide them (pdfium_x64.dll, pdfium_x86.dll) yourself.


Keywords
C#, PDF, PDFium, Renderer, Rendering
License
MS-RL
Install
Install-Package PDFiumSharpV2 -Version 1.1.1

Documentation

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.
  To create or load a PDF document, use one of the PdfDocument's constructors.