GNOME Bugzilla – Bug 344892
Copy text from a PDF document and paste it, display strange characters
Last modified: 2009-08-11 20:22:31 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/evince/+bug/49631 "Here how to reproduce it: 1) I have created a little text file with gedit editor 2) Then I have printed it with the "Create a PDF document" option in gedit. 3) Now open the PDF document created with Evince 4) Select the text and copy 5) Return to gedit and paste the text copied out from the PDF 6) All the text is composed of strange characters. The original gedit text is lost. For Instance I wrote in gedit the following text: "Text to testing PDF production" and I have created a PDF document. I open the PDF in Evince and I select and copy the text. Then I paste the text into gedit again and following strange character are displayed: "8I\X XS XIWXMRK 4(* TVSHYGXMSR" I attach to this post the two files (txt and pdf), so you can test if the problem is present on your PC too. http://librarian.launchpad.net/3026085/PDF_test.txt use the gedit option "Create a PDF Document" to print the text in PDF form. http://librarian.launchpad.net/3026086/output.pdf This is the pdf I have produced from gedit editor with the "Create a PDF Document" option."
Just pdftotext from poppler-utils will give you the same result, it's either the poppler bug but most probably it's just gedit bug since xpdf also converts this pdf to bad string.
Really it should be gedit problem, let me reassign this bug. Feel free to return it back.
gedit does not deal with PDF in any way. It's likely to be a gtksourceview bug or a gnomeprint one. Reassigning to gtksourceview in a first time.
Only to confirm that with Ubuntu Edgy this bug is always present.
really a gnomeprint issue... I dobut it will ever be fixed. Hopefully soon we'll switch to GtkPrint
Gedit has switched to GtkPrint. libgnomeprint will not receive any fixes. Closing as OBSOLETE.