PDF is not saved correctly

PDF export is not working properly. Result:

How to fix it?