I need to compile my thesis as a PDF/A-compliant document. Therefore I use the pdfx package. Reacently (due to many many tikz figures) I have changed from pdflatex to lualatex (TeX memory - externalization is not an option, because I have links of acronyms and citations in my figures). Lualatex compiles a full pdf but raises the error:

(c:/texlive/2022/texmf-dist/tex/latex/pdfx/pdfx.sty Package: pdfx 2019/02/27 v1.6.3 PDF/X and PDF/A support (CVR/HTH/RRM/PS) \pdfx@minorversion=\count440

! Missing number, treated as zero. \scan_stop: l.332 A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.)

The latest version of TeX live have not fixed this issue. Is this a bug or a input error, which I could solve? I am happy for any help. Thanks!

My MWE looks like that:

BCOR=10mm,  DIV=14, headinclude, headheight=16mm, twoside, openright, onecolumn,





% ###--- Own Page Style ---###
\ofoot[\pagemark]{} %to set pagenumber in footer on first pages of chapters
% ###--- Page Style END ---###

\usepackage{scrhack} %to delete warning <\float@addtolists detected!>

\usepackage{float} %[H]
\usepackage{enumitem} %This package provides user control over the layout of the three basic list environments: enumerate, itemize and description.
    pdfborder={0 0 0},
    pdfstartview=Fit,       %fit to full page
    pdfpagelayout=TwoPageLeft %display pdf in two page view (book)

%TODO: check if with texlive 2022 solved?
\usepackage[a-1b]{pdfx} %error with lualatex!!! 




Title page
Main text.
  • don't use \usepackage[T1]{fontenc} with luatex,don't use \usepackage[utf8]{inputenc} either (although that does no harm ,just gives a warning that it should not be used) May 3, 2022 at 7:01
  • Seems like the package pdfx being incompatible with lualatex. One option is to nicely ask the pdfx developer to fix it.
    – user202729
    May 3, 2022 at 7:03
  • 1
  • load \usepackage{luatex85} before pdfx. @DavidCarlisle the other bug is imho resolved. May 3, 2022 at 7:10
  • 1
    This should be reported as a bug to the pdfx developrs though, no package should be requiring luatex85 by now, that was a short term patch to help documents with the name changes in the luatex 0.85 beta release. May 3, 2022 at 7:15

1 Answer 1


The workaround suggested by @DavidCarlisle works as discribed.

Adding the line \usepackage{luatex85} before \usepackage[a-1b]{pdfx} removed the compilation error with lualatex.

You must log in to answer this question.

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