I am trying to export my powerpoint slides to individual PDF documents (one document for each slide), but the .SaveToPdf function comes up with a warning that it is obsolete and I should use the .Save function (which will also work with 2007 decks). How do I rewrite the save I have below to work with the new Save method and export one slide at a time?
Dim pres As New Presentation(strFilename)
For i As Integer = 1 To pres.Slides.Count - 1
'Access a slide using its slide position
Dim oSlide As Slide = pres.GetSlideByPosition(1)
Dim iSlides(0) As Integer
iSlides(0) = i - 1
pres.SaveToPdf(sSlideThumbsPath & pptFileName & "_pdf" & i.ToString("000") & ".pdf", iSlides)