3

I am trying to use pdfx package to generate PDF/X-1a:2001. According to its specification:

The package can be loaded with the command:

\usepackage[<option>]{pdfx}

and

x-1a: generate PDF/X-1a. Options x-1a1 and x-1a3 are also available to specify PDF/X-1a:2001 or PDF/X-1a:2003 explicitly.

So using that information my document source is:

\documentclass{book}
\usepackage[x-1a1]{pdfx}
\begin{document}
Some text
\end{document}

After compiling with pdflatex (TeX Live 2013/Debian distribution) I get following error:

LaTeX Error: Unknown option `x-1a1' for package `pdfx'

Same happens for xelatex (TeX Live 2013/Debian) which I need to use to compile actual document.

When I tried compiling same document on MiKTeX 2.9 it compiled with pdflatex.

Why are pdfx options not recognized by TeX Live 2013/Debian distribution?

Rafal
  • 1,684
  • 1
    See the change history: The manual states that some more variants were added with version 1.5.4, apparently x-1a1 is one of them. The latest version is 1.5.4 and this is from February 2015. You need to update your TeXLive. I can compile your example with pdflatex, the xelatex stuff is another issue, in fact –  Jul 03 '15 at 08:51
  • I am assuming that by "No need to update your TeX Live" you actually mean "You need to update TeX Live". Right? – Rafal Jul 03 '15 at 08:52
  • Right, it was a typo. Please update your distribution. Thanks for notifying me about the typo –  Jul 03 '15 at 08:53
  • So updating TeX Live will allow me to compile it with pdflatex, but I still won't be able to use xelatex (which is requirment for me). Is it impossible to use pdfx with xelatex at all? – Rafal Jul 03 '15 at 08:56
  • Yes, pdflatex works on my Linux with TL 2015, xelatex fails, but I don't know why. Perhaps there is a work around –  Jul 03 '15 at 08:57
  • You can control the output version with pdf14, pdf15, pdf16 and pdf17 options –  Jul 03 '15 at 09:00
  • Apparently, XeLaTeX doesn't define \pdfminorversion –  Jul 03 '15 at 09:20
  • From the documentation of the package:

    This package currently supports generation of PDF/X and PDF/A compliant documents using PDF TEX.

    – cfr Jul 16 '15 at 00:17
  • You can't use it with XeLaTeX. You have to choose: one or the other but not both. If XeLaTeX is required, you'll have to remove pdfx. – cfr Jul 16 '15 at 00:27
  • @cfr Do you know of any other way (that is, without using pdfx package) to generate PDF/X compliant document with XeLaTeX? I need to use OTF font, but at the same time I have to generate PDF/X document; I can't give up either one. (I asked new question for that: http://tex.stackexchange.com/questions/255480/producing-pdf-x-compliant-document-with-xelatex) – Rafal Jul 16 '15 at 06:07

1 Answers1

1

pdfx package only supports pdflatex compilation. In order to use xelatex for compilation, you can follow this answer. Please note that it would be good idea to update your distribution to TeXLive 2015 before following this answer, since otherwise your resulting PDF file might not validate fully, as mentioned in this comment.

If you are willing to switch to LuaLaTeX, solution shown in this answer will work for you.

Rafal
  • 1,684