Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to create metadata using \hypersetup but it doesn't work. Here are the commands I use

\usepackage[a-1b]{pdfx}
\usepackage{hyperref}
\hypersetup{
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=false,     % window fit to page when opened
    pdfstartview={FitH},    % fits the width of the page to the window
    pdftitle={title},    % title
    pdfauthor={Salvatore Mazzarino},     % author
    pdfsubject={Subject},   % subject of the document
    pdfcreator={Salvatore Mazzarino},   % creator of the document
    pdfproducer={Salvatore Mazzarino}, % producer of the document
    pdfkeywords={Green Networking} {Mobile Cloud} {Network Coding} {Energy}, % list of keywords
    pdfnewwindow=true,      % links in new window
    colorlinks=false,       % false: boxed links; true: colored links
    linkcolor=red,          % color of internal links (change box color with linkbordercolor)
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}
share|improve this question
4  
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. –  Peter Grill Dec 21 '12 at 22:36
4  
You can't set the metadata with \hypersetup when pdfx is used. –  egreg Dec 21 '12 at 23:59
1  
See also question of same user: Add metadata in pdf as type pdf/a. –  Speravir Dec 22 '12 at 0:09

1 Answer 1

up vote 5 down vote accepted

The documentation of pdfx is pretty clear on how metadata should be inserted, see Section 2.1:

As mentioned above, standards compliant PDF documents need XMP metadata to be included. In order to create XMP in the prescribed XML format, a simple data file holding the meta information of the document needs to be created either through a program or by hand. For our purposes, we name it as \jobname.xmpdata, a simple example of which will look like the following:

    \Keywords{pdfTeX\sep PDF/X-1a\sep PDF/A-b}
    \Title{Sample LaTeX input file}
    \Author{LaTeX project team}
    \Org{TeX Users Group}
share|improve this answer

Your Answer

 
discard

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.