使用说明:Pdfium.dll是C语言开发的,而PdfiumViewer.dll是.net开发的,针对Pdfium.dll的封装适配,方便在.net中使用。因此在引用PdfiumViewer.dll的同时,要把pdfium.dll放在程序目录下面。
另外:Patagames.Pdf.Net Pdfium.Net SDK 是可以试用,但有时间限制的,一旦试用时间到期就不能用了,不要用。
PdfiumViewer.dll pdfium.dll
Pdfium 库
Pdfium 本身是一个 C 语言库,编译之后是一个 DLL。
Google 下载
https://pdfium.googlesource.com/pdfium/
GitHub
https://github.com/chromium/pdfium
下载 Pdfium 二进制预编译库
可以直接使用预编译的库,既可以直接从 NuGet 中导入,也可以自己下载使用。
PDF viewer based on Google's PDFium.
https://github.com/pvginkel/PdfiumViewer
PdfiumViewer
由于 Pdfium 本身并不是 .NET 库,在 .NET 中使用时,需要进行适配,PdfiumViewer 对它进行了适配工作,可以使我们很方便地在 .NET 项目中使用它。
Introduction
PdfiumViewer is a PDF viewer based on the PDFium project.
PdfiumViewer provides a number of components to work with PDF files:
PdfDocument is the base class used to render PDF documents;
PdfRenderer is a WinForms control that can render a PdfDocument;
PdfiumViewer 提供了一个 WinForms 控件,通过 PdfRenderer 控件进行渲染,提供了工具栏,可以支持保存到 PDF 文件或者打印到打印机。
PdfiumViewer is a WinForms control that hosts a PdfRenderer control and adds a toolbar to save the PDF file or print it.
项目:https://github.com/pvginkel/PdfiumViewer
NuGet: https://www.nuget.org/packages/PdfiumViewer/