Hi,
there are a few variables which can be accessed by TeX as well as
by Lua. Unfortunately the PDF creation date can only be accessed by
TeX (\pdffeedback creationdate, formerly \pdfcreationdate).
What I did in the past is to pass \pdfcreationdate as an argument to a
Lua function from the TeX side
\directlua{
dofile(kpse.find_file("printecg.lua"))
texinit("\pdfcreationdate")
}
where texinit() is a function defined in printecg.lua.
This works fine, but it would be much nicer if I could access the PDF
creation date directly from the Lua side. Then the code could be more
comprehensible.
The PDF creation date is required in order to write the PDF/A XMP file
and I'm doing this entirely in Lua.
Is it feasible to add such a Lua variable (maybe 'pdf.creationdate')?
Regards,
Reinhard
--
------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha@web.de
------------------------------------------------------------------