Skip to content

Commit b25c4b9

Browse files
authored
First Commit: Add EXE Files
1 parent 989fb5d commit b25c4b9

File tree

7 files changed

+43
-0
lines changed

7 files changed

+43
-0
lines changed

ReadMe.assets/1.png

103 KB
Loading

ReadMe.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# 一键WORD转PDF
2+
3+
## Feature
4+
5+
1. PDF里面是图片,无法被直接编辑去水印
6+
2. 图片采用单色像素,水印去除难度极大
7+
3. 一键搞定,方便快捷
8+
9+
<img src="ReadMe.assets/1.png" alt="1" style="zoom:25%;" />
10+
11+
## Install
12+
13+
- 需要使用`Microsoft Word`
14+
15+
## How to use?
16+
17+
1. 把需要转换的Word文件(后缀为`.docx`或者`.doc`)放入这个`Project`文件夹 **OR**`word2pdf.exe``pdf2img.exe``img2pdf.exe``RunCode.bat`放入你需要转换的Word目录下
18+
19+
2. 双击打开`RunCode.bat`自动执行程序
20+
21+
3. 程序运行完毕,打开该目录下的`outputPDF`的文件夹,就是生成的PDF文件
22+
23+
## How to work?
24+
25+
1. `RunCode.bat`按如下次序依次调用三个程序;
26+
2. `word2pdf.exe`把当前目录下(不包括子目录)所有Word文件转为RGB色彩的PDF,保存在`./PDF`里,文件名为`<Word_name>.pdf`
27+
3. `pdf2img.exe``./PDF`里所有PDF文件导出为PNG文件,分别保存在`./PDF/<Word_name>/<Page_Number>.png`里,考虑到实际需求,这里限制导出页数不超过99张(可以根据需要扩容到任意多张);
28+
4. `img2pdf.exe``./PDF/<Word_name>`下的所有图片转化为单色图并覆盖保存,再将这些单色图合成PDF保存在`./outputPDF/<Word_name>.pdf`里。
29+
30+
## Developer
31+
32+
- **chshzhe**
33+
34+
Github: https://github.com/chshzhe/Indecipherable-Watermark
35+

RunCode.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
echo off
2+
cls
3+
echo WORD to PDF
4+
start /wait word2pdf.exe
5+
echo PDF to IMG
6+
start /wait pdf2img.exe
7+
echo IMG to PDF
8+
start /wait img2pdf.exe

img2pdf.exe

19.2 MB
Binary file not shown.

pdf2img.exe

19.2 MB
Binary file not shown.

word2pdf.exe

10.4 MB
Binary file not shown.

示例文档.docx

103 KB
Binary file not shown.

0 commit comments

Comments
 (0)