I can access e.g. the object number of a page in luatex with \pdffeedback. Is there a way to get the same value in pure lua code?
\documentclass{article}
\usepackage{luacode}
\begin{luacode}
function showpageobjnum (page)
a="??????" -- how to get the object number of page here?
tex.sprint(a)
end
\end{luacode}
\begin{document}
% to increase the numbers a bit
\pdfextension obj reserveobjnum
\pdfextension obj reserveobjnum
\pdffeedback pageref 1 %gives 3
\directlua{showpageobjnum(1)}
\end{document}