Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Win32::OLE Powerpoint ExportAsFixedFormat syntax help

by Generoso (Parson)
on Sep 29, 2011 at 22:40 UTC ( #928679=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928679]
[shmem]: perl -e 'warn "test$/", ^@^ '
[Eily]: well, at least it's right about warn doing the same thing as die :)
[shmem]: same with undef as last element
[msh210]: oh, good point. It's the best kind of correct
[shmem]: msh210: but I'd not call it a lie outright. That's when you do know the truth.
[msh210]: I don't have sendmail (I'm on MS Windows), so does one of you think you can report the bug?
[shmem]: msh210: 'tis about time to tell the sad truth to perl5porters - via perlbug
[msh210]: probably whoever wrote that actually knows the truth
[shmem]: msh210: you can save the perlbug text in a file and send that via your mail agent of choice
[msh210]: hm, okay, I'll try, thanks

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2017-04-24 12:45 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (439 votes). Check out past polls.