lightpdf-aipdf-mcp 0.1.101__py3-none-any.whl → 0.1.102__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.
- lightpdf_aipdf_mcp/converter.py +7 -0
- lightpdf_aipdf_mcp/server.py +2 -2
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.102.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.102.dist-info}/RECORD +6 -6
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.102.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.102.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/converter.py
CHANGED
@@ -274,6 +274,13 @@ class Converter(BaseApiClient):
|
|
274
274
|
if original_name:
|
275
275
|
extra_params["filename"] = os.path.splitext(original_name)[0]
|
276
276
|
|
277
|
+
# Excel转PDF特殊参数处理
|
278
|
+
file_ext = os.path.splitext(file_path)[1].lower()
|
279
|
+
if file_ext == ".xlsx" and format == "pdf":
|
280
|
+
merge_all = extra_params.get("merge_all", 0)
|
281
|
+
if merge_all:
|
282
|
+
extra_params["provider"] = "apower"
|
283
|
+
|
277
284
|
# 创建转换任务
|
278
285
|
task_id = await self._create_task(client, file_path, format, extra_params)
|
279
286
|
|
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -453,7 +453,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
453
453
|
"type": "integer",
|
454
454
|
"enum": [0, 1],
|
455
455
|
"default": 0,
|
456
|
-
"description": "
|
456
|
+
"description": "Only valid for: PDF to Image (1: merge to long image, 0: each page to an image), Image to PDF (1: all images to one PDF, 0: each image to a PDF), PDF to Excel (1: all pages to one sheet, 0: each page to a sheet), Excel to PDF (1: each sheet to a single page, 0: default, each sheet may be split into multiple pages if content is too large)."
|
457
457
|
}
|
458
458
|
},
|
459
459
|
"required": ["files", "format"]
|
@@ -1258,7 +1258,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
|
|
1258
1258
|
"layout": "on", # 添加layout默认值
|
1259
1259
|
"image_quantity": 60,
|
1260
1260
|
"split_type": "page",
|
1261
|
-
"merge_all":
|
1261
|
+
"merge_all": 0,
|
1262
1262
|
"angle": 90,
|
1263
1263
|
"pages": "all", # 更新默认值为"all"
|
1264
1264
|
"format": "png", # 提取图片的默认格式
|
@@ -1,11 +1,11 @@
|
|
1
1
|
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
2
|
lightpdf_aipdf_mcp/common.py,sha256=PhTf7Zg6mEgn1rTmJDHotXp-4xb2gWFf-Dy_t25qNdY,6660
|
3
|
-
lightpdf_aipdf_mcp/converter.py,sha256=
|
3
|
+
lightpdf_aipdf_mcp/converter.py,sha256=0Xv3k_fdyrqhT_ijcXMKvkL4TuryA-crkqMzLFMHp74,16470
|
4
4
|
lightpdf_aipdf_mcp/create_pdf.py,sha256=jKyzObP3Mj55yZ7EY2D0Qx-YkppFgEm_YmoBVB0VGEs,2265
|
5
5
|
lightpdf_aipdf_mcp/editor.py,sha256=vPaahaAV6pDZi_eheRGSgHzfZxc6ZqQyxHDgsNfdgjQ,29899
|
6
|
-
lightpdf_aipdf_mcp/server.py,sha256=
|
6
|
+
lightpdf_aipdf_mcp/server.py,sha256=TX2LTGLFJEleFQcqovARpB8H1Icho0KNOsIAi6BXAnc,64558
|
7
7
|
lightpdf_aipdf_mcp/translator.py,sha256=NbFDz-mZSD4qCNQVyV0W_0x6xXwbqs_7FiBU13JAxZs,4243
|
8
|
-
lightpdf_aipdf_mcp-0.1.
|
9
|
-
lightpdf_aipdf_mcp-0.1.
|
10
|
-
lightpdf_aipdf_mcp-0.1.
|
11
|
-
lightpdf_aipdf_mcp-0.1.
|
8
|
+
lightpdf_aipdf_mcp-0.1.102.dist-info/METADATA,sha256=36DTkz1Rz5s12qjkE7ToDxfHEpgfbquJqkDUIiWdlXw,8120
|
9
|
+
lightpdf_aipdf_mcp-0.1.102.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
lightpdf_aipdf_mcp-0.1.102.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
11
|
+
lightpdf_aipdf_mcp-0.1.102.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.102.dist-info}/entry_points.txt
RENAMED
File without changes
|