lightpdf-aipdf-mcp 0.1.101__py3-none-any.whl → 0.1.103__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 +7 -2
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.103.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.103.dist-info}/RECORD +6 -6
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.103.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.103.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,12 @@ 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 effective in the following scenarios (meaning varies by scenario):\n"
|
457
|
+
"- PDF to Image: 1 = merge all pages into one long image, 0 = output one image per page;\n"
|
458
|
+
"- Image to PDF: 1 = merge all images into a single PDF, 0 = create one PDF per image;\n"
|
459
|
+
"- PDF to Excel: 1 = merge all pages into one sheet, 0 = one sheet per page;\n"
|
460
|
+
"- Excel to PDF: 1 = each sheet becomes a single page, 0 = default (if sheet content is too large, it may be split into multiple pages).\n"
|
461
|
+
"This parameter is ignored for other conversion types."
|
457
462
|
}
|
458
463
|
},
|
459
464
|
"required": ["files", "format"]
|
@@ -1258,7 +1263,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
|
|
1258
1263
|
"layout": "on", # 添加layout默认值
|
1259
1264
|
"image_quantity": 60,
|
1260
1265
|
"split_type": "page",
|
1261
|
-
"merge_all":
|
1266
|
+
"merge_all": 0,
|
1262
1267
|
"angle": 90,
|
1263
1268
|
"pages": "all", # 更新默认值为"all"
|
1264
1269
|
"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=pZ-KZ7ZKOfVm1seG0EMawsAyVO8mMBHIKfL7oL9fAMs,64944
|
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.103.dist-info/METADATA,sha256=pDOt9lOr_1qFD1mP3f-NZUCqQQUKazQTwZTpcZkYnnE,8120
|
9
|
+
lightpdf_aipdf_mcp-0.1.103.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
lightpdf_aipdf_mcp-0.1.103.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
11
|
+
lightpdf_aipdf_mcp-0.1.103.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.101.dist-info → lightpdf_aipdf_mcp-0.1.103.dist-info}/entry_points.txt
RENAMED
File without changes
|