in reply to Win32::OLE Powerpoint ExportAsFixedFormat syntax help

Power pointy to convert a ppt file to jpg, you have to do a "save as". I am not sure there is an export in PowerPoint.

Hope this was useful.

  • Comment on Re: Win32::OLE Powerpoint ExportAsFixedFormat syntax help

Replies are listed 'Best First'.
Re^2: Win32::OLE Powerpoint ExportAsFixedFormat syntax help
by golemwashere (Acolyte) on Sep 30, 2011 at 07:02 UTC
    powerpoint from office 2007 can also export in pdf but the function to do that is pretty complex: cfr
    http://msdn.microsoft.com/en-us/library/bb231096%28v=office.12%29.aspx
    I would like some help with someone that has used this in perl and Win32::OLE Ciao G.
      I solved using $Presentation->SaveAs("$outfile", 32);

      it was tricky finding that 32 = pdf format and also $outfile needed foward slashes : / in path (with \ I got confusing errors).

        Just to add my little contribution
        use Win32::OLE::Const 'Microsoft PowerPoint'; $Presentation->SaveAs("$outfile", ppSaveAsPDF, 1);
        HIH