1

It seems bookmarks do not work, when PDF/X is used. For example

\documentclass{book}
\usepackage[x-302]{pdfx}
\hypersetup{final}

\begin{document}
\chapter{A Section}
asdf
\chapter{Another Section}
asdf
\end{document}

This tex does not produce pdf bookmarks for the sections. Changing from x-302 to a-1b, however, will produce bookmarks as expected.

How can I get bookmarks with PDF/X formats?

  • 3
    (1) welcome, (2) isn't PDF/X a graphics change specification, thus bookmarks does not really make any sense. (3) looking in the pdfx code. The pdfx switch (enabled by x-302) explicitly sets bookmarks=false in \hypersetup. You might get away with just setting \hypersetup{bookmarks=true} (untested) – daleif Apr 20 '17 at 13:00
  • Thanks :) I do not really know details about the intended usage of pdf/x, but afaik it's supposed to be used for printing documents. Bookmarks are not necessary for printing, but it seems more convenient to me to have only one pdf for reading on the computer and printing. – MarcelSimon Apr 20 '17 at 13:07
  • 1
    The bookmarks=true does not seem to work, but thanks for the hint that bookmarks=false is set by the package. Seems it's not possible to do that due to the specifications of pdf/x – MarcelSimon Apr 20 '17 at 14:13
  • That I think might be an hyperref issue, see the log, there is a warning about bookmarks having already been set. – daleif Apr 20 '17 at 14:17
  • Hmm, strange I cannot even use \hypersetup{bookmarks=true} in a simple hyperref doc (no pdfx) – daleif Apr 20 '17 at 14:22

Your Answer

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

Browse other questions tagged or ask your own question.