Skip to content

ikuokuo/pdfium-reader

Repository files navigation

PDFium Reader

Overview

How to build

  1. Get the code and its dependencies

    git clone --depth 1 https://github.com/ikuokuo/pdfium-reader.git
    cd pdfium-reader
    
    # get submodules
    git submodule update --init
    
    # get dependencies
    #  mac
    brew install glfw
    #  debian/ubuntu
    sudo apt install libglfw3-dev libgtk-3-dev
  2. Get prebuilt PDFium libs to third_party/pdfium-<linux|mac|win>-<x86|x64|arm|arm64>

  3. Build the project using CMake >= 3.10

    make clean; make

Depends

  • PDFium: reading, parsing, and rasterizing the pages of PDF files
  • ImGui: a bloat-free graphical user interface library for C++
  • GLFW: a multi-platform library for OpenGL, OpenGL ES and Vulkan development
  • GLM: a header only C++ mathematics library for OpenGL
  • stb: single-file public domain libraries for C/C++
  • Native File Dialog Extended: cross platform native file dialog library with C and C++ bindings

About PDFium

Samples

License

The project is BSD 3-Clause licensed.