SaveAs PDF not scriptable

You can use python to script exporting to pdf.