lightpdf-aipdf-mcp 0.1.108__py3-none-any.whl → 0.1.110__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.
@@ -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
- # Excel转PDF特殊参数处理
278
- file_ext = os.path.splitext(file_path)[1].lower()
279
- if file_ext == ".xlsx" and format == "pdf":
280
- one_page_per_sheet = extra_params.get("one_page_per_sheet", 0)
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
 
@@ -51,7 +51,12 @@ async def create_pdf_from_latex(latex_content: str, output_path: Optional[str] =
51
51
  )
52
52
  finally:
53
53
  if tex_path and os.path.exists(tex_path):
54
- try:
55
- os.remove(tex_path)
56
- except Exception:
57
- pass
54
+ import threading
55
+ def delayed_remove(path):
56
+ try:
57
+ os.remove(path)
58
+ except Exception:
59
+ pass
60
+ timer = threading.Timer(600, delayed_remove, args=(tex_path,))
61
+ timer.daemon = True
62
+ timer.start()
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.108
3
+ Version: 0.1.110
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -0,0 +1,11 @@
1
+ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
+ lightpdf_aipdf_mcp/common.py,sha256=PhTf7Zg6mEgn1rTmJDHotXp-4xb2gWFf-Dy_t25qNdY,6660
3
+ lightpdf_aipdf_mcp/converter.py,sha256=1SQcPTKXbf6UKqC1zJ4Vi-k7GxGTtPiVKyhGYAvK7DY,16299
4
+ lightpdf_aipdf_mcp/create_pdf.py,sha256=VAa4K3K77GxctjwzaBl_kLzSsvmb_L3VO7gYb1pjEBY,2477
5
+ lightpdf_aipdf_mcp/editor.py,sha256=vPaahaAV6pDZi_eheRGSgHzfZxc6ZqQyxHDgsNfdgjQ,29899
6
+ lightpdf_aipdf_mcp/server.py,sha256=2ZCuYc51WKUmQ7Y5UsV6d5IwLPMH5DPyXiMFWqJBj3c,65331
7
+ lightpdf_aipdf_mcp/translator.py,sha256=NbFDz-mZSD4qCNQVyV0W_0x6xXwbqs_7FiBU13JAxZs,4243
8
+ lightpdf_aipdf_mcp-0.1.110.dist-info/METADATA,sha256=WxyJdgbI41G2y5oQQXnWUo0KVCzw0FcfQtc1_EEjESw,8120
9
+ lightpdf_aipdf_mcp-0.1.110.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ lightpdf_aipdf_mcp-0.1.110.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
+ lightpdf_aipdf_mcp-0.1.110.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
- lightpdf_aipdf_mcp/common.py,sha256=PhTf7Zg6mEgn1rTmJDHotXp-4xb2gWFf-Dy_t25qNdY,6660
3
- lightpdf_aipdf_mcp/converter.py,sha256=dpiZUPEsh4SYYvo6nsXED1IW58nt2BdTlct02mLI624,16497
4
- lightpdf_aipdf_mcp/create_pdf.py,sha256=jKyzObP3Mj55yZ7EY2D0Qx-YkppFgEm_YmoBVB0VGEs,2265
5
- lightpdf_aipdf_mcp/editor.py,sha256=vPaahaAV6pDZi_eheRGSgHzfZxc6ZqQyxHDgsNfdgjQ,29899
6
- lightpdf_aipdf_mcp/server.py,sha256=RynbDREojuF4bDWhUGU4-Rl0LC-aRHnaTsvIwTcBAN8,65269
7
- lightpdf_aipdf_mcp/translator.py,sha256=NbFDz-mZSD4qCNQVyV0W_0x6xXwbqs_7FiBU13JAxZs,4243
8
- lightpdf_aipdf_mcp-0.1.108.dist-info/METADATA,sha256=FwTFbod2hdMTIAbMVq480VlXZsz2vbviCEHqzfg59Jg,8120
9
- lightpdf_aipdf_mcp-0.1.108.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- lightpdf_aipdf_mcp-0.1.108.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
- lightpdf_aipdf_mcp-0.1.108.dist-info/RECORD,,