Change print widget file name

1212
4
02-08-2021 06:23 AM
ErfanGoharian
New Contributor III

I made a print widget for my webapp, which generates the print as pdf. I can change the title of the print figure, however, when I click the PDF and want to save it, the name of PDF file is something random, like "77ca24b763574b51ae868af8406fd267.pdf"!

I was wondering how can predefine the filename of ***.pdf?

 

ErfanGoharian_0-1612794139527.png

 

0 Kudos
4 Replies
LefterisKoumis
Occasional Contributor III

The output name is originated from the REST service at:

https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...

There is a parameter Output_File and the name is from the Display Name. It is an auto generated name.

The best way is to use your ArcGIS server printing service and create your own print template. Then, you define the name of the pdf.

0 Kudos
ErfanGoharian
New Contributor III

Thanks. I actually use my own template, like added logos, etc. But could not find where I can dictate the name of the output file! Can help me with that?

0 Kudos
LefterisKoumis
Occasional Contributor III
0 Kudos
ErfanGoharian
New Contributor III

@RobertScheitlin__GISP Are you able to help me with this? please

0 Kudos