I was wondering if it is possible to read a file .pdf file from server by providing some input to geoprocessing service (tool that I will publish) and add the PDF file to the WebApp so that WebApp users can access it without going to the server itself.

Edit1: Sorry i couldnt clarify my question better. My aim is to be able to show the pdf open the pdf, without downloading it. If there is a multiple pdf in the path that i am trying to access i would like to show all of them at once.

The input would be the path of the pdf folder for example "C:\Users\XUser\Desktop\pdf\_files\road\_related"
"C:\Users\XUser\Desktop\pdf\_files\building\_related"

So there will be data on the webapp about this paths and i will be giving one of these two as an input and i want geoprocessing tool to read all those files and show them in webapp without giving a download link at first.