If you merely want to stay away from that the PDF is exhibited inline while in the browser and directly downloaded then you'll want to Look at Should the backend sets the written content-Disposition Header.
A website https://lilianpneh841302.pointblog.net/sap-ui5-sap-btp-sap-fiori-sap-cds-view-sap-analytics-can-be-fun-for-anyone-71104654