GNOME Bugzilla – Bug 171395
PDF Text output broken
Last modified: 2005-03-24 16:04:29 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:
2.10.1 is known to be broken. Please test with 2.10.2
2.10.2 output could not be opened by Acrobat Reader.
What version of acrobat reader ? Please attach a copy of some problematic pdf.
Created attachment 39174 [details] Sample gnumeric-generated pdf file This causes an error on load from acroread 5.0
Created attachment 39175 [details] Good PDF Output from libgnomeprint-2.10.1 with suggested change
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.
Damn I see the problem. A last minute tweak to print_double broke it the result is that the font width table is corrupt.
Ok, fixed in CVS. I'll do some testing (gee what an idea) and release.