Save Powerpoint as PDF

10 ビュー (過去 30 日間)
Tobias Litherland
Tobias Litherland 2012 年 11 月 19 日
コメント済み: Cel Kulasekaran 2016 年 2 月 20 日
Hi
I have an automatically genareted PowerPoint presentation using ActiveX controls from MatLab. The presentation needs to be automatically saved as a Pdf.
I have tried
Presentation.ExportAsFixedFormat('C:\folder\ExamplePresentation.pdf','ppFixedFormatTypePDF')
but I don't know how to pass the input argument ''ppFixedFormatTypePDF'' correctly.
Any knowledge of input arguments in ActiveX will be appreciated.
Edit: I have also tried
Presentation.ExportAsFixedFormat('C:\folder\ExamplePresentation.pdf',int32(2))
  1 件のコメント
Cel Kulasekaran
Cel Kulasekaran 2016 年 2 月 20 日
The documentation on the ActiveX is a little misleading for this.
I found this works. I am using Matlab 2014b with PowerPoint 2013. The enumeration value for PDF is 32. This enumeration value may differ for other PowerPoint versions.
Presentation.SaveAs(fileName, 32);

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by