![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 11/12/2021 7:24 PM, Pablo Rodriguez via ntg-context wrote:
On 11/12/21 7:14 PM, Hans Hagen via ntg-context wrote:
They are tables because in lua objects are like tables. Doesn't
context(tostring(main_doc.Info.ModDate))
work?
Many thanks for your reply, Hans.
I’m afraid I don’t know how to extract the real information, I only get:
table: 0x324279a3400
then you're doing something wrong \startluacode local main = lpdf.epdf.load("ar.pdf") context(tostring(main.Info.ModDate)) context(tostring(main.Info.Title)) local crap1 = tostring(main.Info.ModDate) local crap2 = tostring(main.Info.Title) context(crap1) context(crap2) \stopluacode works quite okay
BTW, how can I use "\enabledirectives[backend.date=2021.02.01]" in Lua?
grep is your friend ... (probably also in the cld manual) directives.enable('backend.date=2021.02.01') which of course doesn't mean that each one will work out as expected because timing matters Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------