# wxyhgk/retain-pdf

在保留版面、公式与结构的前提下进行 PDF 翻译，适用于科研与技术文档

Repository: https://github.com/wxyhgk/retain-pdf
Canonical: https://ross.abutalabs.com/products/retain-pdf
Language: Python
License: MIT
License Family: permissive
Topics: document-ai, document-processing, ocr, pdf, scientific-papers, translation, typst, layout-preserving
Last push: 2026-07-22T10:16:11+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 94, longevity 11
- inputs: {"age_days": 157, "days_push": 42, "days_rel": 42, "gap_med": 0.0, "n_releases_24m": 43}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2222, forks 270 (observed 2026-08-28T04:06:27.647052+00:00)

## What it is
RetainPDF is an open-source PDF translation tool that preserves layout, formulas, and document structure, with special support for scanned/image-based PDFs and complex inline formulas. It ships as desktop apps for Windows/macOS/Linux and a Docker-deployable web service with OCR, translation, and typesetting modules.

## Use cases
- translate scientific papers while keeping the original layout
- translate scanned or image-based PDFs
- preserve inline math formulas when translating PDFs
- batch translate technical documentation with custom translation rules
- self-host a PDF translation service for a team via Docker
- compress translated PDFs and control font sizes

## When to choose
- you need layout-preserving translation of scanned PDFs or complex formulas
- you want a self-hosted or API-driven PDF translation pipeline
- you translate scientific or technical documents regularly

## When to avoid
- you only need plain text extraction or translation without layout
- you need a lightweight CLI-only tool
- you require a fully offline solution without any model/API dependencies

## Facets
- artifact type: application
- maturity: active
- function: ocr, pdf, nlp, machine-learning, image-processing
- domain: pdf, files, education
- platform: windows, self-hosted, cross-platform
- tags: pdf-translation, layout-preserving, scanned-pdfs, scientific-papers, typst, document-ai, translation, natural-language-processing, localization, macos, linux, docker

## Member repositories
- wxyhgk/retain-pdf (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:27.647052+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:45:46.498975+00:00, confidence not recorded.
  - readme: https://github.com/wxyhgk/retain-pdf (fetched 2026-08-28T04:06:27.647052+00:00, sha c9fe0604dfc5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
