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

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.

답변 (2개)

Rony
Rony 2016년 4월 25일

0 개 추천

Any help over here is highly appreciated :)
Walter Roberson
Walter Roberson 2016년 4월 25일

0 개 추천

applescript to drive Excel's Save to PDF ?

댓글 수: 3

I want to write a script in matlab to automatically save excel file as pdf file format. I know how to do this on windows, but I am trying to do this now on Mac and I didn't find any solution so far
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
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?

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2016년 4월 23일

댓글:

2016년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by