[Tex/LaTex] Errors using pdfx package to generate PDF/A

pdftex

I need to submit my thesis in PDF/A format. I am using LyX, but I don't think that is relevant for my question.

I get this error message when running pdfx package:

! pdfTeX error (ext5): cannot open file for embedding.
l.137 ...eam attr{/N 4}  file{sRGBIEC1966-2.1.icm}

The documentation says to put any color file in the pdfx folder and rename it to sRGBIEC1966-2.1.icm.

I have tried this and get the same error. Anyone know how to fix this?

Best Answer

  • pdfTeX looks for the file with the name sRGBIEC1966-2.1.icm exactly. Depending on the operating system/file system also uppercase/lowercase matters. Renaming the file name extension from .icc to .icm is not enough, also the file name must match.

  • If the file is put in the folder pdfx, then this folder is probably inside the texmf distribution tree (a better place would be a local/home tree). Then the file name database must be updated. texhash/mktexlsr in case of TeX Live and in case of MiKTeX the action must be done in admin mode (Maintennance (Admin)). Otherwise the file name databases for the system texmf tree is skipped and not updated.

  • The program kpsewhich can be used on the command line in both TeX Live and MiKTeX to check, whether a file would be found by TeX:

    kpsewhich sRGBIEC1966-2.1.icm
    

    It should report the file name with the complete path.

Related Question