[NTG-pdftex] Bug: <hex> string to () string

Heiko Oberdiek oberdiek@uni-freiburg.de
Tue, 29 Jul 2003 19:43:35 +0200


Hello,

I wanted to include pdf slides from:
  http://ais.informatik.uni-freiburg.de/lehre/ss03/ki/slides/01-intro.pdf
by pdfTeX, but the colors in some of the images are terrible wrong.

Driver file:

% test.tex
\nopagenumbers
\pdfcompresslevel=0
\pdfximage width 297bp height 210bp page 14 {01-intro.pdf}
% similar page 9, ...
\pdfrefximage\pdflastximage
\bye

Analysis:

                    01-intro.pdf / test.pdf

/Page object:       107 0  /  3 0
It references via /XObject the /Image object:
/Image object:      110 0  /  8 0
With
/ColorSpace object: 111 0  /  7 0

Start of object 111 0 of 01-intro.pdf:

111 0 obj
[/Indexed
/DeviceRGB
255
<0402070402300402500402700402840402EC3502066E021585020A9A02159C02
...

Start of object 7 0 of test.pdf with one line break for readability:

7 0 obj
[/Indexed/DeviceRGB 255
(\004\002\007\004\0020\004\002P\004\002p\004\002\37777777604
\004\002\377777777545\002\006n\002\025\37777777605\002...

==> The translation of 8-bit characters that have set it eighth bit
    get terrible wrong:
      hex(84) --> string(\37777777604)
      hex(EC) --> string(\37777777754)
    It seems that the octal number is written as 32 bit number instead
    of a 8 bit number.

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>