[luatex] pdf.catalog argument

Reinhard Kotucha reinhard.kotucha at web.de
Fri Feb 21 01:55:54 CET 2014


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf_catalog.tex
Type: application/x-latex
Size: 1020 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20140221/5c25da3b/attachment.latex>
-------------- next part --------------

Regards,
  Reinhard
     
-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the luatex mailing list