golemwashere has asked for the wisdom of the Perl Monks concerning the following question:

Hello people, I am fighting with the syntax for ExportAsFixedFormat using powerpoint in OLE in perl. I tried something as
my $ppoint = Win32::OLE->new('PowerPoint.Application', 'Quit'); my $Presentation = $ppoint->Presentations->Open("$infile") || die("Una +ble to open document ", Win32::OLE->LastError()) ; $Presentation->ExportAsFixedFormat("$outfile", 'ppFixedFormatTypePDF', + 'ppFixedFormatIntentPrint', "msoCTrue", "ppPrintHandoutHorizontalFir +st", "ppPrintOutputFourSlideHandouts", "msoFalse", "", "" , "", "Fals +e", "False", "False", "False", "False");

but no luck (exporting as jpgs with $Presentation->Export works fine)

can someone help me? G.

Replies are listed 'Best First'.
Re: Win32::OLE Powerpoint ExportAsFixedFormat syntax help
by Generoso (Prior) on Sep 29, 2011 at 22:40 UTC

    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.

      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).