1 Star 0 Fork 0

刘印/pdfparser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
Ben Golder 提交于 2016-10-07 21:01 . don't test unicode font on Travis
.PHONY: default field_data fill_fields arabic_test combine_pdfs test
TESTPDFS=src/test/resources/testpdfs
UNICODE_FONT_MAC='/Library/Fonts/Arial Unicode.ttf'
default:
mvn clean package
field_data:
java -jar target/pdfparser-1.0-SNAPSHOT-jar-with-dependencies.jar \
get_fields $(TESTPDFS)/sample_form-filled.pdf
fill_fields:
java -jar target/pdfparser-1.0-SNAPSHOT-jar-with-dependencies.jar \
set_fields \
$(TESTPDFS)/sample_form-filled.pdf \
output.pdf \
'{"fields": [{"Given Name Text Box": "Henry"},{"Family Name Text Box": "Raspberry"}]}'
arabic_test:
java -jar target/pdfparser-1.0-SNAPSHOT-jar-with-dependencies.jar \
set_fields \
$(TESTPDFS)/sample_form-filled.pdf \
arabic.pdf \
'{"fields": [{"Given Name Text Box": "HI البنك المتحد"},{"Family Name Text Box": "\u0627\u0644\u0628\u0646\u0643 \u0627\u0644\u0645\u062a\u062d\u062f"}]}' \
font_path $(UNICODE_FONT_MAC)
combine_pdfs:
java -jar target/pdfparser-1.0-SNAPSHOT-jar-with-dependencies.jar \
concat_files \
$(TESTPDFS)/checkbox.pdf \
$(TESTPDFS)/dropdown.pdf \
$(TESTPDFS)/listbox.pdf \
$(TESTPDFS)/radio.pdf \
$(TESTPDFS)/signature.pdf \
$(TESTPDFS)/text.pdf \
output.pdf
test:
mvn clean package
make field_data
make fill_fields
make combine_pdfs
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kzzn/pdfparser.git
git@gitee.com:kzzn/pdfparser.git
kzzn
pdfparser
pdfparser
master

搜索帮助