I installed and compared xpdf and MuPDF.
As for xpdf I installed it according to the recipe from my post #19
As for MuPDF I used the following method:
Skip the BEGIN ... END section below and go to the post #34
1. I installed jbig2dec and openjpeg libraries using SlackBuilds.org sources. (The freetype2, libjpeg, and zlib libraries were installed in my system before.)
2.1. I tried to compile MuPDF for the first time but it displayed the following error:
# make prefix=/usr/local install
fitz/image_jpx.c: In function ‘fz_load_jpx’:
fitz/image_jpx.c:54:9: error: ‘opj_dparameters_t’ has no member named ‘flags’
fitz/image_jpx.c:54:19: error: ‘OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG’ undeclared (first use in this function)
fitz/image_jpx.c:54:19: note: each undeclared identifier is reported only once for each function it appears in
make: *** [build/debug/image_jpx.o] Error 1
root@home2:~/DATA/programs/root/Linux/mupfd# tar xzfopenjpeg_v1_4_sources_r697.tgz
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
2.2. So I prepared the following patch:
--- fitz/image_jpx.c.old 2012-04-24 18:41:33.000000000 +0200
+++ fitz/image_jpx.c 2012-08-01 18:51:33.000000000 +0200
@@ -50,8 +50,8 @@
evtmgr.info_handler = fz_opj_info_callback;
- if (indexed)
- params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG;
+// if (indexed)
+// params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG;
info = opj_create_decompress(format);
opj_set_event_mgr((opj_common_ptr)info, &evtmgr, ctx);
Then I copied it to mupdf-1.0-source directory and used the following command to apply it:
patch -p0 < mupfd-1.0.patch
2.3. Finally I compiled and installed MuPDF:
make prefix=/usr/local install
Then I tested both xpdf and MuPDF using the family_tree.pdf
file that I attached to my #14
1. The xpdf displays the aforementioned file properly and allows to scroll it vertically and horizontally.
2. The MuPDF displays the aforementioned file and allows to scroll it vertically but refuses to scroll it horizontally.
MuPDF works bad in the comparison with xpdf – at least in the patched version.
I ask you to try both xpdf and MuPDF and to compare the results you’ll achieve with my results.