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


\chapter{A Section}
\chapter{Another Section}

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

Bookmarks are technically actions of type GoTo. Actions are forbidden in PDF/X- up to 5 because they cannot be printed. I agree this is inconvenient when you want one pdf for printing and screen. Maybe this will change with upcoming PDF/X-6.

In the meanwhile you can create a document with hyperlinks that declares being PDF/X. It will throw a validation error in Acrobat Preflight but someone knowledgeable in a print shop will not take this seriously.

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.