[Tex/LaTex] LuaLaTeX and \pdfminorversion

luatexpdf

I need to build a PDF 1.6 with LuaLaTeX, and I can't get \pdfminorversion command to work:

\pdfminorversion=6
\documentclass{article}
\begin{document}
    This is a test
\end{document}

The result is

Undefined control sequence. \pdfminorversion

PdfLaTeX builds the PDF, but I need to use LuaLaTeX (I need the fontspec package).

Best Answer

As of LuaTeX v0.87, the pdfTeX-derived extension primitives are renamed. Here, you want

\pdfvariable minorversion

The details of emulation are given in the LuaTeX manual, or you can load the luatex85 package which wraps up this emulation for the transition.

Related Question