I orginally had a PDFlatex engine running which included the following custom command:


However, I have now moved from PDFLatex to Lualatex and the above command no longer works. I am aware the issue is related to \pdfximage, however, how do I get the same result as the above command but with LuaLaTex?


1 Answer 1


\pdfximage is \saveimageresource in luatex and \pdflastximagepages is \lastsavedimageresourcepages or add \usepackage{luatex85} to define all the old names.

  • Ah perfect, thank you.
    – root92
    Aug 17, 2021 at 8:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .