[luatex] Segfault: pdfe.getstring()

Andreas Matthias andreas.matthias at gmail.com
Tue Mar 9 22:59:42 CET 2021


I get a segfault with pdfe.getstring(). To replicate this issue run:

  # lualatex foo.tex
  # texlua foo.lua

File 'foo.tex':

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{https://www.ctan.org}{CTAN}
\end{document}

File 'foo.lua':

doc = pdfe.open('foo.pdf')
annot = pdfe.getpage(doc, 1).Annots[1]
uri = pdfe.getstring(annot.A, "URI", true)
print(uri)

I'm running:
This is LuaTeX, Version 1.12.0 (TeX Live 2020)

Best Regards
Andreas


More information about the luatex mailing list.