# 2 lines below would not close adobe reader and locked ArcMap. # Open command line in a different process other than ArcMap # See what the command line will look like before execution #print('variable acroread is : ' '''.format(acroread,pdf) Pdf = 'Place the path to your pdf here.pdf'ĪcroRD32Path = winreg.QueryValue(winreg.HKEY_CLASSES_ROOT,'Software\\Adobe\\Acrobat\Exe') # This is where you would specify the path to your pdf Thank you for your contribution and sharing your code! In our case we were automating a report using an *.rlf file and exporting it to a pdf, we needed a way to print both a map and the report which is what the below was doing. I still had problems with ArcMap locking when the pdf was open and had to manually kill the adobe process in task manager to free up ArcMap so I issued a simple command to kill the process after 5 seconds allowing adobe reader to open the document, and send the pdf to the print spool. This led me to look for a more dynamic way of handling this so I thought I would share my findings if anyone should come across your post. The hard part for me was hard coding the path for adobe as it is not that flexible and would require each machine to be at the same level of Adobe Reader. Your example certainly helped me in getting started.