\documentclass[a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a-1b]{pdfx}

\usepackage{lipsum}

\begin{document}

\tableofcontents

\section{Section}

\lipsum
\section{Section}

\lipsum

\end{document}
