I'm working on an ArcGIS JS API web application that requires a heavily customized PDF report.
When a user submits their desired extent to our reporting function, we need to convert their webmap to MXD (likely using
arcpy.mapping.ConvertWebMapToMapDocument), modify some symbology, and export to PNG. We also need to build a separate legend (farther down in the report) that contains the proper polygon boxes and text descriptions:
My current plan is to export these all separately, then use python to inject them into a LaTeX document, then run pdflatex to generate PDF.
Is it possible to export the legend objects (polygon boxes and associated text) in this way? I can manually convert the legend to graphics in ArcMap, then paste them into Paint (or something) but I'm struggling to find a way to do this in python.
Any other workflows that make more sense?