以下是关于如何安装mupdf,参考的官方文档(注意代码clone 比较慢,比较合理上网)
gcc-c++ 是可选的opengl 是必须的
yum install gcc-c++ freeglut-devel libXinerama-devel libXrandr-devel libXi-devel
git clone --recursive git://git.ghostscript.com/mupdf.git
git submodule update --init
make

./mutool convert -o ./out/memory-%d.png -F png memory.pdf
效果 
官方也提供了对应功能的已经构建好的软件包,也是比较方便的,同时mupdf 的功能还是比较强大的,可以方便的用来设计文档预览系统(集成liboffice+mupdf+s3+openresty+unoconv+gearman),个工具的简单介绍
https://mupdf.com/docs/building.html
https://github.com/zhhchen/lua-resty-gearman
原文:https://www.cnblogs.com/rongfengliang/p/12201617.html