๐ Welcome to KritiDocX
KritiDocX is a revolutionary, industrial-grade Document Compiler. It takes standard HTML, complex CSS, and pure Markdown, and completely rebuilds them into high-fidelity, native Microsoft Word (.docx) files.
Stop relying on tools that just "paste text" onto a blank canvas. KritiDocX understands Word's internal geometry and builds a perfect document, pixel by pixel, object by object.
โจ The Zero-Code Miracle: Built in 30 Days
This engine has an inspiring origin story. It was conceptually architected, debugged, and deployed by a creator from a non-coding background entirely through collaboration with Google AI Studio. Every Matrix engine, every XML Factory, and every rendering logic is proof of what human vision combined with advanced AI can build.
๐ Why Choose KritiDocX?
Most HTML-to-Word converters fail at three things: Complex Tables (colspan/rowspan), Advanced Math, and overlapping CSS margins. KritiDocX solves them all.
๐งฉ 1. The 2D Matrix Engine (Flawless Tables)
We don't just dump HTML tags into Word. Our engine plots your HTML table on a virtual 2D Matrix before rendering. This means nested rows, colspans, overlapping grid-borders, and auto-fitting column widths render flawlesslyโjust like they do in the browser.
๐ 2. The "Hybrid" Injection System
Keep your Design and Data separate.
You can use a beautifully styled HTML file as a Template (e.g., your Company Letterhead) and inject raw Markdown files containing data straight into a target container (like <main>). KritiDocX handles the inheritance seamlessly.
๐งฎ 3. Scientific-Grade OMML Math
KritiDocX is a researcher's best friend. Type pure LaTeX like $$ E = mc^2 $$. Instead of generating a blurry image, the engine uses XSLT to convert it into Native Word Editable Equations (Office Math Markup Language). It even features intelligent scalable fencing for large Matrices.
๐๏ธ 4. Native Word Forms (SDT)
Are you building dynamic forms? Converting an <input type="checkbox" checked> won't just output a static symbol. KritiDocX creates Interactive Structured Document Tags. Your checkboxes will be clickable, and your drop-downs will work inside MS Word.
๐จ 5. Print-Ready Typographics & Visuals
- Fonts & Scripts: Intelligent language processing handles English alongside Hindi (
Mangal), complex symbols, and Asian layouts without getting "Boxed-Tofu" ([]) characters. - Box Model & Effects: Absolute positioning, Text Shadows, Z-Index stacking, Glowing borders, and CSS rotations translated strictly to DrawingML limits.
โก A Taste of the API
It is powered by a powerful Facade pattern. The entire complexity of the Engine is hidden behind one single, elegant function call.
from kritidocx import convert_document
# Generating a masterpiece in 1 step:
success = convert_document(
input_file="templates/report_layout.html",
data_source="data/q1_metrics.md",
output_file="out/Corporate_Q1_Report.docx"
)
if success:
print("Document successfully generated!")
๐งญ Where to go next?
Ready to start building beautiful reports? Jump into the guides:
- โ๏ธ Installation & Getting Started: Setup your environment in 2 minutes.
- ๐งฌ The Hybrid Mode: Learn how to inject Markdown into HTML templates.
- ๐ Mastering Tables: Understand the power of our Grid engine.
- ๐งช Developer Lab / API: Explore the settings and deep debugging modes.
Support the Creator
Developing KritiDocX required rigorous testing and complex architectural planning. If you find this tool useful, please consider supporting the project on Ko-fi. Every bit of support counts!
Created with โค๏ธ by the KritiDocX Team & Google AI Studio.