Compiling a simple example on PDF/A with Lualatex returns the following error:

! Undefined control sequence.
l.660  \ifnum\shellescape

Or, for a PDF/X:

! Undefined control sequence.
l.333  \pdfobjcompresslevel
                         =0 \relax

How can I compile a document under Lualatex with PDFx compliance?

Example code, running on Texlive 2018:


Things and stuff.

The package pdfx requires luatex85. It is only required for Luatex, so they don't get pulled in by the package manager. Installing texlive-luatex85 fixes the problem. No need to modify the tex.

(The documentation claims pdftexcmds from texlive-oberdiek can also be used, but it doesn't work on my box, I need luatex85 or both.)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.