here is my code…
#set area type of current export settings to all graphics
set properties of current export settings to {area type:all graphics, border amount:40}
#**********************************************************************
# Save as PNG, PDF ...
#**********************************************************************
set exportFile to theDirectory & "/" & activityCode & "_" & activityName & "_mtgLayout.png"
save front document in POSIX file exportFile
This used to create a pdf without any borders, but now I get this