summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-12-08 14:00:41 +0800
committerIru Cai <mytbk920423@gmail.com>2019-03-18 23:22:07 +0800
commitb78630383f8182e45a663250c5ac9520b825e468 (patch)
tree801059f886a9946082cef191b6b11cb40721bc95
parent918467458d7572e5d54fc93f60d71c8d80f368f6 (diff)
downloadmupdf-xjc-rebase.tar.xz
document how to decryptxjc-rebase
-rw-r--r--README.profxjc22
1 files changed, 22 insertions, 0 deletions
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