Apache License 2.0

项目介绍

Dtronix/PDFiumCore 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 Apache License 2.0 许可证,目前获得 192 个 Star、26 次 Fork。

仓库全名
Dtronix/PDFiumCore
开源许可证
Apache License 2.0
Star 数
192
Fork 数
26
未关闭 Issue
11

README 摘要

PDFiumCore is a .NET Standard 2.1 wrapper for the PDFium library which includes the binaries and header pinvoke bindings. Supports Linux-x64, OSX-x64, Win-x64, Win-x86. Bindings are generated from the binaries and header files created at pdfium-binaries repository. Usage The preferred way to use this project is to use the Nuget Package. This will ensure all the proper bindings in the .deps.json are generated and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

PDFiumCore 用什么语言开发?

主要使用 C# 编写,采用 Apache License 2.0 许可证,目前有 192 个 Star。

PDFiumCore 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 PDFiumCore 的源码?

可以直接克隆仓库:git clone https://github.com/Dtronix/PDFiumCore.git;安装与运行步骤见仓库 README。

PDFiumCore 最近还在维护吗?

仓库最近一次更新为 6月15日,当前有 11 个未关闭 Issue;Star 数为 192,可作为社区活跃度的参考。

README

PDFiumCore NuGet Action Workflow

PDFiumCore is a .NET Standard 2.1 wrapper for the PDFium library which includes the binaries and header pinvoke bindings. Supports Linux-x64, OSX-x64, Win-x64, Win-x86.

Bindings are generated from the binaries and header files created at pdfium-binaries repository.

Usage

The preferred way to use this project is to use the Nuget Package. This will ensure all the proper bindings in the *.deps.json are generated and included for the targeted environments.

Build Requirements

  • .NET 6.0

Manual Building

Execute the CreateBindingsPackage.bat

This will do the following:

  • Download the specified files at the passed pdfium-binaries API url.
  • Extracts the zip & tgz files into the asset/librariesdirectory.
  • Opens the pdfium-windows-x64 directory and parses the header files via CppSharp and generates PDFiumCore.cs in the current directory.
  • Copies the libraries and licenses into their respective src/PDFiumCore/runtimes directories.
  • Copies/Overrides src/PDFiumCore/PDFiumCore.cs with the newly generated PDFiumCore.cs.
PDFiumCoreBindingsGenerator Parameters

PDFiumCoreBindingsGenerator.exe requires the following parameters:

  • [0] Set to either a specific Github API release ID for the bblanchon/pdfium-binaries project or latest. This is to determine the release version and binary assets to download.
  • [1] Set to true to download the libraries and generate the bindings. Set to false to only download the libraries.
  • [2] Version to set the Version.Revision property to. This is used for building patches. Usually set to “0”

ToDo

  • Create an actual parser for the comments and generate functional C# method documentation.
  • Include documentation for more than just the public methods.
  • Investigate ARM builds for inclusion.

Resources

https://pdfium.googlesource.com/pdfium/

https://github.com/bblanchon/pdfium-binaries

https://github.com/mono/CppSharp

License

Matching the PDFium project, this project is released under Apache-2.0 License.

评论

暂无评论