Skip to main content
Inspiring
October 18, 2011
Answered

Weird characters pasted after copying text from PDF file

  • October 18, 2011
  • 9 replies
  • 291005 views

I get weird characters pasted after copying text from PDF file. For instance, a plain English sentence or word becomes something like:

VGHOGHH[WRVDSDUWLUGFLyQESUDFWRVIHQyOLFWRULYDHVXDRORGXF2EWHQ

How to fix it?

Thanks.

Correct answer Peter36673529wq8o

Easiest way I found to do this was to use the export tool in Acrobat. Export the pdf to a Word document. Copying worked!!!

9 replies

Peter36673529wq8oCorrect answer
Participant
October 29, 2024

Easiest way I found to do this was to use the export tool in Acrobat. Export the pdf to a Word document. Copying worked!!!

S_S
Community Manager
Community Manager
February 18, 2025

Hi @Peter36673529wq8o,

 

Hope you are doing well. 

 

Thanks for writing about what worked for you.

Marking this as a correct answer for future users to use as a reference. 


-Souvik

Participating Frequently
July 22, 2023

More than 11 years later, this issue, as a simple direct fix, is apparently STILL not resolved. In Acrobat, the font is Open Sans. Editing the PDF by changing to any other font causes the weird characters.

Participant
August 10, 2023

Hi,

 

Just found a solution : loaded my corrupted PDF file on my smartphone and opened it with the App "Microsoft 365 (Office)".

I taped on the blue icon with the scissors, then taped on the "Lens" icon (a big point with a small point on the top-left corner and corners on the 3 other corners).

You can then select your text and copy it in a Word document (of other).

The only limitation is that you can copy only what you see on your screen, if you have multiple pages, you have to do it multiple times, but it works.

Maybe that works with Microsoft 365 on a laptop too, but I didn't try.

 

Hope that can help some people.

Participant
June 19, 2022

my issue was a app (highlight) , such software mess up with the file. The fast way was to delete the app and use the ios mac instead. 
I could fix the files that this app f@ck up

Participant
July 31, 2022

Just wanted to state that the problem I have is not solved by the current instructions either. The problem: The vector pdf, created with the application Acrobat Distiller 17.0, it says under File Properties, looks fine, including the fonts. The problem is only with copying: some fonts get missing: E.g.: "The idea" (as displayed on the pdf) becomes "e Idea" when pasted. As in another comment above: "Copy with Formatting" solves the issue. (Exporting to Word or Html, however, does not. Embedding fonts in Preflight, or "Fix potential font problems," "Embed missing fonts," or "Fix font encoding (CIDSet) --using Preflight fix ups again -- do not help either. "List potential font problems, by contrast, indeed lists "potential problems". As the name goes, it doesn't fix anything though). 

I would suppose there should be a way to fix the problem in Acrobat itself. Currently, I "copy with formatting" the whole text to paste it to another program, to finally send it to an e-reader. Not too much of a problem but Acrobat is probably supposed to fix the issue itself. 

 

Other macOS applications (Preview or Skim) display the pdf well and "copy" the  text correctly as well. 

 

 

Participant
June 12, 2022

Hello,

I have a similar problem with an e-book (the attached pdf is an exctract from it). For instance, the character "=" turns into "1/4" when copied/pasted, but there are lots of a other characters: the German umlauts, ó turning into o´, the glyphs fi and fl turning into only f, and so on. Non of the solutions proposed here did work for me. The book has over 2000 pages and I often copy text from it and search text so it would be great if I could fix this. Any suggestions?

November 4, 2019

I know this is from a long time ago, but it might help somone else. 

I've just had the same problem, Using Acrobat Pro, I exported the PDF to a Word document, I'm now able to copy the text 🙂

Participant
February 17, 2020

It works. You saved my time. Many thanks!

usermacAuthor
Inspiring
May 2, 2020

Thanks for the information. I have tried, yet it did not work for me. I guess that it depends on the PDF. Is there a solution for such a problem? Thanks.

Luke Jennings
Inspiring
November 15, 2011

I know this was from 5 days ago, but this might be helpful.

http://forums.adobe.com/message/3938668#3938668

Participant
November 9, 2011

I have a similar issue but other people can copy and paste from the files but I can't. Is this the same issue?

I have a problem which I am not sure where it sits, so I am posting here and a couple of Apple support forums as I think it might be deeper than just Reader/Pro as it also means I can't copy and paste text from Sente (reference library software).

I do a fair amount of research and download plenty of research papers.  One such paper (Diving and Hyperbaric Medicine - DHM) from the South Pacific Underwater Medicine Society (SPUM) is causing me a major problem with copying and pasting text from it; no-one else who I have spoken to has the same problem.

Quote:

                                 
The further development of medical support for professional diving
David Elliott
                                                                                                               
                                                                                                                     
                                                                                                                     
                                                                                                                    
                                                                                                                       
and when I copy and paste the same from Preview, I get

Quote:

The further development of medical support for professional diving David Elliott

I have had a look and content copy and page extraction are both allowed so security isn't an issue :(.

Acrobat Distiller 8.1.0 (Windows) was used to create the file and is a PDF Version 1.4 (Adobe 5.x)

I am on Lion 10.7.2 if that makes a difference. I have had a look at the fonts table and they are either 'Custom' (Type 1) or 'Identity-H' (Type 1 CID).

There are around 40 of these files which are produced elsewhere I can't ask for them to be reproduced but others don't have the same issues as me. Any ideas?

Thanks very much for any help you can give me

Regards

Gareth

Legend
October 18, 2011

It's a  "problem" that often happens accidentally, but is also used intentionally to prevent copying and indexing of PDF files, especially when posted online.

Fonts in PDF files are stored with two tables, one contains the glyphs (the character shapes) and one contains a "toUnicode" map, which says what character each glyph represents. Acrobat uses the first table to draw the page, so it doesn't actually know what the text "says", only which patterns of shapes to draw. When you copy or search the file, the second lookup table is used to work out what the text says (i.e. in the word APPLE the first table says the second shape looks like "P" even if the shapes aren't stored in alphabetical order, the toUnicode table says the second letter is 0x0050, a capital P).

If this toUnicode map is corrupted or missing, the PDF will render to screen (and print) just fine, but Acrobat has no idea what the shapes mean. The result when you screenread, export, search or copy/paste is a default set of mappings - so it will be a 1:1 relationship (every "A" will become the same character) - but the pairing is not predictable, so it cannot automatically be repaired. You can do it using plugins but would have to manually work out what each pair should be, and recreate the map table a letter at a time.

When this happens intentionally, it means the document author has removed or re-written the toUnicode map, using a plugin. When it happens accidentially it usually means the software exporting the PDF didn't pass the correct font information to the PDF print driver (in the PostScript stream).

usermacAuthor
Inspiring
October 18, 2011

Thanks. Yet, in this case I can see the words OK and search for them OK. The only problem is when copy/pasting.

Larry G. Schneider
Community Expert
Community Expert
October 18, 2011

The reason I asked is that every embedded subset is listed as encoding: Custom which sounds like what Dave said above.

Larry G. Schneider
Community Expert
Community Expert
October 18, 2011

If you go to File>Properties and go to the Fonts tab, what is the Identity listed for the fonts?