I have been drawing many tikzpictures this way:



      \only<1>{\node {1};}
      \only<2>{\node {2};}

Now, I like to make this pictures PDF/A compatible, but the code does not compile with \usepackage[a-1b]{pdfx}:

! Package kvsetkeys Error: Undefined key `pdftex,pdfa,pdfversion=1.4'. ... ! pdfTeX error (setup): \pdfminorversion cannot be changed after data is written to the PDF file.

Any ideas?

  • 1
    Welcome to TeX.SX! Try \RequirePackage{pdf14} before \documentclass.
    – TeXnician
    Apr 10, 2017 at 19:03
  • @TeXnician: Unfortunatley, this does not work, i.e., nothing has changed. Apr 10, 2017 at 19:14
  • 1
    To better understand your question, can you explain your train of thoughts why this error comes from an option clash of hyperref? Apr 10, 2017 at 19:16
  • I have no idea where the error comes from. Ohh .. I see. The title of my post is not correct. I will change it. Apr 10, 2017 at 19:17

1 Answer 1


What I tried right now is:


What ever this does .. it compiles now (by accident)! I will try this on all my 70 tikzpictures.

But it would be helpful if someone could comment if this is "a right way" to go. Thanks.

  • 2
    The first error is due to a bug in pdfx, it calls \hypersetup for a command and forgets to expand it. The second more fatal error is an incompability between beamer and pdfx, it opens the pdf and so pdfx can't make its settings. Your \AtEndOfClass is the only chance. Apr 10, 2017 at 21:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .