On Wed, Mar 10, 2021 at 3:06 AM Andreas Matthias <[email protected]>
wrote:

> 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
>

confirmed for 1.12.0, but 1.13.0 seems to  be ok.

-- 
luigi

Reply via email to