I have a folder structure as follows, please see 1st screenshot.
And this is my code so far.
I want to print the indicated PDF document. It works perfectly on my local development machine, but after uploading of site, it tanks. So I am not building the path correctly for web printing it seems? Thanks Luke
As far as I know, if you want to access the wwwroot inside the controller, you could try to use IWebHostEnvironment's WebRootPath.
Codes:
Result: