You can actually send anything you want from server side SA, and use a Server Side Binding on the page to render it.
But, you will loose all client side App Connect UI-based functionality. You can use App Connect stuff, but it will have to be coded in your server side HTML string that you send in the response of server side SA… And it should render fine on client side.
You can also take a look at one of the examples here on how you can modify NodeJS Wappler app to work as you need: MODULE: Generate PDF from EJS Template with Puppeteer