[NTG-pdftex] pdftex-1.11b uniqueresname bug

Hartmut Henkel hartmut_henkel@gmx.de
Tue, 3 Feb 2004 21:23:20 +0100 (CET)

Pdftex produces broken PDF when its HZ implementation is used with
\pdfuniqueresname = 1, like it is set in example.tex. Then xpdf issues
errors, e. g.:

Error: Unknown font tag 'F54?:E3_+10'

Reason is, that in the page contents stream there is e. g. some


but the page resources look like

/Font << ... /F54+10?:E3_ ...

The font_tag "+10" and resname_prefix "?:E3_" are swapped (and it's no
prefix anyway, more like an inbetweenfix). This can easily be cured by
just swapping two lines in pdftex.ch, then it's a postfix :-)

--- pdftex.ch-orig	Mon Oct  6 10:38:51 2003
+++ pdftex.ch	Tue Feb  3 20:47:41 2004
@@ -1590,8 +1590,8 @@
-    pdf_print_resname_prefix;
+    pdf_print_resname_prefix;
     pdf_out(" ");
     pdf_print(" Tf");

Seems to work then. Have fun!

Regards, Hartmut

Hartmut Henkel, Oftersheim, Germany