打印无法从wwwroot访问的文件?

I'm storing pdfs in a folder called pdf. This folder is not accesible through http://domain/pdf/. (and I don't think it should be)

So I can't do like

<a href="http://nameofdomain/pdf/pdf_file1.pdf">pdf file 1</a>
<a href="http://nameofdomain/pdf/pdf_file2.pdf">pdf file 2</a>
<a href="http://nameofdomain/pdf/pdf_file3.pdf">pdf file 3</a>

I have an admin-system where I want to print the files (when logged in). How could I print these pdfs to the user? (I want them to show in the browser, but I don't want them public accessible)

Presumably, you mean these static files should not be accessible to non-logged-in users.

Typically, readfile is used to transfer files like this from a non-web-accessible location to a browser.