Click to Reveal (Tables)

I want to generate a table in Writer, that has words hidden in each cell. When user clicks on the cell, the hidden word is revealed.

I would also like to translate this document to a PDF via (Export as PDF) while retaining the above function.

Can someone assist if it is possible with Libre?

tap to reveal test.odt (17.1 KB)

Imho this is not possible to export to pdf. You would need to include JavaScript in the pdf for this (and you have to write this code). LO does not support this (unless you weite this yourself as extension).
.
I don’t know what you wish to create, but consider html5 with css. It makes a lot of stuff possible.

You could use a form with text the same colour as the Field Highlight Colour used in Adobe Reader or Firefox but it relies on people using either of those two to view the pdf and not having changed the default settings.
tap to reveal test130152.pdf (14.4 KB)
Below is the form in Writer
tap to reveal test130152EA.odt (17.8 KB)