From b5e201f976e5308bb0e0b21725dcba369e870f55 Mon Sep 17 00:00:00 2001 From: AnkoQAQ <3552354372@qq.com> Date: Sat, 22 Feb 2025 14:55:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BF=BD=E7=95=A5=20.DS=5FStore=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81=E8=AF=AD?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9614a47..81ec080 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ dist/ *.egg-info **/qtpy/** __pycache__ +.DS_Store \ No newline at end of file From 09c8573c38e043cb8cfeb4629b3a951f01479f7f Mon Sep 17 00:00:00 2001 From: CoderWanFeng <1957875073@qq.com> Date: Thu, 19 Dec 2024 20:31:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=88=E5=B9=B62=E6=AC=A1contributor?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正代码 --- office/api/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/office/api/pdf.py b/office/api/pdf.py index 99d9aad..1b9c1a1 100644 --- a/office/api/pdf.py +++ b/office/api/pdf.py @@ -71,7 +71,7 @@ def add_text_watermark(input_file, point, text='python-office', 在PDF文档中添加文本水印。 文档:http://www.python4office.cn/python-office/popdf/%E8%AF%BE%E7%A8%8B/7-add_watermark """ - popdf.add_watermark(input_file, point, text, + popdf.add_text_watermark(input_file, point, text, output_file, fontname, fontsize, color)