Git Product home page Git Product logo

pdfiumcore's Introduction

PDFiumCore NuGet

PDFiumCore contains the PDFium library binaries with a .NET Standard 2.1 wrapper containing all the exposed public header methods of the library.

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

Resources

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

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

https://github.com/mono/CppSharp

Build Requirements

  • .NET Core 3.1
  • .NET Framework 4.8
    • PDFiumCoreBindingsGenerator currently uses CppSharp to read the header files to create the bindings out of. CppSharp currently only has a .NET Framework implementation so to create the PDFiumCore bindings, .NET Framework 4.8 is required. Once a .NET Core version is available, the bindings generator will be updated accordingly.

Building

Build PDFiumCoreBindingsGenerator and edit the file at /bin/Debug/net48/CreatePackage.bat and change the URL to the desired release.

PDFiumCoreBindingsGenerator.exe requires the following parameters:

  • [0] Github API url for the release. (eg. https://api.github.com/repos/bblanchon/pdfium-binaries/releases/latest) This is to determine the release version and binary assets to download.
  • [1] Version to set the Version.Minor property to. This is used for building patches. Usually set to "0"
  • [2] Set to true to download the latest binary assets and extract. False to use the assets if they already exist in the directory.

https://api.github.com/repos/bblanchon/pdfium-binaries/releases/31587582

Execute the CreatePacakge.bat

This will do the following:

  • Download the specified files at the passed pdfium-binaries API url.
  • Extracts the zip & tgz (Actually tar) files into the current directory.
  • 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 respecive src/PDFiumCore/runtimes directories.
  • Copies/Overrides src/PDFiumCore/PDFiumCore.cs with the newly generated PDFiumCore.cs.
  • Executes dotnet package on the PDFiumCore project. and putputs the Nuget package in the project root output directory.

ToDo

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

License

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

pdfiumcore's People

Contributors

djgosnell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.