What do you want to do?
3 use cases
-
Check a translated PDF against its original page by page
Run the audit script to compare page count, page size, clauses, numbers and placeholder wording.
- PDF Translate
- Claude Code
- Codex
- Cursor
- Work and operations
- Intermediate
View 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.
-
Turn a translated HTML layout into a vector PDF with overflow checks
Render HTML with Playwright into a selectable, searchable PDF and stop if any page overflows.
- PDF Translate
- Claude Code
- Codex
- Cursor
- Work and operations
- Intermediate
View prompt
In the pdf-translate repository, render <input.html> to <output.pdf> using scripts/render_pdf.py with --strict-overflow. If the exit code is 2, edit the HTML to remove the reported page overflow and render again. Verify that output.pdf exists and has the expected page count before finishing.
-
Have an AI agent translate an official PDF and keep its layout
Use the skill's two-stage SOP so an agent extracts clauses first, then renders and audits the result.
View prompt
Using the pdf-translate skill in .claude/skills/pdf-translate, translate <original.pdf> into <target language> while keeping its layout, following SKILL_EN.md. Render the HTML with scripts/render_pdf.py using --strict-overflow, then audit the output against <original.pdf> with scripts/audit_pdf.py using --strict and --json audit_report.json. Verify that the audit report shows matching page count and page sizes before you say the job is done.
How to use PDF Translate
- Check you have what it needs: Python with pip installed; Git to clone the repository; Playwright Chromium installed with `playwright install chromium`, or Microsoft Edge on Windows.
- Open lxsssssss/pdf-translate on GitHub and read the README and license.
- Clone the repository with
git clone https://github.com/lxsssssss/pdf-translate.gitand enter it withcd pdf-translate. - Install dependencies with
pip install -r requirements.txtandplaywright 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/.
These steps come from our top use case, Check a translated PDF against its original page by page, which also has a copy-paste agent prompt.
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freePDF Translate alternatives · Best AI repos for Work and operations
About this repo
- Who it is forBuilt for people translating official documents, tenders, contracts and academic papers who need the translated PDF to keep the original page count, sizes and layout.
- Why it is hot
- LanguagePython
- Sourcegithub.com/lxsssssss/pdf-translate · Back to Hot repos
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
Add this badge to your README
Maintain PDF Translate? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/lxsssssss-pdf-translate/?utm_source=github&utm_medium=badge&utm_campaign=lxsssssss-pdf-translate)
HTML
<a href="https://dedupedai.com/use-cases/lxsssssss-pdf-translate/?utm_source=github&utm_medium=badge&utm_campaign=lxsssssss-pdf-translate"><img src="https://dedupedai.com/badge/lxsssssss/pdf-translate.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about PDF Translate
What is PDF Translate?
A Python agent skill that rebuilds a translated document as a layout-preserving vector PDF through a headless browser, then audits the result against the original PDF. It is an open-source project on GitHub: https://github.com/lxsssssss/pdf-translate.
Who is PDF Translate for?
Built for people translating official documents, tenders, contracts and academic papers who need the translated PDF to keep the original page count, sizes and layout.
What can I do with PDF Translate?
3 use cases so far, for example: Check a translated PDF against its original page by page; Turn a translated HTML layout into a vector PDF with overflow checks; Have an AI agent translate an official PDF and keep its layout. Each has steps and a copy-paste agent prompt.
What do I need to run PDF Translate?
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.
What are alternatives to PDF Translate?
Other hot AI repos in Work and operations: Spynel, Agents Office, Knowledge Work Plugins, Itsaplan, Endoplexity.
Is PDF Translate safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.