translate-in-place

Translate PDFs in place while preserving original layout and visual integrity.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lc0rp/luke-agent-scripts --skill translate-in-place
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate-in-place
Source: https://github.com/lc0rp/luke-agent-scripts/tree/main/skills/translate-in-place
Command: npx skills add https://github.com/lc0rp/luke-agent-scripts --skill translate-in-place

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf, pytesseract, requests, pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Translate PDFs and scanned document images into translated PDFs while preserving the original page layout, headers, footers, logos, tables, and handwritten marks, so the translated document looks like the source.

Core Features & Use Cases

  • Layout-preserving translation: Maintain page structure, headers/footers and non-text artifacts during translation.
  • OCR-enabled handling: Detect and translate content from scanned pages, with optional magnification and continuation pages for overflow.
  • End-to-end workflow: Classify pages, translate text regions, render overlays, and produce QA notes and continuation pages for overflow.

Quick Start

Run the translate-in-place workflow on a PDF to produce an in-place translated document that preserves headers, footers, logos, tables, and handwritten marks.

Frequently Asked Questions about translate-in-place

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate a scanned PDF while preserving the original layout and logos?

To translate a scanned PDF while preserving layout, the workflow classifies pages, applies OCR via Tesseract to extract text, and renders in-place translated text overlays so headers, footers, and logos remain in their original visual positions.

What is the best way to translate PDF documents in place without ruining tables and signatures?

The best way to translate PDFs in place without ruining tables and signatures is using a layout-preserving workflow that isolates text regions for translation while keeping non-text artifacts untouched, ensuring the translated document visually matches the source.

Does in-place PDF translation work with mixed digital and scanned pages?

Yes, in-place PDF translation handles mixed pages by automatically classifying each page as digital, mixed, or scanned, then selectively applying OCR only where needed before generating translated text overlays.

How do I handle text overflow when translating PDFs into a longer target language?

When translating PDFs into a longer target language, text overflow is handled through continuation-page generation, which creates additional pages to accommodate translated text that exceeds the original layout boundaries.

Do I need pytesseract and pymupdf to translate document images in place?

Yes, you need pytesseract and pymupdf along with requests and pillow, as these dependencies handle OCR extraction, PDF manipulation, and image processing required for the in-place translation workflow.

Why does my translated PDF need QA notes and what do they check?

Your translated PDF needs QA notes to flag potential translation or layout issues, acting as a quality assurance check that verifies the in-place translation overlays and continuation pages meet expected visual integrity standards.