How this works
This extracts the actual text from each page — grouping words into lines by their vertical position, then lines into paragraphs — and writes that text into a new, editable .docx file. It's a text-extraction tool, not a layout-reconstruction one: images, tables, columns and precise formatting from the original PDF aren't recreated.