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 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}
share|improve this question
    
Is your document compiling properly? When I tried it, it got a pdfTeX error because a color definition file wasn't there (Read Errors using pdfx package to generate PDF/A for more information). Please check out the last bit of your log-file. –  Johannes_B Dec 16 '13 at 18:07
    
If I say \hypersetup{colorlinks,linkcolor=blue} I get a blue colored link from the reference to the chapter title. Whether this is a valid PDF/X file I don't know. –  egreg Dec 16 '13 at 18:36
    
@Johannes_B: I needed to download a color profile ("sRGBIEC1966-2.1.icm") and place it in the "tex/latex/pdfx" folder to compile the document. But after this, it compiled properly. –  Christof Dec 17 '13 at 8:55
    
@egreg: Using '\hypersetup{colorlinks,linkcolor=blue}' as you suggested indeed changes the appearance of the link. However, I still cannot click on the link to switch to the referenced chapter... –  Christof Dec 17 '13 at 8:57
    
@Christof My link works, so I don't know what to say. –  egreg Dec 17 '13 at 8:58

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.