Why does the text look garbled after converting a PDF?
You convert a PDF to Word, Excel or plain text and the result is full of odd symbols, missing or extra spaces, or sentences in the wrong order. The conversion tool is usually not to blame: a PDF stores where to draw each letter, not what the letters mean or how they form sentences, and some PDFs store that information badly or not at all. The symptom tells you which cause you have.
A quick test before anything else
Open the PDF in any reader, select a sentence, copy it and paste it into a plain text editor. This shows you the text exactly as it is stored in the file, without any converter involved.
- If the pasted text is also garbled, the PDF's own text layer is the problem (causes 1 and 2). Any converter will give the same result.
- If the pasted text is fine but the converted document is not, the problem is layout or fonts (causes 3 to 5).
Cause 1: the fonts do not say which letters they contain
Inside a PDF, each letter is a code that points to a shape in an embedded font. To turn codes back into letters, the PDF should include a map from codes to characters. Some PDFs, often older ones or ones made by unusual software, leave the map out or fill it wrongly, so copying gives symbols such as "Ģ" or a run of unrelated letters, even though the page looks perfect.
Fix: the text has to be read from the page's appearance instead, with text recognition. PDF to Word's Recognise text option only reads pages that have no text at all, so it will not replace a broken text layer. The most reliable fix is to get the document again from its source, for example by exporting it again from the original app. If that is not possible, Compress PDF in Maximum mode turns every page into a picture, removing the broken text layer, and OCR PDF can then read those pictures. The pictures are at a lower resolution than a good scan, so check the recognised text carefully.
Cause 2: the text came from poor text recognition
Scanners and scanning apps often add their own invisible text to scanned pages. If that recognition was poor, the text in the file is wrong even though the page looks right, and every conversion inherits the mistakes. Look for letters swapped for similar shapes, such as rn for m, 0 for O or 1 for l. Scan the document again with a better setting, at 300 dpi and with a clean, straight page, and run recognition again.
Cause 3: spaces are guessed
Many PDFs do not store spaces between words at all; they simply place each word a little to the right of the last one. Converters work out where spaces belong from the gaps. Justified text, letter spacing and words set in pieces can fool them, giving "Inv oice" or "totalamount". This is usually limited to some lines; fix those by hand or by search and replace.
Cause 4: reading order
A PDF lists its text in the order it was written into the file, which is not always the order you read. Two-column layouts, side notes, text boxes and tables can come out interleaved or out of sequence. PDF to Word here rebuilds columns and tables from the positions of the words, which handles most layouts; PDF to Text keeps the stored order, so multi-column pages may need a check. For tables, PDF to Excel finds the columns from the gaps between aligned text.
Cause 5: fonts that are not on your computer
A converted Word file names the fonts the PDF used. If they are not installed on your computer, Word shows a substitute, and the text can look different, wrap differently or run onto extra pages. Nothing is wrong with the words; install the font or change it in Word.
Right-to-left and complex scripts
Arabic, Hebrew and scripts such as Devanagari are often stored in PDFs in the order they appear on the page, or with letters in their joined display forms, rather than in reading order. Converted text can then come out reversed or with letters in the wrong form. If copying a line from the PDF already gives this result, the text layer is stored that way, and text recognition from the page's appearance usually gives a better result than conversion.
Line-end hyphens and ligatures
Words split across lines keep their hyphen ("infor- mation"), and some fonts draw letter pairs such as fi and fl as one shape, which can come out as a single symbol or go missing. Search for these after converting.
The guides to converting a PDF to Word and extracting PDF tables to Excel cover what to check after a conversion.