MCPcopy Create free account
hub / github.com/NatsUIJM/autoContents / get_api_key

Function get_api_key

mainprogress/pdf_metadata_extractor.py:39–44  ·  view source on GitHub ↗

解析 API Key,支持环境变量提取

(raw_key: str)

Source from the content-addressed store, hash-verified

37logger = logging.getLogger(__name__)
38
39def create_concat_image_b64(doc: fitz.Document, start_p: int, end_p: int, save_path: str = None) -> str:
40 """将指定范围的 PDF 页面转换为横向拼接的 JPG,并在底部追加页码。"""
41 images = []
42 page_nums = []
43
44 # 定义目标长边像素,确保小页面也能被放大到清晰程度
45 TARGET_LONG_EDGE = 1500
46
47 for p in range(start_p - 1, end_p):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected