lightpdf-aipdf-mcp 0.1.108__py3-none-any.whl → 0.1.109__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 +4 -7
- lightpdf_aipdf_mcp/server.py +1 -0
- {lightpdf_aipdf_mcp-0.1.108.dist-info → lightpdf_aipdf_mcp-0.1.109.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.108.dist-info → lightpdf_aipdf_mcp-0.1.109.dist-info}/RECORD +6 -6
- {lightpdf_aipdf_mcp-0.1.108.dist-info → lightpdf_aipdf_mcp-0.1.109.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.108.dist-info → lightpdf_aipdf_mcp-0.1.109.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/converter.py
CHANGED
@@ -274,13 +274,10 @@ class Converter(BaseApiClient):
|
|
274
274
|
if original_name:
|
275
275
|
extra_params["filename"] = os.path.splitext(original_name)[0]
|
276
276
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
if one_page_per_sheet:
|
282
|
-
extra_params["provider"] = "apower"
|
283
|
-
|
277
|
+
one_page_per_sheet = extra_params.pop("one_page_per_sheet", False)
|
278
|
+
if one_page_per_sheet:
|
279
|
+
extra_params["provider"] = "apower"
|
280
|
+
|
284
281
|
# 创建转换任务
|
285
282
|
task_id = await self._create_task(client, file_path, format, extra_params)
|
286
283
|
|
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -1179,6 +1179,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
|
|
1179
1179
|
"convert_document": {
|
1180
1180
|
"format_key": "format", # 从arguments获取format
|
1181
1181
|
"is_edit_operation": False,
|
1182
|
+
"param_keys": ["merge_all", "one_page_per_sheet"]
|
1182
1183
|
},
|
1183
1184
|
"remove_watermark": {
|
1184
1185
|
"format": "doc-repair", # 固定format
|
@@ -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=1SQcPTKXbf6UKqC1zJ4Vi-k7GxGTtPiVKyhGYAvK7DY,16299
|
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=2ZCuYc51WKUmQ7Y5UsV6d5IwLPMH5DPyXiMFWqJBj3c,65331
|
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.109.dist-info/METADATA,sha256=ER7zMRlBEVfTWanVMLyMmVqSD--qTt04fxVXd_1D7CQ,8120
|
9
|
+
lightpdf_aipdf_mcp-0.1.109.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
lightpdf_aipdf_mcp-0.1.109.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
11
|
+
lightpdf_aipdf_mcp-0.1.109.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.108.dist-info → lightpdf_aipdf_mcp-0.1.109.dist-info}/entry_points.txt
RENAMED
File without changes
|