I am trying to open a pdf file, print the file, and close Adobe Acrobat in Python 2.7.
import os
fd = os.startfile("temp.pdf", "print")
os.close(fd)
After running the code, I get the following error on the os.close(fd)
line:
TypeError: an integer is required