Skip to content

📰 Binary distribution of PDFium

Notifications You must be signed in to change notification settings

ezeep/pdfium-binaries

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-compiled binaries of PDFium

Build Total downloads Latest release

This project hosts pre-compiled binaries of the PDFium library, an open-source library for PDF manipulation and rendering.

Builds are triggered manually, if needed

Disclaimer: This project isn't affiliated with Google or Foxit.

Download

Here are the download links for latest release:

OS CPU PDFium
Windows x64 pdfium-win-x64.tgz

See the Releases page to download older versions of PDFium.

Documentation

PDFium API documentation

Please find the documentation of the PDFium API on developers.foxit.com.

How to use PDFium in a CMake project

  1. Unzip the dpwnloaded package in a folder (e.g., C:\Libraries\pdfium)

  2. Set the environment variable PDFium_DIR to this folder (eg C:\Libraries\pdfium)

  3. In your CMakeLists.txt, add

     find_package(PDFium)
    
  4. Then link your executable with PDFium:

     target_link_libraries(my_exe pdfium)
    
  5. On Windows, make sure that pdfium.dll can be found by your executable (copy it on the same folder, or put in on the PATH).

How to use JavaScript V8 enabled binaries

If you are using the V8-enabled binaries, additional initialization is required. In your code, before using PDFium you have to call FPDF_InitEmbeddedLibraries() from the additional header fpdf_libs.h, which is only available in V8 enabled binaries.

The archive will contain a res folder which you have to distribute with your application. On macOS, you should include this in your application bundle for other platforms place it where your application binary will find it.

See the following example for usage:

#include "fpdf_libs.h"

...

// Determine the path to files in the res folder from the archive
const char* resPath = "<path to the res folder>";

// Initialize V8 and other embedded libraries
FPDF_InitEmbeddedLibraries(resPath);

// Make use of PDFium
FPDF_InitLibrary();
FPDF_DestroyLibrary();

Related projects

The following project use (or recommend using) our PDFium builds:

Did we miss a project? Please open a PR!

About

📰 Binary distribution of PDFium

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 80.7%
  • CMake 18.5%
  • C 0.8%