lightpdf-aipdf-mcp 0.1.48__py3-none-any.whl → 0.1.50__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/editor.py +1 -1
- lightpdf_aipdf_mcp/server.py +1 -1
- {lightpdf_aipdf_mcp-0.1.48.dist-info → lightpdf_aipdf_mcp-0.1.50.dist-info}/METADATA +1 -1
- lightpdf_aipdf_mcp-0.1.50.dist-info/RECORD +9 -0
- lightpdf_aipdf_mcp-0.1.48.dist-info/RECORD +0 -9
- {lightpdf_aipdf_mcp-0.1.48.dist-info → lightpdf_aipdf_mcp-0.1.50.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.48.dist-info → lightpdf_aipdf_mcp-0.1.50.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/converter.py
CHANGED
@@ -103,7 +103,7 @@ class Converter(BaseApiClient):
|
|
103
103
|
"""PDF文档转换器"""
|
104
104
|
def __init__(self, logger: Logger, file_handler: FileHandler):
|
105
105
|
super().__init__(logger, file_handler)
|
106
|
-
api_endpoint = os.
|
106
|
+
api_endpoint = os.getenv("API_ENDPOINT", "techsz.aoscdn.com/api")
|
107
107
|
self.api_base_url = f"https://{api_endpoint}/tasks/document/conversion"
|
108
108
|
|
109
109
|
async def add_page_numbers(self, file_path: str, start_num: int = 1, position: str = "5", margin: int = 30, password: str = None, original_name: Optional[str] = None) -> ConversionResult:
|
lightpdf_aipdf_mcp/editor.py
CHANGED
@@ -29,7 +29,7 @@ class Editor(BaseApiClient):
|
|
29
29
|
"""PDF文档编辑器"""
|
30
30
|
def __init__(self, logger: Logger, file_handler: FileHandler):
|
31
31
|
super().__init__(logger, file_handler)
|
32
|
-
api_endpoint = os.
|
32
|
+
api_endpoint = os.getenv("API_ENDPOINT", "techsz.aoscdn.com/api")
|
33
33
|
self.api_base_url = f"https://{api_endpoint}/tasks/document/pdfedit"
|
34
34
|
|
35
35
|
async def _validate_pdf_file(self, file_path: str) -> bool:
|
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -465,7 +465,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
465
465
|
},
|
466
466
|
"position": {
|
467
467
|
"type": "string",
|
468
|
-
"description": "水印位置: 左上(topleft), 上中(top), 右上(topright), 左(left), 中(center), 右(right), 左下(bottomleft), 下(bottom), 右下(bottomright), 对角线(diagonal
|
468
|
+
"description": "水印位置: 左上(topleft), 上中(top), 右上(topright), 左(left), 中(center), 右(right), 左下(bottomleft), 下(bottom), 右下(bottomright), 对角线(diagonal,负45度,-45), 反对角线(reverse-diagonal,正45度,45)",
|
469
469
|
"enum": ["topleft", "top", "topright", "left", "center", "right",
|
470
470
|
"bottomleft", "bottom", "bottomright", "diagonal", "reverse-diagonal"],
|
471
471
|
"default": "center"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
+
lightpdf_aipdf_mcp/common.py,sha256=-7LU6gm-As_F8Ly68ssy15Vc9Zt_eNSnvDLEtVZDwlI,6633
|
3
|
+
lightpdf_aipdf_mcp/converter.py,sha256=QBwKcCg83FrGGDCy3IFyXjldIZg2hzej_zCH8nyOPak,14768
|
4
|
+
lightpdf_aipdf_mcp/editor.py,sha256=fmJ_ov7Sc0Ni2e_-WhCJWlGkdDJLqizQnKLHCVtbvcY,23534
|
5
|
+
lightpdf_aipdf_mcp/server.py,sha256=OLN8E6zoZxmH0IIeL3mdsNWl9PB1qecB_ierQgxzz_0,39982
|
6
|
+
lightpdf_aipdf_mcp-0.1.50.dist-info/METADATA,sha256=u9tXwX4cBVZD8CGMnPiWWH1lZ2TGOSvG8Nl5S-oJ3kI,7906
|
7
|
+
lightpdf_aipdf_mcp-0.1.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.50.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.50.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
-
lightpdf_aipdf_mcp/common.py,sha256=-7LU6gm-As_F8Ly68ssy15Vc9Zt_eNSnvDLEtVZDwlI,6633
|
3
|
-
lightpdf_aipdf_mcp/converter.py,sha256=gsYBLqE6EnMCpCYHaYjcdBD5mhXVqiTRvl1yLSqA01w,14773
|
4
|
-
lightpdf_aipdf_mcp/editor.py,sha256=KySdMurM8AZHwqSU1PpkSCCesQ4t2h-D8Mm12wf90CA,23539
|
5
|
-
lightpdf_aipdf_mcp/server.py,sha256=xBG5a0KFFd3_3_4WI7WSC9XN8ebYX6gl6VDJ4jZBwAE,39966
|
6
|
-
lightpdf_aipdf_mcp-0.1.48.dist-info/METADATA,sha256=hwJGSfBTQqKSBZBSESGG6Eu1zNgxbzq5CeC7Hr5oqH0,7906
|
7
|
-
lightpdf_aipdf_mcp-0.1.48.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
-
lightpdf_aipdf_mcp-0.1.48.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
-
lightpdf_aipdf_mcp-0.1.48.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.48.dist-info → lightpdf_aipdf_mcp-0.1.50.dist-info}/entry_points.txt
RENAMED
File without changes
|