\documentclass{article}
\usepackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:
\ExplSyntaxOff
\usepackage[colorlinks=true,urlcolor=blue]{hyperref}
\usepackage[ocgcolorlinks]{ocgx2}
\begin{document}\pagestyle{empty}\showoutput
abc
\pdfliteral direct{
q 7 Tr
%q
%BT
%/F8 9.9626 Tf 148.712 657.235 Td [(a)]TJ/F25 0.01 Tf 4.979 0 Td [(abc)]TJ
%ET
%Q
BT
/F8 9.9626 Tf 148.712 657.235 Td [()]TJ %with x is works
ET
/OC/rm@oc0 BDC
-88888 -88888 99999 99999 re f
EMC
/OC/rm@oc1 BDC
0 0 1 rg 0 0 1 RG
-88888 -88888 99999 99999 re f