GithubHelp home page GithubHelp logo

ashutoshvarma / libxpdf Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 4.0 628 KB

Static library built from source of www.xpdfreader.com with most of dependencies built within

CMake 0.37% C 1.36% Roff 2.34% C++ 92.00% Objective-C 3.64% Shell 0.28%
pdf-parser pdf-viewer-component pdf cplusplus cpp-library xpdf xpdf-reader

libxpdf's Introduction

Build CI

libxpdf

Static library build from xpdf reader 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

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:

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

Xpdf tools can be build along library using BUILD_TOOLS cmake option. Disabled by default.

libxpdf's People

Contributors

ashutoshvarma avatar wrathdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libxpdf's Issues

Upgrade to XPDF 4.03

Hi @ashutoshvarma ,

Thanks for this great work!

I started using this library, along with its Python counterpart, in Bookworm.

Is there any chance that this will be upgraded to XPDF 4.03. Specially as that release contains some security fixes.

Thanks,

Upgrade to XPDF 4.04

I've sucessfully compiled the v4.02 version
But when i try the same with the sources of v4.04 in "xpdf-4.04" on Windows 10 (Using Visual Studio 2022) i get an error when trying to compile
I've renamed the 4.02 version and folder names to 4.04 in the /CMakeLists.txt and "/libxpdf/.github/workflows/build.yml"
(also tried to place the 4.04 sources in the 4.02 folder)

[  0%] Building CXX object CMakeFiles/xpdftest.dir/xpdf-4.04/xpdf/pdfinfo.cc.obj
pdfinfo.cc
[  0%] Linking CXX executable xpdftest.exe
LINK: command "C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\xpdftest.dir\objects1.rsp /out:xpdftest.exe /implib:xpdftest.lib /pdb:\libxpdf\libxpdf-build\xpdftest.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:console xpdf.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:xpdftest.exe.manifest" failed (exit code 1181) with the following output:
src\pyxpdf\xpdf.cpp(836): fatal error C1083: Cannot open include file: 'Form.h': No such file or directory

Any help appreciated !

Update: managed to compile 4.04 sources by changing cmake-config.txt and CMakeLists.txt files ( as compared to 4.02 )
but i don't know if this is a stable solution .....

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.