Add ppt2eps tool set.
3 If WScript.Arguments.Count <> 2 then
6 filein = WScript.Arguments.item(0)
7 fileout = WScript.Arguments.item(1)
11 Set pptApp = Wscript.CreateObject("PowerPoint.Application")
13 Set pptPres = pptApp.Presentations.Open(filein)
15 With pptPres.PrintOptions
16 .RangeType = ppPrintAll
18 .PrintHiddenSlides = msoTrue
19 .PrintColorType = ppPrintColor
21 .FrameSlides = msoFalse
22 .ActivePrinter = "Generic PostScript Writer"
23 .PrintInBackground = False
25 pptPres.PrintOut , , fileout
29 For i = 1 To pptPres.Slides.Count
30 Wscript.StdErr.Write "Processing slide " & i & "... "
31 note = pptPres.Slides(i).NotesPage.Shapes(2).TextFrame.TextRange
32 WScript.StdOut.WriteLine note
33 WScript.StdOut.WriteLine Chr(12)
34 If InStr(note, "@file=") > 0 Then
35 pptPres.Slides(i).Export filein & ".tmp_slide" & i & ".png", "PNG"
37 Wscript.StdErr.WriteLine "done"