11 Dec
2007
11 Dec
'07
9:41 a.m.
Hans Hagen wrote:
This fails with 'Text line contains an invalid utf-8 sequence.' (not surprising, since the text is UTF-16 big endian). If I want to pass the UTF-16-encoded string i.e. to \pdfoutline (since PDF bookmarks can be encoded in UTF-16), how do I do this?
(Maybe a callback would be useful, i.e. `convert_pdf_text')
you can move all 'bytes' to a reserved private area (see manual) and then luatex will write them with that offset subtracted; think of a private 256 slot area representing bytes
For now, that is what will have to be done. But I agree that is ugly, and either a callback or primitive or lua pdf.outline() access is called for. Best wishes, Taco