TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to the pdfx documentation it should be possible to add a Subject field to the XMP metadata file. Addition of this field however seems to cause an unexpected error during compilation of the LaTeX source into a PDF/A-1b file (pdfLaTex).

Try to compile the following source:

\documentclass[a4paper, 12pt]{article}
Hello, World!

using this metadata:

\Title{Hello, World!}
\Subject{Hello, World! example.}
\Keywords{Hello\sep World}

The source compiles without errors after omission of the Subject tag.


share|improve this question
up vote 3 down vote accepted

Edit: I found a solution with two patches.

First patch (pdfx.sty):

<  \let\xmpSubject\xmpKeywords
> \def\Subject#1{\gdef\xmpSubject{#1}}
>  \let\xmpSubject\@empty

Second patch (pdfa-1b.xmp):

>    <dc:description>
>      <rdf:Alt><rdf:li xml:lang="x-default">\xmpSubject</rdf:li></rdf:Alt>
>    </dc:description>

With this two patches, all is fine (for Subject).

share|improve this answer
You may be right, see the following link: pdfa.org/wp-content/uploads/2011/08/… – Petr Jul 19 '12 at 22:48
@Petr: thanks for this link. – Paul Gaborit Jul 19 '12 at 23:21

This look like a bug in pdfx: \Subject is documented, but I can find no implementation. Please report it to the authors.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.