lightpdf-aipdf-mcp 0.1.133__py3-none-any.whl → 0.1.135__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 +1 -1
- lightpdf_aipdf_mcp/server.py +2 -2
- {lightpdf_aipdf_mcp-0.1.133.dist-info → lightpdf_aipdf_mcp-0.1.135.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.133.dist-info → lightpdf_aipdf_mcp-0.1.135.dist-info}/RECORD +6 -6
- {lightpdf_aipdf_mcp-0.1.133.dist-info → lightpdf_aipdf_mcp-0.1.135.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.133.dist-info → lightpdf_aipdf_mcp-0.1.135.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/converter.py
CHANGED
@@ -336,7 +336,7 @@ class Converter(BaseApiClient):
|
|
336
336
|
if format == "pdf":
|
337
337
|
ext = self.file_handler.get_file_extension(file_path)
|
338
338
|
# 支持直接转PDF的文件后缀
|
339
|
-
direct_pdf_exts = {".docx", ".xlsx", ".pptx", ".jpg", ".jpeg", ".png", ".dwg", ".caj", ".ofd", ".html", ".txt", ".tex"}
|
339
|
+
direct_pdf_exts = {".docx", ".xlsx", ".pptx", ".jpg", ".jpeg", ".png", ".dwg", ".caj", ".ofd", ".html", ".txt", ".tex", ".odt"}
|
340
340
|
# 本地.html 或 URL 且后缀不在direct_pdf_exts都走wkhtmltopdf
|
341
341
|
if ext == ".html" or (file_path and file_path.startswith(("http://", "https://")) and ext not in direct_pdf_exts):
|
342
342
|
api_url = self.api_wkhtmltopdf_url
|
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -434,7 +434,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
434
434
|
return [
|
435
435
|
types.Tool(
|
436
436
|
name="convert_document",
|
437
|
-
description="Document format conversion tool.\n\nPDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, MD (Markdown), or TEX (LaTeX).\nOther formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT) can be converted to PDF. For HTML to PDF, both local HTML files and any web page URL are supported.\n\nPDF to PDF conversion is not supported.\nOnly entire files can be converted.\
|
437
|
+
description="Document format conversion tool.\n\nPDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, MD (Markdown), or TEX (LaTeX).\nOther formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT, ODT) can be converted to PDF. For HTML to PDF, both local HTML files and any web page URL are supported.\n\nPDF to PDF conversion is not supported.\nOnly entire files can be converted.\nFor content-based PDF creation, please use the create_pdf tool. This tool is strictly for file format conversion only.",
|
438
438
|
inputSchema={
|
439
439
|
"type": "object",
|
440
440
|
"properties": {
|
@@ -462,7 +462,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
462
462
|
},
|
463
463
|
"format": {
|
464
464
|
"type": "string",
|
465
|
-
"description": "Target format. PDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, MD (Markdown), or TEX (LaTeX). Other formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT) can be converted to PDF. For HTML to PDF, both local HTML files and any web page URL are supported. PDF to PDF conversion is not supported.",
|
465
|
+
"description": "Target format. PDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, MD (Markdown), or TEX (LaTeX). Other formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT, ODT) can be converted to PDF. For HTML to PDF, both local HTML files and any web page URL are supported. PDF to PDF conversion is not supported.",
|
466
466
|
"enum": ["pdf", "docx", "xlsx", "pptx", "jpg", "jpeg", "png", "html", "txt", "csv", "md", "tex"]
|
467
467
|
},
|
468
468
|
"merge_all": {
|
@@ -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=XTrMwzXUV1eG_Wlr6l0HrdL9UlEMS4ediVSrBX7YHUM,17090
|
4
4
|
lightpdf_aipdf_mcp/create_pdf.py,sha256=oALIhOBo60D3Gu_li7d7FF0COhFfSTM-BJpc63r9iAs,2465
|
5
5
|
lightpdf_aipdf_mcp/editor.py,sha256=cYJ6NlS9q_HJwL-Aw7mVwCT5CECMLWYlmR_ePhw_Ja4,30081
|
6
|
-
lightpdf_aipdf_mcp/server.py,sha256=
|
6
|
+
lightpdf_aipdf_mcp/server.py,sha256=15J_dPZN1lurRUkHG4BTMKUDNrdPoiArOnSqh1Ru8Hk,66670
|
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.135.dist-info/METADATA,sha256=PTUZP-BIKA-iCmNiZuju_tr73guyLGjBZprDbcKP47M,8120
|
9
|
+
lightpdf_aipdf_mcp-0.1.135.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
lightpdf_aipdf_mcp-0.1.135.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
11
|
+
lightpdf_aipdf_mcp-0.1.135.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.133.dist-info → lightpdf_aipdf_mcp-0.1.135.dist-info}/entry_points.txt
RENAMED
File without changes
|