I'm trying to convert a bunch of Visio files to pdf in python. I have referenced this .doc to pdf using python and written the following code:
import comtypes.client as coms
format=17
visio = coms.CreateObject('Visio.Application')
doc = visio.Documents.Open('map.vsd')
doc.SaveAs('map.pdf', FileFormat=format)
gives me a TypeError: call takes exactly 2 arguments (3 given)
I've been Googling and can't find the reference on how to print to pdf in Visio using python.