import arcpy, os def prinnames(sPath): folderPath = sPath for filename in os.listdir(folderPath): fullpath = os.path.join(folderPath, filename) if os.path.isfile(fullpath): basename, extension = os.path.splitext(fullpath) if extension.lower() == ".mxd": mxd = arcpy.mapping.MapDocument(fullpath) print(basename + "v9") mxd.relativePaths = 'True' mxd.saveACopy(basename + "v9.mxd","9.0") else: prinnames(fullpath) prinnames('C:\Gareth\cityWork\CAPERMaps')
Are you saying that the original MXD does not have "use printer settings" checked on but when you call .saveACopy via arcpy.mapping and save the result out to a 9.3 doc, that setting somehow gets automatically checked and the output then uses those printer page sizes?
Talk about bringing up a discussion from the dead....
We just noticed this same issue with several mxds. We recently migrated to a new SQL server, and we ran a script to change the source for all of our old project files.
We are noticing that in MXDs where we have multiple data frames we are seeing this issue where the "Use Printer Paper Settings" option gets checked when using the mxd.save() function in Python.
Not much to do about it at this point, but I figured that I'd make a note and bring this back from the dead to see if anyone else is still seeing the same behavior