The spaces between words in PDF files disappear when I copy-paste them. This while viewing the files with the Foxit PDF Reader...

Does anybody know why this is and if there is a fix?

link|improve this question

All PDF files, or some in particular? – bobince Oct 4 '09 at 1:04
All of them. Never had this problem with Adobe Reader – WebDevHobo Oct 4 '09 at 2:21
1  
At last, this bug was fixed in the 3.2 release (forums.foxitsoftware.com/showpost.php?p=40982&postcount=2). – Yaser Sulaiman Apr 4 '10 at 19:43
feedback

5 Answers

up vote 2 down vote accepted

Copy-pasting from PDF files isn't really 100% reliable. It might be the document formatting, the characters used, or simply the application doing something wrong. Maybe you could try a different PDF reader; since I'm not a big fan of Adobe Reader, I suggest PDF-XChange; it's free and pretty reliable.

At least this way you can see if Foxit Reader is the culprit.

link|improve this answer
feedback

The problem with PDF is that it doesn't really encode text. All it does is pretty much saying "Put those glyphs there, and those glyphs there". It's a format intended for print and high-fidelity document preview on screen but not so much to actually retain any semantics or contents.

So the only thing a PDF reader can see is what letters are approximately on a line. It can't see spaces as a space character, since there is no such thing in a PDF. All it has is smaller and larger gaps between letters. And thanks to kerning or justified text those aren't even consistent.

So what PDF readers usually do is to guess what gaps are spaces and what gaps are not. Depending on the algorithm used the results are fairly good or horrible.

That being said, that all PDFs exhibit the problem is a little weird. Foxit is able to do better here. You may try another PDF reader or an update, though.

link|improve this answer
feedback

"The issue that the space will lose when to copy text with Foxit Reader will be fixed on our new release. And it will be released in a month. Please keep an eye on it."

http://forums.foxitsoftware.com/showthread.php?p=40126#post40126

link|improve this answer
feedback

Reprinting the document using Acrobat Distiller worked for me too. Added the spaces back in to the pdf so I can copy and paste normally.

link|improve this answer
feedback

I really liked Joey's answer, this explains all the nightmare problems I have with losing characters of all sorts while copying from pdfs. I recently lost all the spaces in copy-pasting a quote from a pfd document. This soluton worked this time: print the document to a pdf distiller, using the new pdf document I could copy-paste without problems with lost spaces. Note: when the pdf distiller is working you have to close the original pdf document, otherwise you get an error with the pdf reader trying to handle two docs with identical filename.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.