I am trying to copying the text from pdf file. Each time I tried to copy text from the pdf file it does not give spacing between text. However when I copy text from the internet its work fine. For clarification here is the link below which gives much general idea:
The nick Bob_Niland__Error_7103_ in the discussion at the link
proposes the following reasonable reason:
The problem is that the PDF file may or may not have the spaces encoded as space characters, particularly at ends, but also between words and perhaps even characters. The rendering engine (Ps or PDF driver) may have chosen to break “word1 word2” into two strings with two starting coordinates and no U + 0020 space character (or alternative space characters) at all.
As for internet copying, the web pages are written in html and loaded in the browser as a text file (see it from the menu, source document item). From this text the browser derives the dom object structure then used for visualization
It is a completely different case from copying from a pdf. In a web page space are coded as space breaking or not breaking ( )
There may also be an issue with the PDF viewer. Okular in Linux with KDE desktop makes a difference with the selection tools. There are 3 of them: one for “just selection” (usaully resulting in an image), one for text and one for table. With the proper tool I haven’t yet encountered this problem.