As per the documents, the pdf export is supported only if they are certified:
Custom visuals that have been certified are supported. For more information on certified custom visuals, including how to get a custom visual certified, see Get a custom visual certified. Custom visuals that haven't been certified aren't supported. In the PDF, they display with an error message.
If u want to know more about the course then check the Power Bi Certification