% The signature fields are what this example is for, so the PDF is written
% uncompressed: the suite then reads the annotations out of it with grep and needs
% nothing beyond a TeX installation to do so.
\ifdefined\pdfvariable\pdfvariable compresslevel=0 \else\pdfcompresslevel=0 \fi
% Declared here only when the commandline did not do it already, so that a
% conformance flavour can be declared in front of this file.
\IfDocumentMetadataTF{}{\DocumentMetadata{}}
\documentclass[12pt,dutch]{article}
\usepackage{babel}
\usepackage{regulatory}

\newcommand\translation[2]{#2}

% A field draws a line to write on, which says nothing about how far the area
% reaches that a viewer will offer. This example frames it, so that the sheet shows
% on paper what the annotation covers in a reader: \fboxsep is zero, which puts the
% rule exactly on the edge of the annotation rectangle.
\newcommand\signaturebox[4][]{%
    \begingroup
    \setlength\fboxsep{0pt}%
    \fbox{\signaturefield[#1]{#2}{#3}{#4}}%
    \endgroup
}

% PDF/UA wants a dc:title, which \title does not set.
\hypersetup{pdftitle={Voorbeeld Ondertekening}}

\begin{document}
    \begin{center}
        \Huge Voorbeeld Ondertekening
    \end{center}

    \article{Ondertekening}\label{art:sign}
    \begin{paras}
        \item \label{lid:opdrachtgever} De opdrachtgever tekent hieronder.\\
            \signaturebox[Handtekening van de opdrachtgever]{opdrachtgever}{6cm}{2cm}
        \item \label{lid:opdrachtnemer} De opdrachtnemer tekent hieronder.\\
            \signaturebox[Handtekening van de opdrachtnemer]{opdrachtnemer}{6cm}{2cm}
    \end{paras}
\end{document}
