使用
安裝前先知道:有已知漏洞
pickfit 在安裝時會一併裝上的套件裡找到 38 個已知的高風險或嚴重漏洞(OSV.dev,2026年11月5日),安裝前請先考慮。
pypi:pillow 10.4.0Pillow:透過 _tiffWriteProc 將 TIFF 儲存至 BytesIO 時發生 heap 緩衝區溢位 (GHSA-332p-7hrc-92wf,嚴重,13.0.0 已修正)pypi:filelock 3.32.7filelock ReadWriteLock:SQLite 依名稱重新開啟鎖定資料庫,因此植入的 symlink 或 journal 檔案會使持有鎖定使用者的處理程序覆寫或刪除自己的檔案 (GHSA-v4x8-3wr5-3wq8,高風險,4.2.1 已修正)
再看 8 個
pypi:pillow 10.4.0— GHSA-5x8w-8jj5-q52h(嚴重),13.0.0 已修正pypi:pillow 10.4.0— GHSA-8g5g-8vmr-9782(嚴重),13.0.0 已修正pypi:pillow 10.4.0— GHSA-w889-685w-c8fh(嚴重),13.0.0 已修正pypi:pillow 10.4.0— GHSA-22hg-r758-rrw9(高風險),13.0.0 已修正pypi:pillow 10.4.0— GHSA-27h8-gf7j-v5hc(高風險),13.0.0 已修正pypi:pillow 10.4.0— GHSA-3j72-p6qg-6xp7(高風險),13.0.0 已修正pypi:pillow 10.4.0— GHSA-45hq-cxwh-f6vc(高風險),12.3.0 已修正pypi:pillow 10.4.0— GHSA-58r4-6rv3-gfh8(高風險),13.0.0 已修正
另有 28 筆未列出。
Linux x86_64
需要先準備
- 執行環境:
python 3.10+
透過 uv tool 安裝 marker-pdf
uv tool install marker-pdf
確認能用
marker_single --help 2>&1輸出應包含「Show this message and exit.」。
先試試這個
cat > /tmp/makepdf.py << 'PY'
# minimal PDF writer with correct xref, stdlib only
def make_pdf(path, lines):
objs = []
objs.append("<< /Type /Catalog /Pages 2 0 R >>")
objs.append("<< /Type /Pages /Kids [3 0 R] /Count 1 >>")
objs.append("<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R /Resources << /Font << /F1 5 0 R >> >> >>")
# content stream
y = 750
stream_lines = ["BT", "/F1 12 Tf"]
for text in lines:
esc = text.replace("\\", "\\\\").replace("(", "\\(").replace(")", "\\)")
stream_lines.append(f"50 {y} Td ({esc}) Tj")
# reset position trick: move back
# use Td relative; simpler: use Tm absolute per line
# redo with Tm:
stream_lines.pop()
stream_lines.append(f"BT /F1 12 Tf 50 {y} Td ({esc}) Tj ET")
y -= 20
# Actually wrap: we already have BT open; simplify: join
stream = "\n".join(stream_lines[2:]) if len(stream_lines)>2 else ""
# rebuild cleanly
parts = []
for i, text in enumerate(lines):
esc = text.replace("\\", "\\\\").replace("(", "\\(").replace(")", "\\)")
yy = 750 - i*20
parts.append(f"BT /F1 12 Tf 50 {yy} Td ({esc}) Tj ET")
stream = "\n".join(parts) + "\n"
objs.append(f"<< /Length {len(stream.encode())} >>\nstream\n{stream}endstream")
objs.append("<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>")
out = bytearray()
out += b"%PDF-1.4\n"
offsets = [0]
for i, body in enumerate(objs, start=1):
offsets.append(len(out))
out += f"{i} 0 obj\n{body}\nendobj\n".encode()
xref_pos = len(out)
out += f"xref\n0 {len(objs)+1}\n0000000000 65535 f \n".encode()
for off in offsets[1:]:
out += f"{off:010d} 00000 n \n".encode()
out += f"trailer\n<< /Size {len(objs)+1} /Root 1 0 R >>\nstartxref\n{xref_pos}\n%%EOF".encode()
open(path, "wb").write(out)
print(f"wrote {path} {len(out)} bytes")
lines = [
"Hello Marker Test Document",
"This is a paragraph for conversion testing.",
"Name Age City",
"Alice 30 Paris",
"Bob 25 London",
"def hello(): print('hi')",
]
make_pdf("/tmp/sample.pdf", lines)
PY
python3 /tmp/makepdf.py && ls -l /tmp/sample.pdfmkdir -p /tmp/mout && marker_single /tmp/sample.pdf --output_dir /tmp/mout --disable_ocr 2>&1它能做什麼
- 將文件轉換為 markdown、JSON、chunks、HTML已測試
- 轉換 PDF、image、PPTX、DOCX、XLSX、HTML、EPUB沒有看到它可用
- 格式化表格、表單、方程式與程式碼區塊沒有看到它可用
- 擷取並儲存圖片未測試
pickfit 測到哪一步
Linux x86_64
- 可以安裝
- 可以啟動
- 4 項功能中 1 項可用
- 可離線使用
適合用來
- 將文件轉換為 markdown 與 JSON
- 將表格與方程式轉換為 markdown
- 將表格擷取為 HTML 區塊
可替代 MinerU 和 docling。
pickfit 怎麼測的
每次測試都從乾淨的機器開始,照上面的步驟執行。 pickfit 怎麼驗證
Linux x86_64
主要功能可用
- 從頭重跑
- 可離線使用
- 檢查於 2026年11月4日
- 版本 2.1.0
測試機器遇到的差異
- README: marker_single /path/to/file.pdf
測試中: 在此僅有 CPU 的沙盒中傳入 --disable_ocr,因此不會啟動 VLM/llama.cpp 伺服器;轉換改為僅使用純文字層擷取。 - README: log reports saved format-specific output
測試中: 儘管記錄行一律顯示 Saved markdown,正確的 sample.json/sample.html/chunks 檔案仍已寫入。