{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "lxsssssss-pdf-translate--audit-translated-pdf-against-original",
 "repo": "lxsssssss/pdf-translate",
 "repo_url": "https://github.com/lxsssssss/pdf-translate",
 "repo_slug": "lxsssssss-pdf-translate",
 "title": "Check a translated PDF against its original page by page",
 "page_title": "How to check a translated PDF against its original page by page with PDF Translate",
 "summary": "Run the audit script to compare page count, page size, clauses, numbers and placeholder wording.",
 "who": "A translator, reviewer or bid team lead who has a translated PDF and needs proof it matches the original before sending it out.",
 "problem": "Translated pages can drift in page count or size, lose clause numbers, change figures, or contain filler text such as placeholders, and these errors are easy to miss by eye.",
 "outcome": "A JSON audit report and side-by-side PNG images that show which pages pass and which pages need fixes.",
 "steps": [
  "Clone the repository with `git clone https://github.com/lxsssssss/pdf-translate.git` and enter it with `cd pdf-translate`.",
  "Install dependencies with `pip install -r requirements.txt` and `playwright install chromium`.",
  "Run the audit with `python scripts/audit_pdf.py --src original.pdf --tgt translated.pdf --json audit_report.json`.",
  "Generate side-by-side images with `python scripts/audit_pdf.py --src original.pdf --tgt translated.pdf --compare-png compare_png/`.",
  "Open audit_report.json and the images in compare_png/, then fix any flagged page and rerun the audit."
 ],
 "agent_prompt": "Use the pdf-translate repository to audit <translated.pdf> against <original.pdf>. Run scripts/audit_pdf.py with --json audit_report.json and --compare-png compare_png/, then summarize page count, page size, clause number, cross reference and number differences from the report. Confirm that the total page count matches before reporting anything else.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The audit checks clause numbers, cross references, numbers and placeholder wording; the README does not say it scores translation quality.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip installed",
  "Git to clone the repository",
  "Playwright Chromium installed with `playwright install chromium`, or Microsoft Edge on Windows",
  "The original PDF to translate or audit",
  "An AI agent or language model that can write HTML and run Python commands, if you want the translation step done for you"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lxsssssss-pdf-translate/audit-translated-pdf-against-original/",
 "md": "https://dedupedai.com/use-cases/lxsssssss-pdf-translate/audit-translated-pdf-against-original/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lxsssssss-pdf-translate--audit-translated-pdf-against-original.json",
 "api_version": "v1"
}
