[XeTeX] hyperref 6.79n breaks xetex's (xdvipdfmx) ability to set proper page dimensions (and overrides page dimensions on pdftex)

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Dec 14 23:50:31 CET 2009


On Mon, Dec 14, 2009 at 06:06:12PM +0100, Heiko Oberdiek wrote:

> On Mon, Dec 14, 2009 at 07:14:12PM +0300, Vladimir Volovich wrote:
> >   pdf:docinfo<</Title(test \xd1\x82\xd0\xb5\xd1\x81\xd1\x82)/Subject()/Creator(LaTeX with hyperref package)/Author()/Producer(XeTeX 0.9995)/Keywords()>>
> >   pdf:outline [-] 1<</Title(test \xd1\x82\xd0\xb5\xd1\x81\xd1\x82)/A<</S/GoTo/D(section.1)>>>>
> UTF-8 inside a PDFDocEncoded string is wrong. It's a bug
> in hyperref, I will remove it. PDFDocEncoding and UTF-8 cannot be mixed
> without ambiguity, both encodings are using 8-bit-bytes.

Now hyperref 6.79p only supports option `unicode' or
`pdfencoding' with values 'unicode' or `auto'. In the latter
case PDFDocEncoding is only used, if the string is an ascii string
(7-bit characters).

No idea, how to get rid of the warning
"Failed to convert input string to UTF16...".
The strings are already in UTF16, thus an additional conversion
have to fail.

The source code seems to suggest, a two byte BOM marker
skips the conversion test, but neither ^^fe^^ff, ^^^^feff,
\376\377 work.

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

More information about the XeTeX mailing list