How to save an excel file as PDF through Matlab on Mac?

4 vues (au cours des 30 derniers jours)
Rony
Rony le 23 Avr 2016
Commenté : Rony le 27 Avr 2016
Hello,
I am a Mac user, I want to use matlab to write data in excel and then I want to save the excel file as PDF file format. I was able to do this on Windows using actxserver, but unfortunately this function doesn't work for Mac. Does anyone have a solution for saving an excel file as PDF file format?
Thank you in advance.

Réponses (2)

Rony
Rony le 25 Avr 2016
Any help over here is highly appreciated :)

Walter Roberson
Walter Roberson le 25 Avr 2016
applescript to drive Excel's Save to PDF ?
  3 commentaires
Walter Roberson
Walter Roberson le 25 Avr 2016
You can use MATLAB to invoke Applescript to tell Excel to do something. See http://www.mathworks.com/matlabcentral/answers/114020-running-applescript-from-matlab
Rony
Rony le 27 Avr 2016
Thanks Walter, I read your answer there and I understand that we need to use the function "System", but do you have any idea what should be the command in System to save the file as pdf?

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by