MuPDF-1.10a

Introduction to MuPDF

MuPDF is a lightweight PDF and XPS viewer.

This package is known to build and work properly using an LFS-8.0 platform.

Package Information

Additional Downloads

MuPDF Dependencies

Required

Xorg Libraries

Recommended

Optional

OpenSSL-1.0.2k, xdg-utils-1.1.1 (runtime), GLFW, and jbig2dec

Required (runtime)

X Window System

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/mupdf

Installation of MuPDF

Install MuPDF by running the following commands:

rm -rf thirdparty/curl     &&
rm -rf thirdparty/freetype &&
rm -rf thirdparty/harfbuzz &&
rm -rf thirdparty/jpeg     &&
rm -rf thirdparty/openjpeg &&
rm -rf thirdparty/zlib     &&

sed '/OPJ_STATIC$/d' -i source/fitz/load-jpx.c &&

patch -Np1 -i ../mupdf-1.10a-shared_libs-1.patch &&

make build=release

This package does not come with a test suite.

Now, as the root user:

make prefix=/usr                      \
     build=release                    \
     docdir=/usr/share/doc/mupdf-1.10a \
     install                          &&
ln -sfv mupdf-x11-curl /usr/bin/mupdf

Command Explanations

sed '/OPJ_STATIC$/d' ... : Remove a switch, which prevents using shared libraries for openjpeg2.

ln -sfv mupdf-x11-curl /usr/bin/mupdf : Three mupdf executables are installed: mupdf-gl, mupdf-x11, and mupdf-x11-curl. This symbolic link allows to choose which one is used when running mupdf.

Contents

Installed Program: mujstest, mupdf(symlink), mupdf-gl, mupdf-x11, mupdf-x11-curl, muraster, mutool
Installed Libraries: libmupdf.so, libmupdfthird.so
Installed Directories: /usr/include/mupdf, /usr/share/doc/mupdf-1.10a

Short Descriptions

mujstest

is a test program for mupdf + javascript

mupdf

is a program for viewing PDF, XPS, EPUB, and CBZ documents, and various image formats such as PNG, JPEG, GIFF, and TIFF.

mupdf-gl

same as mupdf, using an opengl renderer.

mupdf-x11

same as mupdf, using an X Window renderer.

mupdf-x11-curl

same as mupdf, using an X Window renderer, with the capability of rendering web pages, using an “http://...” url.

muraster

transforms files in one of the formats displayable by mupdf into a graphic file.

mutool

deals with document files in various manners.

libmupdf.so

contains the mupdf API functions.

libmupdfthird.so

contains the third party libraries compiled for mudpf.

Last updated on 2017-02-19 14:24:01 -0800