I had the same problem on a 20.04 installation, for me what helped was to unset SAL_USE_VCLPLUGIN or change it to SAL_USE_VCLPLUGIN=kf5
With SAL_USE_VCLPLUGIN=qt5 it always produced PDFs with invisible text, so there may be something wrong with that.