/* 2026-12-04 性能:提前宣告关键脚本。app.js 原先只在 body 末尾出现, 浏览器要解析完整份 HTML 才会开始下载(首屏 HTML 约 35KB)。 preload 让下载与 HTML 解析并行,而 defer 语义不变(DOM 就绪后按序执行)。 */

Why a PDF Reflows When It Becomes a Word File

2026-11-167 min readPDF Tools4 tools covered

Turn a PDF into Word for the first time and something looks off - the text is all there, but paragraphs are fused, tables have collapsed and images are gone. That is not laziness; the two formats answer different questions.

Key takeaways
  • A PDF records where each glyph is drawn, while Word records which paragraph it belongs to with which style, so conversion infers structure from coordinates and always loses something
  • The line-spacing baseline uses the 25th percentile rather than the average, because paragraph gaps inflate the average and then real paragraph gaps look unchanged
  • Tables, images, headers and footers carry no position in plain text extraction, so the output is a text stream only, and two-column pages are read top to bottom
  • One action tells you whether a file is a scan: try to select a sentence in a reader, and if nothing highlights there is no text layer
  • Question marks in Chinese text mean the source PDF lacks a ToUnicode map, and every extraction tool can only recover the codes themselves

#This is inference, not conversion

The design goal of PDF is to look identical on every device. To achieve that it slices text into glyphs and records where each one is drawn, in which font, at what size - it has no concept of a paragraph.

Word works the other way round: it records that this line is a heading and that block is body text, and a layout engine decides where things land on the page.

So converting PDF to Word means guessing the original structure from a pile of coordinates, and how well that guess lands depends on how disciplined the source layout was:

  • Easy: reports, contracts and books, where text flows in one column with clear leading.
  • Hard: documents that fake paragraphs with table cells, or were assembled as graphic design - the structure exists only visually.

#What survives and what does not

Setting expectations first is cheaper than being disappointed afterwards:

ContentResult
Text and paragraph orderKept
Original page breaksKept (a page break is inserted between pages)
Size difference between heading and bodyKept, larger lines become bold
TablesBecome text lines, merged cells are lost
ImagesDropped (text extraction only)
Headers, footers, comments, form fields, bookmarksDropped
Two-column or multi-column layoutRead top to bottom by coordinate, so columns may interleave
Warning

If the layout itself is the point - a brochure, a photo book, a report built from dense tables - restyling it by hand in Word often takes longer than finding the original document. Check for a source doc or design file before converting.

Tip

If the file is a scan or asks for a password, the path is completely different - see scanned, screenshot or encrypted PDFs first.

#How paragraph breaks are inferred

The extracted text arrives as lines, so paragraph boundaries have to be inferred from geometry:

  1. Glyphs that share a baseline are clustered into a single line;
  2. Lines are sorted by vertical position and adjacent baselines are compared;
  3. A gap close to the baseline leading continues the paragraph, a clearly larger gap starts a new one;
  4. An abrupt font size change also breaks the paragraph, which is the switch between heading, caption and body.

One detail is worth calling out: the baseline leading must not be the average. A typical sample is several 16pt in-paragraph gaps plus two 40pt paragraph gaps, and the average is dragged up by those paragraph gaps - so 40pt no longer counts as larger and the whole page fuses into one paragraph.

Taking the 25th percentile instead lands on the real in-paragraph leading, and paragraph gaps immediately exceed the threshold. The difference is most visible on short documents where only four or five gaps exist.

#Choosing a paragraph mode

The tool offers two modes, and the choice comes down to whether alignment carries meaning:

  • Smart: merges and breaks according to the rules above. Good for reports, contracts, papers and books.
  • Keep every line: every line break in the PDF becomes its own paragraph. Good for tables, code listings, price lists and rosters - once those are fused into one paragraph, the column relationships are unreadable.
Tip

If unsure, convert once with Smart and read the first screen. When three or four unrelated blocks sit in the same paragraph, switch to Keep every line and convert again; it takes seconds.

#Scans have no text to extract

A scanned page, a phone photo of a document, or a PDF exported from pure images contains only an image layer. An image is not text, so an extraction tool can only return nothing. Turning several scanned images into one file is a job for Image to PDF, but the result is still images - no text layer appears.

No tool is needed to test it: open the file in a reader and try to select a sentence with the mouse. If nothing highlights, it is a scan. If it highlights and copies, there is a text layer.

Files like that need OCR first, which recognises glyphs in the image and turns them into text before conversion is even a question. OCR has its own error rate, driven by camera angle, lighting and resolution, so proofread important documents afterwards.

#Chinese characters that come out as question marks

Chinese text in a PDF is usually not stored as characters but as font-internal codes (CID). Restoring the characters depends on the ToUnicode map embedded in the font, which records that code 0x1A2B means one specific character.

If the software that produced the PDF did not embed that map - some virtual printers and older office suites are known for this - every extraction tool can only recover the codes, and the screen shows question marks, boxes or mojibake.

Switching tools does not help here. There are only two routes: re-export the PDF from the original document, or run OCR. To confirm it is the source file, copy some text from the same PDF in another reader - if that is garbage too, the file is the problem.

#Three things to do with the docx

Converting with PDF to Word only rescues the content; a document you can actually work with takes a little tidying. Three steps, in order:

  1. Verify nothing is missing: paste the converted text into the text counter and compare character and line counts with the original. A big difference points at missing pages or image-only sections.
  2. Apply styles instead of editing paragraph by paragraph: larger lines are already bold, so select them in bulk and turn them into Heading 1 and Heading 2, then let Word styles handle font and leading. Hand-formatting every paragraph is the slowest and most error-prone route.
  3. Split or merge before converting: when only a few pages matter, extract them with Split PDF and convert the subset - faster and more accurate than deleting afterwards. Going the other way, combine material with Merge PDF first and convert the whole, so paragraph order has no seams.
Note

Everything runs in the browser: parsing, extraction and docx generation never upload the file, and it works offline. That is also the right way to treat these documents - files that need converting are usually contracts, CVs, invoices and reports, and uploading them to a third-party cloud hands over the original.

#Frequently asked questions

#Why do tables fall apart after converting to Word?

A table in a PDF is usually not a table structure but a set of positioned text runs plus drawn lines. Text extraction cannot see the lines or tell which characters belong to the same cell, so it can only emit lines of text. To rebuild it, use Convert Text to Table inside Word with a separator, or fetch the table from the original document.

#The images are gone. Can they be kept?

This version extracts the text layer only and does not carry images across. If you need both, export the images separately and place them back in Word, or treat each page as an image and run OCR so the recognised result carries the position of both.

#How many pages can it handle at once?

There is no server-side page limit; the ceiling is your own memory. A few dozen pages is comfortable, a few hundred consumes a lot of memory and may stall a low-spec device, so split large jobs into batches.

#Does conversion change the original content?

No. Extraction only reads, the source file is untouched, and the docx is a new file. Characters are written as they are; only layout information such as paragraphs and styles changes, while the text and its order stay the same.

Tools used in this guide

Related guides