How To Install MuPDF On Ubuntu 16.04

To Install MuPDF On Ubuntu

MuPDF is a free, open-source, lightweight PDF viewer written in C. It has all the basic features like any other PDF viewer and vim-like keybinds.

Changes in the Updated version

  • New command line tools such as create and run.
  • New low-level Java interface for desktop and android.
  • Bidirectional layout for Arabic and Hebrew scripts.
  • Shaping complex scripts for EPUB text layout.
  • Noto fallback fonts for EPUB layout.

Some of the features of MuPDF are:

mutool create

  • A feature to create new PDF files from scratch.
  • Read an annotated content stream in a text file and write a PDF file, automatically embedding font and image resources.


mutool run

  • Runs javascript scripts with MuPDF bindings.
  • The interface is similar to the new Java interface.

mutool draw:

  • Optional multi-threaded operation (Windows and pthreads).
  • Optional low memory mode (primarily for testing).

The initial step to install MuPDF is to add the repository. Use the following command for the same purpose.

root@linuxhelp1:~# 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
 More info: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/apps
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmphx6neta2/secring.gpg'  created
gpg: keyring `/tmp/tmphx6neta2/pubring.gpg'  created
gpg: requesting key 852541CB from hkp server keyserver.ubuntu.com
gpg: /tmp/tmphx6neta2/trustdb.gpg: trustdb created
gpg: key 852541CB: public key " Launchpad PPA for Panda Jim"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Update the newly added repository as follows.

root@linuxhelp1:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial InRelease              
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease      
Get:4 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial InRelease [17.5 kB]
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease                
Get:6 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial/main amd64 Packages [2,516 B]
Get:7 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial/main i386 Packages [2,524 B]
Get:8 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial/main Translation-en [1,684 B]
Fetched 24.3 kB in 1s (19.9 kB/s)           
Reading package lists... Done

Now is the time to install MuPDF, use the following command for the same purpose.

root@linuxhelp1:~# 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 407 not upgraded.
Need to get 39.0 MB of archives.
After this operation, 71.8 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial/main amd64 mupdf amd64 1.10a-0build1~ubuntu16.04 [19.5 MB]
Get:2 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial/main amd64 mupdf-tools amd64 1.10a-0build1~ubuntu16.04 [19.5 MB]  
Fetched 39.0 MB in 3min 56s (165 kB/s)                                                                                              
Selecting previously unselected package mupdf.
(Reading database ... 176721 files and directories currently installed.)
Preparing to unpack .../mupdf_1.10a-0build1~ubuntu16.04_amd64.deb ...
Unpacking mupdf (1.10a-0build1~ubuntu16.04) ...
Selecting previously unselected package mupdf-tools.
Preparing to unpack .../mupdf-tools_1.10a-0build1~ubuntu16.04_amd64.deb ...
Unpacking mupdf-tools (1.10a-0build1~ubuntu16.04) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.5-1) ...
Setting up mupdf (1.10a-0build1~ubuntu16.04) ...
Setting up mupdf-tools (1.10a-0build1~ubuntu16.04) ...

MuPDFis now installed, use the following command.

root@linuxhelp1:~# 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
    -S -    font size for EPUB layout
    -U -    user data-style sheet for EPUB layout


Now, if you want to remove the MuPDF from Ubuntu 16.04, use the following command.

root@linuxhelp1:~# apt-get remove mupdf mupdf-tools -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  mupdf mupdf-tools
0 upgraded, 0 newly installed, 2 to remove and 407 not upgraded.
After this operation, 71.8 MB disk space will be freed.
(Reading database ... 176740 files and directories currently installed.)
Removing mupdf (1.10a-0build1~ubuntu16.04) ...
Removing mupdf-tools (1.10a-0build1~ubuntu16.04) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Tag : PDF Reader
FAQ
Q
what command used to remove the MuPDF from Ubuntu?
A
the command for remove the MuPDF BY following command
# apt-get remove mupdf mupdf-tools -y
Q
which command to run the MuPDF in ubuntu?
A
you can the run MuPDF by below command
# mupdf
Q
how to add the repository for installing MuPDF?
A
add the repository for installing MuPDF by following command
# add-apt-repository ppa:ubuntuhandbook1/apps
Q
What are its new features of muPDF?
A
New command line tools such as create and run.
New low-level Java interface for desktop and android.
Bidirectional layout for Arabic and Hebrew scripts.
Shaping complex scrip
Q
what is the Option used for resolution MuPDF?
A
the option used for resolution is mupdf -r -