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.



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).


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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