On p. 8 3.1 Document class options of latex2e.pdf, the text reads " One way to do that is to put \pdfpagewidth=\paperwidth and \pdfpageheight=\paperheight in your documents preamble." However, that is engine dependent and produces an error on luatex. Thanks for noticing and reporting that. I'll adjust the text.