On Sat, Feb 26, 2022 at 10:01 AM luigi scarso <luigi.sca...@gmail.com> wrote:
> > > On Fri, Feb 25, 2022 at 10:24 PM Esger Renkema <p...@elrenkema.nl> wrote: > >> Please see the attached patch; it solves this issue and also a similar >> one with pdf.setnames() that I have reported before in [1], but which >> apparently has not been seen. >> >> Warm regards, >> Esger Renkema >> >> [1] https://tug.org/pipermail/luatex/2021-June/007543.html > > > I remembered that email and indeed I made a note to check it, as in this > case (sorry for the delay) . > > In > https://tug.org/pipermail/luatex/2021-June/007543.html > the fact that this works > \pdfextension names {} > \directlua{pdf.setnames('/Some/Key')} > test \bye > perhaps is a signa of a missed documentation (I hope so) > 14.1.2 [set|get][catalog|info|names|trailer] These functions complement the corresponding pdf backend token lists dealing with metadata. The value types are strings and they are written to the pdf file directly after the token registers set at the TEX end are written. Hm, this means that your code before is the correct way to modify names. -- luigi