Skip to content

text form fields don't work if ocgx2 is loaded

When loading the ocgx2 package the text form field in the following document are no longer visible (viewed in a current adobe reader on win10). The second field can be found by clicking in the area, but the first seems to be completly gone. I suspect that the cause is the "AR-bug-fix annotation", as I get a similar effect if I don't load ocgx2 but add the expl3 variant of this fix.

\documentclass{article}
\usepackage{expl3}
\ExplSyntaxOn
\driver_pdf_compresslevel:n {0}
\driver_pdf_objects_disable:
\ExplSyntaxOff
\usepackage{hyperref}
\usepackage{ocgx2}

\begin{document}

\begin{Form}
%\ExplSyntaxOn
%\__driver_pdf_AR_fix:
%\ExplSyntaxOff

\TextField{abc}
\TextField{cde}
abc
\end{Form}
\end{document}

It works again if I add to the AR-fix annotation the flag /F 4 (which is also in the form fields).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information