Hi,
according to the documentation, the argument of pdf.catalog should be
a string.

When I say

  local meta=string.format('/Metadata %d 0 R', xmpobj)

where xmpobj is the return value of pdf.obj(), then

  tex.print('\\pdfcatalog{'..meta..'}')

works as expected but

  pdf.catalog(meta)

fails:

  ! LuaTeX error [string "\directlua "]:24: attempt to call field 'catalog' (a 
string value)
  stack traceback:
     [string "\directlua "]:24: in function 'xmp_2'
     [string "\directlua "]:1: in main chunk.

You can use the attached file in order to reproduce the problem.  It
contains two functions.  Change the argument of \directlua in order to
switch between them.

Attachment: pdf_catalog.tex
Description: LaTeX document

Regards,
  Reinhard
     
-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:[email protected]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------

Reply via email to