The Solution:
I architected a decoupled monorepo system. The frontend was built with React for a seamless, drag-and-drop user experience. For the backend, I engineered a custom Node.js/Express.js server utilizing Tesseract.js. To ensure stability, I developed a custom text-chunking algorithm that slices the PDF into manageable data streams, processes them safely, and stitches the final layout together into a downloadable .docx file.