visa-doc-translate

Translates visa document images to English and generates bilingual PDFs.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Femad-6/my-skills --skill visa-doc-translate-femad-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visa-doc-translate
Source: https://github.com/Femad-6/my-skills/tree/main/.github/skills/visa-doc-translate
Command: npx skills add https://github.com/Femad-6/my-skills --skill visa-doc-translate-femad-6

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pillow, reportlab, pyobjc-framework-Vision, pyobjc-framework-Quartz, easyocr, pytesseract.

What problem does it solve? Visa applications require certified English translations of official documents like bank statements and employment certificates, which normally involves manual OCR, translation, and document formatting work. ## Core Features & Use Cases - Automatic OCR: Extracts text from document images using macOS Vision, EasyOCR, or Tesseract with automatic fallback between methods. - Bilingual PDF Generation: Produces a two-page PDF with the original image on page one and a professional English translation on page two. - Image Preprocessing: Converts HEIC files to PNG and applies EXIF-based rotation correction automatically. - Use Case: You have a Chinese retirement certificate photo for an Australian visa application; run the skill on the image to receive a translated PDF ready for submission. ## Quick Start Translate the attached document image RetirementCertificate.PNG into English and generate a bilingual PDF for my visa application.

Frequently Asked Questions about visa-doc-translate

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

FAQPage Schema
How do I translate a Chinese document image to English for a visa application?

Provide the image file path and the skill runs OCR to extract the text, translates it to professional English, and generates a bilingual PDF. The output PDF contains the original image on page one and the English translation on page two.

What OCR tools can extract text from document images?

The skill tries macOS Vision framework first on macOS, then falls back to EasyOCR for cross-platform use, and finally Tesseract OCR if installed. Each method is attempted automatically until text extraction succeeds.

Does the translation work with HEIC photos from iPhone?

Yes, HEIC files are converted to PNG using the macOS sips command before processing. EXIF orientation data is also checked and the image is rotated automatically so the document reads correctly.

What Python libraries are required for PDF generation?

Pillow and ReportLab are required and installed via pip. For macOS Vision OCR you also need pyobjc-framework-Vision and pyobjc-framework-Quartz; EasyOCR or pytesseract serve as alternatives.

Why does OCR fail on my document image?

OCR can fail due to incorrect image rotation, low resolution, or an unsupported OCR engine. The skill mitigates this by applying EXIF rotation, testing additional rotation angles, and trying multiple OCR methods in sequence.