We have a custom tool that we built using the R-ArcGIS bridge. It queries a bunch of tables stored in a SQLite database and uses LaTeX to create a PDF report as the output.
Within ArcMap or ArcGIS Pro, the tool runs great and is programmed within the script to automatically open the saved PDF report using this code and it automatically opens fine:
system(paste0('open "', pdf.path, '"'))
We have created a geoprocessing tool from our server so that we can run this as a web app. It works great and saves the PDF file where we want. However, the PDF report that is generated is not being automatically opened as a popup when running it from the web application.
Any ideas for how to open a PDF saved on the server from the custom tool in the web app?