Considering that there is no iWork installed and there is no "Preview.pdf" in the pages file package, how do I:

convert the pages document to PDF from command line?

I can open the pages document using Preview from command line using this command: "open -a Preview somedocument.pages"

But I don't know how to print that pages document to pdf from command line. I need to do it from command line not from the Preview GUI.

Many thanks before

migrated from stackoverflow.com Mar 6 '13 at 1:50

This question came from our site for professional and enthusiast programmers.


I don't believe Preview.app supports a variety of command line arguments; there is probably no way to do this directly from the command line.

You would likely be able to accomplish something along these lines via Automator, though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy