PDF Keywords in current beta
![](https://secure.gravatar.com/avatar/201d5dc0ba4ed385f41b84a17acf1b9c.jpg?s=120&d=mm&r=g)
Hello, in the current beta the usage of the Keyword argument in the \setupinteraction command causes lua to fail in line 136 of lpdf-mis.lua: <code snippet> local keywords = specification.keywords or "" if keywords ~= "" then keywords = string.gsub("[%s,]+", " ") lpdf.addtoinfo("Keywords",pdfunicode(keywords)) end <error> ! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad argument #3 to 'gsub' (string/function/table expected) </error> I don't know what is expected there since I don't know the PDF specs, but I guess it's easily fixable ;-) Best Regards, Andreas.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Andreas Schneider wrote:
Hello,
in the current beta the usage of the Keyword argument in the \setupinteraction command causes lua to fail in line 136 of lpdf-mis.lua:
<code snippet> local keywords = specification.keywords or "" if keywords ~= "" then keywords = string.gsub("[%s,]+", " ") lpdf.addtoinfo("Keywords",pdfunicode(keywords)) end
<error> ! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-mis.lua:136: bad argument #3 to 'gsub' (string/function/table expected) </error>
I don't know what is expected there since I don't know the PDF specs, but I guess it's easily fixable ;-)
keywords = string.gsub(keywords, "[%s,]+", " ") ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Andreas Schneider
-
Hans Hagen