GNOME Bugzilla – Bug 170106
Use of %g in gnome-print-pdf.c
Last modified: 2005-03-15 19:13:31 UTC
gnome-print-pdf.c uses %g all over the place for printing doubles. Now, this is sort of dubious because we generally want fixed precision on the page, not a fixed number of significant digits. But more importantly than that, if you end up with a number very close to zero, then %g will give scientific notiation, which is not supported in PDF. I saw this for the text matrix due to a gnome_print_rotate (gpc, 90) (producing an invalid PDF file that neither xpdf nor acroread would load) but it can occur in almost any use of %g in gnome-print-pdf.c All uses of %g need in the file should be replaced with %f, some will likely need a precision specified.
patched.