I need an ocg for each character in the pdf-export to be able to import the pdf in after effects with each character as a separate layer. I'm looking for a solution where you don't have to write...
\begin{ocg}{First layer}{oc1}{1}
A
\end{ocg}...
... for each character in the document.
I've tried using pymupdf, but I can't find a good way to keep the embedded fonts (subsets) while creating ocgs.
Is there an easy way to do this in latex and keep the documents clean and readable?