When you export a to a PDF from obsidian, it could be that the text will be invisible. In your settings go to appearence and change Adapt to System to either light or dark theme.

Thanks to this reddit comment for figuring this out.