import os import arcpy file = r"somepath\pdf.pdf" if os.path.isfile(file): # exists - get a new name for the pdf file = arcpy.CreateUniqueName(file)
arcpy.env.overwriteOutput = True # or 1
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.