Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Win32::OLE Powerpoint ExportAsFixedFormat syntax help

by Generoso (Prior)
on Sep 29, 2011 at 22:40 UTC ( [id://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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://928679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found