From b78630383f8182e45a663250c5ac9520b825e468 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 8 Dec 2018 14:00:41 +0800 Subject: document how to decrypt --- README.profxjc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.profxjc diff --git a/README.profxjc b/README.profxjc new file mode 100644 index 00000000..7ef0b79d --- /dev/null +++ b/README.profxjc @@ -0,0 +1,22 @@ +编译 MuPDF +----------- + +使用源码和 patch +~~~~~~~~~~~~~~~~~~~~~~ + +下载 MuPDF 1.14.0 的源码和 profxjc 的 patch, 解包并 patch:: + + curl -O https://mupdf.com/downloads/archive/mupdf-1.14.0-source.tar.xz + tar xvf mupdf-1.14.0-source.tar.xz + cd mupdf-1.14.0-source + curl -o profxjc.patch 'https://git.wehack.space/mupdf/patch/?id=918467458d7572e5d54fc93f60d71c8d80f368f6' + patch -p1 -i profxjc.patch + +最后构建 mutool, 由于源码中带了所有依赖,因此不需要使用系统已安装的库:: + + make USE_SYSTEM_LIBS=no build/release/mutool + +文档解密方法 +--------------- + +build/release/mutool merge -o output.pdf encrypted.pdf -- cgit v1.2.3