MuPDF-1.26.12

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.1-84

### Chapter 50. PostScript

- Prev

  fop-2.11

- Next

  paps-0.8.0

- Up
- Home

# MuPDF-1.26.12

## Introduction to MuPDF

MuPDF is a lightweight PDF and XPS viewer.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://www.mupdf.com/downloads/archive/mupdf-1.26.12-source.tar.gz

- Download MD5 sum: d10eb7e1ef0f4a44f5c14a29b9d6f906

- Download size: 62 MB

- Estimated disk space required: 295 MB

- Estimated build time: 0.2 SBU (Using parallelism=4)

### MuPDF Dependencies

#### Required

Xorg Libraries

#### Recommended

Brotli-1.2.0, Freeglut-3.8.0, harfBuzz-14.4.0, libjpeg-turbo-3.2.0, OpenJPEG-2.5.4, and cURL-8.22.0

#### Optional

zxing-cpp-3.1.1, xdg-utils-1.2.1 (runtime), jbig2dec, and MuJS

#### Required (runtime)

a graphical environment

## Installation of MuPDF

Install MuPDF by running the following commands:

    cat > user.make << EOF &&
    USE_SYSTEM_BROTLI := yes
    USE_SYSTEM_FREETYPE := yes
    USE_SYSTEM_HARFBUZZ := yes
    USE_SYSTEM_JBIG2DEC := no
    USE_SYSTEM_JPEGXR := no # not used without HAVE_JPEGXR
    USE_SYSTEM_LCMS2 := no # lcms2mt is strongly preferred
    USE_SYSTEM_LIBJPEG := yes
    USE_SYSTEM_MUJS := no # build needs source anyway
    USE_SYSTEM_OPENJPEG := yes
    USE_SYSTEM_ZLIB := yes
    USE_SYSTEM_GLUT := yes
    USE_SYSTEM_CURL := yes
    USE_SYSTEM_GUMBO := no
    EOF

    export XCFLAGS=-fPIC                      &&
    make build=release shared=yes verbose=yes &&
    unset XCFLAGS

This package does not come with a test suite.

Now, as the `root` user:

    make prefix=/usr                         \
         shared=yes                          \
         docdir=/usr/share/doc/mupdf-1.26.12 \
         install                             &&

    ln -sfv libmupdf.so.26.12 /usr/lib/libmupdf.so.26 &&
    ln -sfv libmupdf.so.26   /usr/lib/libmupdf.so     &&
    chmod 755 /usr/lib/libmupdf.so.26.12              &&

    ln -sfv mupdf-x11 /usr/bin/mupdf

## Command Explanations

ln -sfv mupdf-x11 /usr/bin/mupdf : This symbolic link chooses between mupdf-gl and mupdf-x11 when running mupdf.

`barcode=yes`: Pass this option to make if you want barcode support. This will use the zxing-cpp library included in the package. If you want to use the system zxing-cpp-3.1.1, you should add USE_SYSTEM_ZXINGCPP := yes to `user.make`.

## Contents

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

### Short Descriptions

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
muraster | is a program used to perform rasterization tasks with PDF documents
mutool | is a program to perform various operations on PDF files, such as merging and cleaning PDF documents
`libmupdf.so` | contains the mupdf API functions

- Prev

  fop-2.11

- Next

  paps-0.8.0

- Up
- Home