Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashutoshvarma/libxpdf
Static library built from source of www.xpdfreader.com with most of dependencies built within
https://github.com/ashutoshvarma/libxpdf
cplusplus cpp-library pdf pdf-parser pdf-viewer-component xpdf xpdf-reader
Last synced: 9 days ago
JSON representation
Static library built from source of www.xpdfreader.com with most of dependencies built within
- Host: GitHub
- URL: https://github.com/ashutoshvarma/libxpdf
- Owner: ashutoshvarma
- Created: 2020-03-11T08:27:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:56:36.000Z (11 months ago)
- Last Synced: 2023-12-15T03:57:01.177Z (11 months ago)
- Topics: cplusplus, cpp-library, pdf, pdf-parser, pdf-viewer-component, xpdf, xpdf-reader
- Language: C++
- Homepage:
- Size: 613 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build CI](https://github.com/ashutoshvarma/libxpdf/workflows/Build%20CI/badge.svg?branch=master)](https://github.com/ashutoshvarma/libxpdf/actions?query=workflow%3A%22Build+CI%22)
# libxpdfStatic library build from [xpdf reader](http://www.xpdfreader.com/download.html) source with most dependencies(`zlib`, `libpng`, `freetype2`) included within.
## Linking against libxpdf
All the optional dependencies (`fontconfig` and `libpaper`) are disabled.Only `Threads` are required dependency.
**Note:-** For Pre-built library/binaries see [releases](https://github.com/ashutoshvarma/libxpdf/releases)
## Building
CMake is used throughout the whole configuration and building process. You can get more information about CMake in the documentation.CMake encourages to use out-of-source builds to not to pollute the directory with source code with compiled binaries. Typical building scenario on UNIX-like system looks as following:
```Shell
mkdir ./libxpdf-build
cd ./libxpdf-build
cmake -DCMAKE_BUILD_TYPE=Release ../libxpdf
make
```Use -G option to select build system other than based on Makefile. To pass any variable to CMake use -D option.
Use CMAKE_C_COMPILER variable to override default C compiler, and CMAKE_CXX_COMPILER variable to override default C++ compiler.
Use CMAKE_C_FLAGS variable to add specific compilation flags to C compiler, and CMAKE_CXX_FLAGS variable for C++ compiler.
#### Other Options
To set other xpdf build options read their [INSTALL](https://github.com/ashutoshvarma/libxpdf/blob/master/xpdf-4.02/INSTALL)Xpdf tools can be build along library using `BUILD_TOOLS` cmake option. Disabled by default.