PdfiumLight 0.0.2

A lightweight C# Library to render PDFs with Google's Pdfium in .NET Apps.

There is a newer version of this package available.
See the version list below for details.
Install-Package PdfiumLight -Version 0.0.2
dotnet add package PdfiumLight --version 0.0.2
<PackageReference Include="PdfiumLight" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PdfiumLight --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PdfiumLight, 0.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PdfiumLight as a Cake Addin
#addin nuget:?package=PdfiumLight&version=0.0.2

// Install PdfiumLight as a Cake Tool
#tool nuget:?package=PdfiumLight&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PdfiumLight

A lightweight C# Library to render PDFs with Google's Pdfium in .NET Apps. This is basicly a stripped down version of Pieter van Ginkel's PdfiumViewer with added functionality.

Getting started

Getting started is easy. Just add PdfiumLight as a Nuget dependency and you're good to go:

// Load the pdf file and create a new document object
PdfDocument document = new PdfDocument("C:/Users/Tom/Documents/sample.pdf");
// Load the first page
PdfPage page = document.GetPage(0);
// Render the page
Image renderedPage = page.Render(1000, 2500, 1, 1, PdfRotation.Rotate0, PdfRenderFlags.None);

Please refer to the "Getting started" section in the wiki for more informaton.

Features

(already implemented)

  • load PDF-documents
  • render pages
  • convert device coordinates to page coordinates and vice versa
  • extract text from page
  • check if there is text at a specific point on the page (very usefull if implementing a text layer)

(still to come)

  • support for internal and external links
  • search
  • annoatation support
  • form support

(wishlist, ordered by importance)

  • caching
  • part-by-part rendering (although I'm not sure if Pdfium does support it)
  • simple editing features such as reorder and deleting pages and merging documents

PdfiumLight

A lightweight C# Library to render PDFs with Google's Pdfium in .NET Apps. This is basicly a stripped down version of Pieter van Ginkel's PdfiumViewer with added functionality.

Getting started

Getting started is easy. Just add PdfiumLight as a Nuget dependency and you're good to go:

// Load the pdf file and create a new document object
PdfDocument document = new PdfDocument("C:/Users/Tom/Documents/sample.pdf");
// Load the first page
PdfPage page = document.GetPage(0);
// Render the page
Image renderedPage = page.Render(1000, 2500, 1, 1, PdfRotation.Rotate0, PdfRenderFlags.None);

Please refer to the "Getting started" section in the wiki for more informaton.

Features

(already implemented)

  • load PDF-documents
  • render pages
  • convert device coordinates to page coordinates and vice versa
  • extract text from page
  • check if there is text at a specific point on the page (very usefull if implementing a text layer)

(still to come)

  • support for internal and external links
  • search
  • annoatation support
  • form support

(wishlist, ordered by importance)

  • caching
  • part-by-part rendering (although I'm not sure if Pdfium does support it)
  • simple editing features such as reorder and deleting pages and merging documents

Release Notes

Initial release

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.4 1,879 6/3/2018
0.0.3 1,460 5/30/2018
0.0.2 565 5/30/2018
0.0.1 506 5/30/2018