If you want to export the PDF with an actual dark page/background, you’ll need to use a PDF export snippet.
There were some PDF export changes recently that broke the original snippet, but I believe Zamsyt has updated their snippet and it’s working now. Give that a try.