Hi, I am having a hard time figuring out how to get my script to export the layout as .jpg. The purpose of the script is that it loops through table and creates new layout based on the row value and then exports that layout. The script works perfectly with exportToPDF, but I can't figure out how to get exportToJPEG to work. Any ideas???
print("\n\tExporting map to pdf...")
finallocationwithPIN = path.join(finallocation, PIN)
if path.exists(finallocationwithPIN):
remove(finallocationwithPIN)
else:
pass
if not lyt.mapSeries is None:
ms = lyt.mapSeries
lyt.mapSeries.refresh()
if ms.enabled:
ms.currentPageNumber = ms.getPageNumberFromName(PIN)
ms.exportToPDF(finallocationwithPIN)