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 171395 - PDF Text output broken
PDF Text output broken
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: PDF backend
2.10.x
Other All
: Immediate critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-03-23 19:01 UTC by fmoraes
Modified: 2005-03-24 16:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample gnumeric-generated pdf file (8.59 KB, application/pdf)
2005-03-24 03:26 UTC, Morten Welinder
Details
Good PDF Output from libgnomeprint-2.10.1 with suggested change (22.03 KB, application/octet-stream)
2005-03-24 04:32 UTC, fmoraes
Details
Bad PDF output from libgnomeprint-2.10.2 (22.21 KB, application/octet-stream)
2005-03-24 04:33 UTC, fmoraes
Details

Description fmoraes 2005-03-23 19:01:13 UTC
Please describe the problem:
The PDF Text output is broken because of the recent changes to :
gnome_print_pdf_glyphlist (GnomePrintContext *pc, const gdouble *ctm,
GnomeGlyphList *gl)

The following code change is required to avoid text coordinates from being wrong:

		gnome_print_pdf_page_print_double (pdf, "%f", point.x);
		gnome_print_pdf_page_write (pdf, " ");
		gnome_print_pdf_page_print_double (pdf, "%f", point.y);

instead of:

		gnome_print_pdf_page_print_double (pdf, "%f", dx + point.x);
		gnome_print_pdf_page_write (pdf, " ");
		gnome_print_pdf_page_print_double (pdf, "%f", dx + point.y);


Steps to reproduce:
1. Use GNOME Planner and print the resource view to PDF (libgnomeprint-2.10.1)
2. Try to open the generated PDF and notice the text is not displayed



Actual results:
PDF file is created but text text coordinates are incorrect (doubled).

Expected results:
Text would be seen.

Does this happen every time?
Yes.

Other information:
Comment 1 Jody Goldberg 2005-03-23 19:05:29 UTC
2.10.1 is known to be broken.
Please test with 2.10.2
Comment 2 fmoraes 2005-03-24 02:37:21 UTC
2.10.2 output could not be opened by Acrobat Reader.
Comment 3 Jody Goldberg 2005-03-24 03:01:26 UTC
What version of acrobat reader ?
Please attach a copy of some problematic pdf.
Comment 4 Morten Welinder 2005-03-24 03:26:21 UTC
Created attachment 39174 [details]
Sample gnumeric-generated pdf file

This causes an error on load from acroread 5.0
Comment 5 fmoraes 2005-03-24 04:32:09 UTC
Created attachment 39175 [details]
Good PDF Output from libgnomeprint-2.10.1 with suggested change
Comment 6 fmoraes 2005-03-24 04:33:31 UTC
Created attachment 39176 [details]
Bad PDF output from libgnomeprint-2.10.2

I've attached the PDF's produced by both 2.10.1 with my patch from the defect
and the output from 2.10.2 that's refused by Acrobat Reader.
Comment 7 Jody Goldberg 2005-03-24 06:59:29 UTC
Damn
I see the problem.  A last minute tweak to print_double broke it
the result is that the font width table is corrupt.
Comment 8 Jody Goldberg 2005-03-24 16:04:29 UTC
Ok, fixed in CVS.  I'll do some testing (gee what an idea) and release.