How to save one slide into pdf?

Hi,support:

By using PPT.save(PdfFilename,SaveFormat.pdf), it save all the slides into one multpage pdf.
Now I only it save one slide (e.g: PPT.Slides(5)) into one-page pdf, how to get it?
I know one method is that taking the slide out as a new PPTPresention, and then save it as pdf to get one page pdf.
Is there any better method to save each slide as separate pdf?

Thanks for your help!

@ducaisoft,

Please visit this documentation link for your convenience. You need to select individual slide numbers in a loop and saving them independently to PDF using shared code sample.