How to install MuPDF on Ubuntu 17.04

To install MuPDF on Ubuntu 17.04    

MuPDF is a lightweight PDF, XPS, and E-book viewer. It consists of a software library, command line tools, and viewers for various platforms. The renderer in MuPDF is tailored for high quality anti-aliased graphics. It renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen. It also contains shaping complex scripts for EPUB text layout and fallback fonts for EPUB layouts. It also can create new PDF files from scratch, runs JavaScript scripts, multi-threaded operations and low memory mode.  This tutorial explains the installation procedure of MuPDF on Ubuntu 17.04. 

 

Features of MuPDF

  • mutool create
  • mutool run
  • mutool draw

   
Installation procedure

To start with the installation procedure, add the required repository by executing the following command. 

root@linuxhelp:~# add-apt-repository ppa:ubuntuhandbook1/apps
 Apps that are not available in Ubuntu universe repositories or the Ubuntu repositories only provide an old version

Maintained by http://ubuntuhandbook.org

Liferea News Reader:

        No update for Ubuntu 14.04 since Liferea now requires GTK > =3.14

Parole media player:

       No update for Ubuntu 16.04 since parole 0.9.2 requires GTK > = 3.20
 More info: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/apps
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox ' /tmp/tmpjucpfo__/pubring.gpg'  created
gpg: /tmp/tmpjucpfo__/trustdb.gpg: trustdb created
gpg: key 4C1CBE14852541CB: public key " Launchpad PPA for Panda Jim"  imported
gpg: Total number processed: 1
gpg:               imported: 1
OK


The repositories are added to the system. Next update the  system by running the apt-get update command

root@linuxhelp:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease               
Get:2 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty InRelease [15.4 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty InRelease                      
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease            
Get:6 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty/main amd64 Packages [5,104 B]
Get:7 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty/main i386 Packages [5,112 B]
Get:8 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty/main Translation-en [3,184 B]
Fetched 28.8 kB in 2s (11.2 kB/s)
Reading package lists... Done

The repositories are updated in the target system. Now install the MuPDF  application by executing the following command and press y to continue the installation process. 

root@linuxhelp:~# apt-get install mupdf mupdf-tools -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  mupdf mupdf-tools
0 upgraded, 2 newly installed, 0 to remove and 295 not upgraded.
Need to get 40.5 MB of archives.
After this operation, 71.9 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty/main amd64 mupdf amd64 1.11-0build1+ubuntu17.04 [20.2 MB]
Get:2 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu zesty/main amd64 mupdf-tools amd64 1.11-0build1+ubuntu17.04 [20.3 MB]
Fetched 40.5 MB in 4min 17s (157 kB/s)                                         
Selecting previously unselected package mupdf.
(Reading database ... 170934 files and directories currently installed.)
Preparing to unpack .../mupdf_1.11-0build1+ubuntu17.04_amd64.deb ...
Unpacking mupdf (1.11-0build1+ubuntu17.04) ...
Selecting previously unselected package mupdf-tools.
Preparing to unpack .../mupdf-tools_1.11-0build1+ubuntu17.04_amd64.deb ...
Unpacking mupdf-tools (1.11-0build1+ubuntu17.04) ...
Setting up mupdf-tools (1.11-0build1+ubuntu17.04) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up mupdf (1.11-0build1+ubuntu17.04) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ... 

The MuPDF application is installed successfully in the system. Run the following mupdf command to know about the options used in MuPDF. 

root@linuxhelp:~# mupdf
usage: mupdf [options] file.pdf [page]
    -p -    password
    -r -    resolution
    -A -    set anti-aliasing quality in bits (0=off, 8=best)
    -C -    RRGGBB (tint color in hexadecimal syntax)
    -W -    page width for EPUB layout
    -H -    page height for EPUB layout
    -I -    invert colors
    -S -    font size for EPUB layout
    -U -    user data-style sheet for EPUB layout
    -X    disable document data-styles for EPUB layout

Thus we conclude the installation procedure of MuPDF on Ubuntu 17.04. 

FAQ
Q
What is the stable PPA to be used for MuPDF?
A
The stable PPA used here are "add-apt-repository ppa:ubuntuhandbook1/apps"
Q
What is MuPDF Tool?
A
MuPDF is a lightweight PDF, XPS, and E-book viewer. It consists of a software library, command line tools, and viewers for various platforms. The renderer in MuPDF is tailored for high quality anti-aliased graphics. It renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on a screen.
Q
What were its essential features of MuPDF tool?
A
The features of MuPDF are as follows,
mutool create
mutool run
mutool draw
Q
What are the best alternatives for MuPDF?
A
The alternatives of MuPDF is Foxit Reader which can be installed in Linux.
Q
Will this MuPDF create new PDF from scratch?
A
Yes, it creates new PDF files from scratch, runs JavaScript scripts, multi-threaded operations, and low memory mode.