After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344892 - Copy text from a PDF document and paste it, display strange characters
Copy text from a PDF document and paste it, display strange characters
Status: RESOLVED OBSOLETE
Product: gnome-print
Classification: Deprecated
Component: PDF backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2006-06-14 17:00 UTC by Sebastien Bacher
Modified: 2009-08-11 20:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Sebastien Bacher 2006-06-14 17:00:29 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."
Comment 1 Nickolay V. Shmyrev 2006-06-17 07:35:55 UTC
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.
Comment 2 Nickolay V. Shmyrev 2006-08-14 00:42:12 UTC
Really it should be gedit problem, let me reassign this bug. Feel free to return it back.
Comment 3 Steve Frécinaux 2006-08-14 11:36:21 UTC
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.
Comment 4 jelmorini 2006-11-15 22:17:46 UTC
Only to confirm that with Ubuntu Edgy this bug is always present.
Comment 5 Paolo Borelli 2007-06-26 22:24:30 UTC
really a gnomeprint issue... I dobut it will ever be fixed. Hopefully soon we'll switch to GtkPrint
Comment 6 André Klapper 2009-08-11 20:22:31 UTC
Gedit has switched to GtkPrint.
libgnomeprint will not receive any fixes. Closing as OBSOLETE.