PDF to Word

Turn a PDF into a Word document (.docx) you can edit. Your file stays on your device.

How it works

pdf.js reads the letters of each page with their size and style, and everything the page draws: pictures, lines, plots. From that DocTools works out the page:

  • Columns: a band of white space running down the page between two blocks of text lines that start at the same place. The left column is read top to bottom, then the next; a title, an abstract or a wide figure across the columns stays where it is. A page without such a clear band is read as one column.
  • Tables: first those with drawn lines, cell by cell (two cells become one only where the line between them is missing); then tables with only horizontal rules, as scientific papers draw them; last, cautiously, text lined up in at least three rows with the same gaps between its parts. Formulas, lists and numbered program lines are left as text.
  • Paragraphs and headings: lines are joined into paragraphs, bigger text becomes headings (the biggest size is heading 1), bold and italic are kept.
  • Pictures, and plots drawn with lines, are cut out of the page as pdf.js draws them and placed where they stand.

docx then writes the Word file. A scanned PDF holds only pictures of its pages: the Word file then has those pictures, without text (no text recognition).

Made with pdf.js 6.5 by Mozilla (Apache 2.0 licence, as served) and docx 9.15 by Dolan Miu (MIT, as served).