Tip: For best OCR, upload the full passport data page (including MRZ). Fallback OCR will still try without MRZ.
Passport Scanner · الماسح الضوئي للجواز
Upload → Extract → Auto-fill below (Smart OCR)
Show OCR Text (debug)
Basic Information · المعلومات الأساسية
Primary candidate details
Personal Information · المعلومات الشخصية
Contact & body metrics
Media Uploads · الوسائط
Auto-enhance & preview on upload (4:5 · 600×750)
Profile Image (JPEG/PNG) / صورة شخصية
Full-Body Image (JPEG/PNG) / صورة كاملة
Optional AI background removal will run automatically if you set window.REMOVEBG_KEY at the top of this file.
Draft saves to your browser only.
"""
# Write the HTML file
html_path.write_text(html, encoding="utf-8")
# Create ZIP with HTML and README
readme = """Tadbeer Public Smart OCR + Auto-Enhance (EN + AR)
--------------------------------------------------
Usage:
1) Unzip the file.
2) Open 'Tadbeer_Public_Smart_OCR_Enhance.html' in any browser.
3) Optional AI Cutout: edit the top line to add your remove.bg API key:
Notes:
- Everything runs on the client side.
- Internet is required for Tesseract.js and html2pdf.js libraries.
"""
with zipfile.ZipFile(zip_path, "w", compression=zipfile.ZIP_DEFLATED) as zf:
zf.writestr("README.txt", readme)
zf.write(html_path, arcname=html_path.name)
print(html_path.as_uri())
print(zip_path.as_uri())
Smart OCR + Auto-Enhance + PDF · Glassmorphic Royal Blue + Soft Gold -->
Tip: For best OCR, upload the full passport data page (including MRZ lines). Fallback OCR will still try without MRZ.
Passport Scanner · الماسح الضوئي للجواز
Upload → Extract → Auto-fill below (Smart OCR)
Show OCR Text (debug)
Basic Information · المعلومات الأساسية
Primary candidate details
Personal Information · المعلومات الشخصية
Contact & body metrics
Skills & Experience · المهارات والخبرة
Select multiple where applicable
Media Uploads — Staff / Company Owner · الوسائط — الطاقم / مالك الشركة
Auto-enhance on upload · Optional AI cutout
Profile Image (Editor)
Full-Body Image (Editor)
Draft saves to your browser only. Hook these IDs to your WP form to save server-side.