On 11/12/2021 6:53 PM, Pablo Rodriguez via ntg-context wrote:
Hans,
I have a PDF document (which I didn’t generate) and it contains the following objects:
1 0 obj << /Title 272 0 R /Producer 273 0 R /Creator 274 0 R /CreationDate 275 0 R /ModDate 275 0 R
endobj
272 0 obj (This is an important title) endobj
273 0 obj (Mac OS X 10.12.1 Quartz PDFContext) endobj
274 0 obj (Keynote) endobj
275 0 obj (D:20161108071428Z00'00') endobj
I cannot import these objects, since they are tables instead of strings, after checking that with:
\startluacode function document.transfer_metadata(name) local main_doc = lpdf.epdf.load(name) context(type(main_doc.Info.ModDate)) context(type(main_doc.Info.Title)) end \stopluacode
Would it be possible that LMTX can deal with these objects and import them as strings?
They are tables because in lua objects are like tables. Doesn't context(tostring(main_doc.Info.ModDate)) work? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------