AnsweredAssumed Answered

PDF output from Geoprocessing service

Question asked by ascullyCOT on Aug 25, 2017
Latest reply on Aug 7, 2018 by jawest1

We have created a geoprocessing service that uses a modified version the Reportlab pdf generation from the ESRI Public Notification app.  The script takes an address or  parcel, buffers it, generates 1 pdf for property owners in the buffer area, and a 2nd pdf for the Neighborhood Associations officers for the NHA where the parcel is.  


The script runs as desired, and generates the output pdf's in the scratch directory on the ArcServer machine (C:\users\username\documents\ArcGIS\Scratch).


My issue is that when creating a web app with a Geoprocessing Widget that uses the script published as a service, I don't know where the output goes.  It runs successfully, but the output remains out of reach.  The Public Notification application opens a new browser tab with the PDF mailing label output - I would like to have the same behavior with my custom script but am not sure how to set this up.  


The output_file variable is actually part of a list so that the script can loop through to generate the owner and NHA pdf's as separate files, but it is currently coded as follows:

   labellst = [[arcpy.GetParameterAsText(5).replace("\\",os.sep)+"owners.pdf","parc"],


The script has the output file as a derived 'output' parameter of type 'file'.


Thanks -