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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.