GitHub - ArgusMagnus/PDFiumSharp: .NET wrapper around Google's PDFium library

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

.NET wrapper around Google's PDFium library

License

View license

192 stars 70 forks Branches Tags Activity

Notifications You must be signed in to change notification settings

Repository files navigation

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.