In short
- The PDF stores the shapes of the letters, but the table that says which letter each shape is meant to be is broken or missing, so a copy returns the wrong characters.
- Try another viewer first. If the paste is still wrong, turn the page into a picture and read it again with text recognition, which ignores the broken table.
- Get clean text out of a PDF, free in your browser
When you copy text from a PDF, the program does not read the letters you see. It reads a hidden layer that says, for every shape on the page, which character it stands for. Most PDFs have that layer in good order. A few do not: the file was made by an old program, a font was packed in a special way, or the layer was left out on purpose. The page then looks right on screen, and the paste comes out as boxes, question marks, odd symbols or the wrong letters.
You cannot repair that hidden layer from the outside, so the way out is to stop depending on it. You either copy from a program that guesses better, or you let a program read the page the way your eyes do. This guide explains the causes, shows which fixes are worth trying first, and walks through the reading method on EditFlip, which runs in your browser.
On EditFlip, step by step
- Step 1
Check that it really is a broken text layer
Open the PDF in your browser, select one line and paste it into a plain notes page. If the line pastes as symbols while the page looks fine, the hidden layer is the problem. If nothing can be selected at all, the page is a scan, and the OCR tile in Options will make the text for you directly.
- Step 2
Turn the pages into pictures
On editflip.com press Choose files and pick the PDF. In Options press Convert and choose JPG. Every page becomes a picture, and several pages arrive together as one ZIP. Open the ZIP on your device and keep the pages you need. This works best for a few pages at a time.
- Step 3
Read the picture with OCR
Press Choose files again and pick one of the pictures. In Options press OCR, then choose English or Romanian as the language of the page. The page comes back as a searchable PDF whose text was read from what you see, not from the broken layer.
- Step 4
Copy from the new PDF and check it
Open the result with Preview, select a line and paste it. Compare numbers, names and dates with the page, since text recognition can still slip on small print. Press Download to keep the new file, and repeat for the other pages.
What is going on inside the file
A PDF is a description of a page, not a document made of words. It says: put this shape at this spot. Fonts are usually packed into the file, and often only the shapes that are used are packed. Next to the shapes there should be a small table that connects each shape to the real character, so that a search or a copy can work. That table is the part that goes wrong.
If the table is missing, the program that copies the text has to guess. Some programs guess from the number of the shape, and that number can be anything the maker of the file chose. So a capital A might be stored as shape 37, and a copy hands you whatever character 37 happens to be in a normal alphabet. The result looks like a cipher, and in a way it is one: the same letters always turn into the same wrong characters.
That is why gibberish is often regular. If every e becomes a 5, or the whole text is shifted by a few letters, the layer is intact but scrambled. If you get boxes or question marks, the program found no character at all for those shapes.
Common causes you can recognise
Files made by old accounting, ticketing or reporting programs are a frequent source, because they packed fonts in their own way. Text that was exported from a design program with the fonts turned into outlines is another: the letters are then drawings with no character behind them at all.
Ligatures are a smaller version of the same trouble. Letter pairs such as fi and fl are sometimes stored as one shape, and a copy can return a strange symbol in their place. You see words like “o?ce” where “office” should be. The rest of the text is fine, so a quick fix by hand or a find and replace is enough.
Some languages suffer more. Text with accents, Cyrillic, Greek or scripts written from right to left can come out in the wrong order or with the wrong marks, because the file stores the shapes in the order they were drawn, not in the order you read them. Romanian diacritics are a common case: a word with ș or ț may paste with a different symbol in that spot.
Finally, a file can be made unreadable for copying on purpose. Whoever made it may not want the text taken out, and a deliberately scrambled layer is one way to do it. Respect that when it applies to someone else's document, and use the method below only on files you have the right to use.
Quick things to try before anything else
Open the same PDF in a different program and copy again. A browser, the reader that came with your computer, and the preview on a phone all handle broken tables a little differently. One of them may guess right. It costs a minute and often works when the problem is only a ligature or a few accents.
Try copying a short piece instead of the whole page. If a single line pastes correctly, the layer is fine in that area and the trouble is in one font or one table of the file. You can then copy the good parts and deal with the bad parts separately.
Check whether a text version exists. A company that sends invoices or statements as PDFs often offers the same document as a spreadsheet, a plain file or a web page. Asking the sender for the original file is the cleanest answer, because it skips every step below. If you cannot ask, move to the reading method.
Reading the page instead of copying it
Text recognition, called OCR, works from what the page looks like. It does not care what the hidden layer says. It looks at the shapes, decides which letters they are, and writes a fresh text layer. That makes it the reliable fix for a broken layer, as long as the page is clear.
On EditFlip the OCR tile is offered for a scan that has no text of its own, and a PDF with a broken layer does have text of its own, so the tile will not show up for it directly. That is why the steps above go through a picture first. Turning the page into a JPG throws away the broken layer completely, and the picture can then be read like any photo of a page. The result is a searchable PDF in which you can select and copy.
OCR on EditFlip reads English and Romanian. A page in another language, or in another script, will not be read well, so for those the better route is to ask for the original file. All of this runs on your device, so a private document is not sent anywhere.
What quality to expect from OCR
A clean page of printed text is read very well. Small print, thin grey type, a coloured background or a page that was already scanned crooked all cost accuracy. The two mistakes people meet most are the letter O and the number 0, and the letter l and the number 1. In an invoice or a bank statement, always compare the numbers with the page.
Tables are the weakest point. The text of every cell is read, but the neat rows and columns are not rebuilt as a table, so copying a table out of an OCR result gives you words and numbers in reading order. For a table, converting the page to Excel is worth a try instead, and the numbers should still be checked against the page.
You get the best result by keeping the page sharp. Converting at the normal size is usually enough. If a word keeps coming out wrong, zoom in on the original, type that word yourself, and leave the rest.
Doing it on a phone and what Word will not fix
The method is the same on an iPhone or an Android phone, in the browser. Choose the PDF from Files or from your downloads, convert it to JPG, then choose the picture and run OCR. A long PDF takes time on a phone, because all the work is done on the device, so do a page or two at a time.
It is tempting to convert the PDF to Word and hope the text comes out right. On EditFlip, Convert to Word takes the text from the same hidden layer you were copying from. If that layer is scrambled, the Word file will carry the same wrong characters, so it will not repair this problem. Convert to Word is for a good layer that you simply want to edit.
When the paste is fine but each line ends in a hard return, that is a different problem, and it has its own fix. Gibberish means the characters themselves are wrong.
Turn the pages into pictures, read them with OCR in English or Romanian, and copy from a PDF whose text matches what you see. It is free, works on a phone or a computer, needs no account, and the file stays on your device.
Get clean text out of a PDF on EditFlip →Questions
Why does text copied from a PDF turn into symbols?
The PDF has no reliable table that links each letter shape to its real character, so the program that copies the text returns the wrong ones. The page still looks fine because it only draws the shapes.
Can I fix gibberish in the PDF itself?
Not from the outside. The best answers are to copy from another viewer, to ask the sender for the original file, or to read the page with OCR and get a fresh text layer.
Does converting the PDF to Word fix it?
No. Convert to Word uses the same hidden text, so wrong characters come along into the Word file. Reading the page with OCR is the way that skips the broken layer.
Why do only some letters come out wrong?
Usually ligatures such as fi and fl, or accented letters, which a font stores in a special way. The rest of the text is fine, and a find and replace can tidy those few characters.
Is OCR accurate enough to trust?
On clear printed text it is very good. Always compare numbers, names and dates with the page, since small print and thin grey letters can be misread.
Which languages does OCR on EditFlip read?
English and Romanian. Pages in other languages or scripts will not be read well, so ask for the original file in those cases.
Is my PDF uploaded when I read it with OCR?
No. The pages are turned into pictures and read inside your browser, so the file stays on your device.
Why can I not select any text at all?
The PDF is probably a scan, which is only a picture of a page. In that case use the OCR tile in Options directly, with no need to turn it into a picture first.
