Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting ClipArt and Pictures from Powerpoint
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00617048
Message ID:
00617557
Views:
23
OK,

I've got a solution that's workable.

In Powerpoint 2000, if you save a presentation as a web page, it generates the following (assuming I said save it as a web page called test.htm):

1. An HTM file called *pagename*.htm (test.htm) that is a "viewer" of the presentation
2. A directory called *pagename*_files - in my example "test_files"
3. The directory contains HTM files representing each page in the presentation
4. The directory contains image files, all named for the page that the slide is on: ex. if there is an image on page 2 and it was a jpg, there is a file called slide0002_image001.jpg.
5. There's even several XML files that drive the presentation, one of which is filelist.xml, which surprisingly (g) contains a list of the files in the presentation.

So although a bit messy (export a lot, just to get the pictures), it will get the job done.

Anyone who figures out an easier way - please let me know,

Thanks,
Rick


Rick

>Hi,
>
>I am trying to parse powerpoint presentations. I can get at the slides and the text just fine.
>
>I want to be able to save embedded pictures and clipart to files. While powerpoint tells you whether a shape on a slide is a picture or clipart, and it allows you to add these things to a slide (AddPicture, AddOLEObject, etc.) it has no SavePicture.
>
>Has anyone done anything like this?
>
>When trying to get at clipart pictures I use the Shape.OLEFormat object to get at the information about the object, like ProgId, and action verbs, but the only action verbs of MS_CLipArt_Gallery.2 is "Replace," and I dont know what parameters I would need to call it.
>
>They are embedded in the powerpoint, I'm surprised that there's not a simple way to get them out.
>
>I already have the Office Automation book from Hentzenwerke - it's great, but it doesnt cover this.
>
>Thanks,
>Rick
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform