lightpdf-aipdf-mcp 0.1.50__py3-none-any.whl → 0.1.52__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"),
@@ -401,7 +401,7 @@ async def handle_list_tools() -> list[types.Tool]:
401
401
  ),
402
402
  types.Tool(
403
403
  name="remove_watermark",
404
- description="去除PDF文件中的水印,将文件处理后返回无水印的PDF版本。",
404
+ description="去除PDF文件中的水印。",
405
405
  inputSchema={
406
406
  "type": "object",
407
407
  "properties": {
@@ -505,7 +505,7 @@ async def handle_list_tools() -> list[types.Tool]:
505
505
  ),
506
506
  types.Tool(
507
507
  name="unlock_pdf",
508
- description="移除PDF文件的密码保护,生成无密码版本的PDF文件。",
508
+ description="移除PDF文件的密码保护。",
509
509
  inputSchema={
510
510
  "type": "object",
511
511
  "properties": {
@@ -612,7 +612,7 @@ async def handle_list_tools() -> list[types.Tool]:
612
612
  ),
613
613
  types.Tool(
614
614
  name="split_pdf",
615
- description="拆分PDF文件到多个文件。",
615
+ description="拆分PDF文件的每一页(或每个连续的页面范围)到一个文件(如果有多个文件,则返回zip包),或者提取指定的页面范围到一个PDF文件。",
616
616
  inputSchema={
617
617
  "type": "object",
618
618
  "properties": {
@@ -660,7 +660,7 @@ async def handle_list_tools() -> list[types.Tool]:
660
660
  ),
661
661
  types.Tool(
662
662
  name="merge_pdfs",
663
- description="合并多个PDF文件。",
663
+ description="合并多个PDF文件到一个PDF文件。",
664
664
  inputSchema={
665
665
  "type": "object",
666
666
  "properties": {
@@ -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.50
3
+ Version: 0.1.52
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=25UY58YF3vIypWjUx3GdEP0PHxA2hvZMiblT_A4ispg,40063
6
+ lightpdf_aipdf_mcp-0.1.52.dist-info/METADATA,sha256=tdV-B3SqBY78N7czBjSTRi0sJQkNiXwF6a0unYDUrnI,7906
7
+ lightpdf_aipdf_mcp-0.1.52.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.52.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.52.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=OLN8E6zoZxmH0IIeL3mdsNWl9PB1qecB_ierQgxzz_0,39982
6
- lightpdf_aipdf_mcp-0.1.50.dist-info/METADATA,sha256=u9tXwX4cBVZD8CGMnPiWWH1lZ2TGOSvG8Nl5S-oJ3kI,7906
7
- lightpdf_aipdf_mcp-0.1.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- lightpdf_aipdf_mcp-0.1.50.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
- lightpdf_aipdf_mcp-0.1.50.dist-info/RECORD,,