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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.