Open guenterw opened 1 year ago
Indeed, it can be either the name of the layout or the expression defined for the atlas.
@guenterw I guess that's very easy to implement, because QGIS Server uses the additional URL parameter "FILE_NAME" to specify a file name for the HTTP response. This works with GETPRINT requests as well.
@cxcandid Did you test that FILE_NAME
works with GetPrint with all formats? I read that it is only for GetMap requests and .dxf format. https://docs.qgis.org/3.34/fr/docs/server_manual/services/wms.html#getmap
@nboisteault I use the URL parameter FILE_NAME
with GetPrint in production to generate PDF outputs (QGIS Desktop 3.30.1 / QGIS Server 3.5.6 Windows). Didn't test any other format.
It would be nice if the name for the document of the print output could be defined via a variable.
Possibly similar to what is possible in QGIS for atlas printing.