[Tex/LaTex] pdfx – package leads to non-working hyperref links

hyperrefpdftexpdfx

I want to produce a PDF/A-1b compliant document. I am using pdflatex (MikTex 2.9) and TeXnicCenter. On the web, I've read that the "pdfx" package is the best way to do this. I installed pdfx according to the instruction on the web and it seems to be working.

However, as soon as I start to implement "\usepackage[a-1b]{pdfx}" into my tex-file, the links in my document do not longer work, i.e. I cannot click on the link to switch to the destination of it, e.g. for referencing sections or citing bibliography entries.

Looking at "pdfx.sty" revealed that the "hyperref" package is loaded with the option "draft":

\RequirePackage[draft,pdftex,pdfpagemode=UseNone,bookmarks=false]{hyperref}

I tried to change this option using \hypersetup{final}, but this did not work.

I also tried changing the corresponding line in "pdfx.sty" directly to

\RequirePackage[final,pdftex,pdfpagemode=UseNone,bookmarks=false]{hyperref}

but this didn't work either (I updated the Miktex file name database before I ran pdflatex).

Also, changing the link-appearence, e.g. its color, cannot be manipulated either (see example).

Could someone please tell me if it's possible to have working links within a pdf document that has been created with the "\usepackage[a-1b]{pdfx}" command?

Here's an MWE:

\documentclass{book}

\usepackage[a-1b]{pdfx}
\usepackage{lipsum}

% Appearance of links cannot be manipulated
\hypersetup{linkcolor = {0 0 1}}

% Activating "Final" option does not influence links
\hypersetup{final = true}

\begin{document}

\chapter{Dummy title 1}
\label{label_1}
\lipsum

\chapter{Dummy title 2}
Make reference to chapter \ref{label_1}

\end{document}

Best Answer

Hyperlinks should work just fine in a PDF/A document, using pdfx --- but please send me any example that you find where this is not the case.

However active actions are forbidden in a PDF/X, which standard is intended only for accurate high-quality printing.

One of the new features in pdfx (v.1.5.8) is to enforce this in PDF/X documents, by patching hyperref's coding for links, but respecting any colors specified for the link's anchor-text. Another improvement is to force the use of xcolor, adapting to the nature of the color profile that has been specified; normally RGB for PDF/A or CMYK for PDF/X. This is to ensure that any colors specified in whatever way in other packages, or with \definecolor end up matching the chosen color model. Otherwise the PDF might not pass validation.