When exporting a map series with mapSeries.exportToPDF, if the page_range_string is a single page with page_range_type="RANGE" and multiple_files=["PDF_MULTIPLE_FILES_PAGE_NUMBER" | "PDF_MULTIPLE_FILES_PAGE_NAME"], a suffix is not added.
e.g.
map_series.exportToPDF("path/to/test.pdf", page_range_type="RANGE",page_range_string="1", multiple_files="PDF_MULTIPLE_FILES_PAGE_NUMBER")
# "path/to/test.pdf"
map_series.exportToPDF("path/to/test.pdf", page_range_type="RANGE",page_range_string="1,2", multiple_files="PDF_MULTIPLE_FILES_PAGE_NUMBER")
# "path/to/test_1.pdf"
# "path/to/test_2.pdf"
I can see this being considered expected behaviour, but it is problematic when batching multiple exports for dynamic ranges and inconsistent with the documentation:
- PDF_MULTIPLE_FILES_PAGE_NUMBER—Export each map series page to an individual file and append the page number to the file name. For example, Output.PDF will become Output_1.PDF
The simplest workaround, that I currently employ, is to specify the page twice, when the range is 1.