[luatex] pdf.setnames has no effect without \pdfextension names

Esger Renkema esgerrenkema at gmail.com
Wed Jun 9 12:40:24 CEST 2021


Dear list,

 From the following file, processed with the plain luatex format, no 
/Names entry in the document catalog will be set, though it should be:

-----------------------------------------------
\directlua{pdf.setnames('/Some/Key')}
test \bye
-----------------------------------------------

However, this file does the right thing:

-----------------------------------------------
\pdfextension names {}
\directlua{pdf.setnames('/Some/Key')}
test \bye
-----------------------------------------------

It appears that any data added to the /Names dictionary from the lua 
side will be ignored if nothing is added to it from the tex side.

Regards,
Esger Renkema




More information about the luatex mailing list.