When I try to compile the following MWE with lualatex (on Miktex), i get this error:
! LuaTeX error (ext5): cannot open file for embedding.
\reserved@a ...viceRGB} file{"\pdfx@rgb@profile "}
\edef \OBJ@RGB {\the \pdfl...
l.742 }
MWE:
\documentclass{minimal}
\usepackage{filecontents}
\begin{filecontents}{\jobname.xmpdata}
\Title{Test PDF/A-1b}
\Author{Me}
%\setRGBcolorprofile{./sRGB_IEC61966-2-1_black_scaled.icc}
% {sRGB_IEC61966-2-1_black_scaled}
% {sRGB IEC61966 v2.1 with black scaling}
% {http://www.color.org}
\end{filecontents}
\usepackage[a-1b]{pdfx}
\usepackage{hyperref}
\begin{document}
Hello World!
\end{document}
The error message points to the color profiles that should be loaded, but also adding the profile explicitly to the xmpdata file (after copying the profile from the pdfx-folder to the current working folder) doesn’t change the result. Have I misunderstood something?
\immediate\pdfobj stream attr{/N 3^^J/Alternate/DeviceRGB} file{\pdfx@rgb@profile}
. I don't know if this a bug or not. But I will ask on the luatex list.file{" ... "}
are unnecessary. With pdflatex they seem to do no harm, but as luatex doesn't like them they should be removed. I wrote to one of the authors of pdfx.