lightpdf-aipdf-mcp 0.1.49__py3-none-any.whl → 0.1.51__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -293,7 +293,7 @@ class Editor(BaseApiClient):
293
293
  file_path: str,
294
294
  text: str,
295
295
  position: str, # 必需参数:位置,如"top", "center", "diagonal"等
296
- opacity: float = 0.5,
296
+ opacity: float = 1.0,
297
297
  range: str = "", # 与API保持一致,使用range而非pages
298
298
  layout: Optional[str] = None, # 可选参数: "on"/"under"
299
299
  font_family: Optional[str] = None,
@@ -308,7 +308,7 @@ class Editor(BaseApiClient):
308
308
  file_path: 要添加水印的PDF文件路径
309
309
  text: 水印文本内容
310
310
  position: 水印位置,如"top", "center", "diagonal"等
311
- opacity: 透明度,0.0-1.0,默认0.5
311
+ opacity: 透明度,0.0-1.0,默认1.0
312
312
  range: 页面范围,例如 "1,3,5-7" 或空字符串表示所有页面
313
313
  layout: 布局方式:"on"=在内容上,"under"=在内容下,默认"on"
314
314
  font_family: 字体
@@ -154,7 +154,7 @@ async def process_edit_file(
154
154
  file_path=file_path,
155
155
  text=extra_params.get("text", "水印"),
156
156
  position=extra_params.get("position", "center"),
157
- opacity=extra_params.get("opacity", 0.5),
157
+ opacity=extra_params.get("opacity", 1.0),
158
158
  range=extra_params.get("range", ""),
159
159
  layout=extra_params.get("layout", "on"),
160
160
  font_family=extra_params.get("font_family"),
@@ -465,7 +465,7 @@ async def handle_list_tools() -> list[types.Tool]:
465
465
  },
466
466
  "position": {
467
467
  "type": "string",
468
- "description": "水印位置: 左上(topleft), 上中(top), 右上(topright), 左(left), 中(center), 右(right), 左下(bottomleft), 下(bottom), 右下(bottomright), 对角线(diagonal,-45), 反对角线(reverse-diagonal45)",
468
+ "description": "水印位置: 左上(topleft), 上中(top), 右上(topright), 左(left), 中(center), 右(right), 左下(bottomleft), 下(bottom), 右下(bottomright), 对角线(diagonal,负45度,-45), 反对角线(reverse-diagonal,正45度,45)",
469
469
  "enum": ["topleft", "top", "topright", "left", "center", "right",
470
470
  "bottomleft", "bottom", "bottomright", "diagonal", "reverse-diagonal"],
471
471
  "default": "center"
@@ -801,7 +801,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
801
801
  "position_page_numbers": "5", # 添加页码的位置默认值
802
802
  "position_watermark": "center", # 水印的位置默认值
803
803
  "margin": 30,
804
- "opacity": 0.5,
804
+ "opacity": 1.0,
805
805
  "range": "",
806
806
  "layout": "on", # 添加layout默认值
807
807
  "image_quantity": 60,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.49
3
+ Version: 0.1.51
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -0,0 +1,9 @@
1
+ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
+ lightpdf_aipdf_mcp/common.py,sha256=-7LU6gm-As_F8Ly68ssy15Vc9Zt_eNSnvDLEtVZDwlI,6633
3
+ lightpdf_aipdf_mcp/converter.py,sha256=QBwKcCg83FrGGDCy3IFyXjldIZg2hzej_zCH8nyOPak,14768
4
+ lightpdf_aipdf_mcp/editor.py,sha256=PVsgpgqc89MTf7-D2iRoescXJW90Kv51mP1oXGeneaY,23534
5
+ lightpdf_aipdf_mcp/server.py,sha256=F_He-Vnazoku1u45A3n652YTW2al3JehtPJO0aPfXIA,39982
6
+ lightpdf_aipdf_mcp-0.1.51.dist-info/METADATA,sha256=BcGSTsudsmnH9Og5JatE3D7LsbfhRHZRuKm8MD_EFHA,7906
7
+ lightpdf_aipdf_mcp-0.1.51.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.51.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.51.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
- lightpdf_aipdf_mcp/common.py,sha256=-7LU6gm-As_F8Ly68ssy15Vc9Zt_eNSnvDLEtVZDwlI,6633
3
- lightpdf_aipdf_mcp/converter.py,sha256=QBwKcCg83FrGGDCy3IFyXjldIZg2hzej_zCH8nyOPak,14768
4
- lightpdf_aipdf_mcp/editor.py,sha256=fmJ_ov7Sc0Ni2e_-WhCJWlGkdDJLqizQnKLHCVtbvcY,23534
5
- lightpdf_aipdf_mcp/server.py,sha256=xBG5a0KFFd3_3_4WI7WSC9XN8ebYX6gl6VDJ4jZBwAE,39966
6
- lightpdf_aipdf_mcp-0.1.49.dist-info/METADATA,sha256=ONvqzkdo-dwD-LhpoO0De1U2AVib33ixl51bkZ9eZ4U,7906
7
- lightpdf_aipdf_mcp-0.1.49.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- lightpdf_aipdf_mcp-0.1.49.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
- lightpdf_aipdf_mcp-0.1.49.dist-info/RECORD,,