Well... you need something that
- understand the iWork file formats,
- can render the documents to then create the PDF.
Unless you want to re-invent the iWork suite... Sounds simpler to just tell the iWork apps what you want from them.
You would do that via the Scripting Bridge
I would use Applescript, but perhaps you can use Ruby and Python with the Scripting Bridge to accomplish what you need
With Scripting Bridge, RubyCocoa and PyObjC scripts can do what AppleScript scripts can do: control scriptable applications and exchange data with them.
Eu não uso a Ponte de Scripts há algum tempo, mas acredito que você pode diga aos aplicativos para imprimir documentos. E qualquer aplicativo que possa imprimir no OS X pode enviá-lo para PDF.
A resposta foi encontrada aqui, link .