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?
Best Answer
The manual for pdfx (at the moment under "2.5 Color Profiles") points out, that the color profile must be specified.
The problem @ulrike-fischer found has probably vanished. The MWE compiles fine for me with both LuaLaTeX – Version 0.95.0 (TeX Live 2016/Debian) – and PDFLaTeX. A sole warning from
hyperref
package about page height stains the log.maybe the documentation helps …
You intend to create a PDF/A compliant document, so have a look into guidelines that try to help for that, e.g. in Instructions for creating PDF/A-compliant files for online publishing at the TU Berlin.
You will learn, that the privided
xmp
data is not sufficient. You need: title, author, keywords, publisher (or more). That also is told in thepdfx
manual (in section "2.2 Data file for metadate")According to the TU Berlin you may validate e.g. with pdflib.com.
It links towards http://www.color.org/srgbprofiles.xalter where described how to do get the profiles.
tl;dr:
The file shall be next to your main jobfile (so next to the
xmpdata
-file) and also is provided by thepdfx
package itself on CTAN.If that all sounds like news, head on e.g. to this guide about PDF/A.