forked from zl03jsj/mupdf
-
Notifications
You must be signed in to change notification settings - Fork 0
扩展mupdf 实现图像数字证书签名, 手写笔迹数字证书签名, 插入图片, 手写签名注释..改进手写批注,实现模拟真实手写的算法, annot自定义数据, annot插入,删除密码校验等功能...支持ios, windows, mac, linux, c++, java, android
License
lanjiachuan/mupdf
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
about: extensions of mupdf. by 88911562@qq.com extension functions: 1)add pdf signature with image appearance. 2)add pdf signature with path appearance. 3)insert image to pdf. 4)add hand draw annotation to pdf. 5)annotation can added with password, and check password on deleting annotation. the all above functions could be used on windows, ios, android platform, and for java, c++ language. samples,look at: mupdf_path/source/z/pdf/samples/pdf_samples.c compile samples: $cd mupdf_path/source/z/pdf/ $./compile.sh then you can run sample: $./pdftest note: pdf signature samples may needs certificate, there is a test certificate at: mupdf_path/source/z/pdf/samples/user/zl.pfx and it's password is '111111' you must reset the path of pdf file, signature image, certificate , in pdf_samples.c the source code is like: #define RES_PATH "ResourecePath" #define RES_Image_file RES_PATH"/esp_saved.png" #define RES_Pdf_file RES_PATH"/pdffile/test.pdf" #define RES_Cert_file RES_PATH"/user/zl.pfx" compile mupdf core library on windows,mac,linux platform: first step: compile your openssl lib, get 2 library: libcrypto.a, libssl.a second: copy to mupdf_dir_path/thirdparty/openssl/platform/ dir platform is: ios, macos, win, linux finnally: $cd mupdf_dir_path $make -f Makefile HAVE_LIBCRYPTO=yes HAVE_OPENSSL_SSL=yes build=debug you can use "HAVE_OPENSSL=yes" to replace "HAVE_LIBCRYPTO=yes HAVE_OPENSSL_SSL=yes" if everything is ok, you can get libmupdf.a at mupdf_dir_path/build/release(debug)/ now you can use libmupdf.a to add image/(hand draw) signature, add image, add hand draw annotations.... do not forget: when compile application, you must link openssl library. example: gcc ./test_pdf_signature.c -LPathofOpensslLib -lcrypto -lssl -lmupdf compile mupdf for android: must install ndk, and compile neeeded architecture openssl lib. then, excute the following command: $cd mupdf_dir_path/platform/android/viewer/ $make -C ../../.. generate $ndk-build you can get dynamic lib for android at: mupdf_dir_path/platform/android/viewer/lib for ios: you can open the project at(mupdf_dir_path/platform/ios) with xcode directly. select the Mupdf_openssl_sign target to compile. the ios application's directory like this: app_path/Documents +/imagefiles image_files +/pfxfiles certificate_files ..... pdffiles.pdf ..... the test directory is created at: mupdf_path/platform/ios/Documents/ you can use this folder directly. all extensions by 88911562@qq.com mupdf official website: www.mupdf.com
About
扩展mupdf 实现图像数字证书签名, 手写笔迹数字证书签名, 插入图片, 手写签名注释..改进手写批注,实现模拟真实手写的算法, annot自定义数据, annot插入,删除密码校验等功能...支持ios, windows, mac, linux, c++, java, android
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 84.0%
- Java 7.5%
- C++ 3.6%
- Objective-C 3.4%
- Makefile 0.5%
- Batchfile 0.3%
- Other 0.7%