AddFromPdf

AddFromPdf(string)

Creates slides from the PDF document and adds them to the end of the collection.

public ISlide[] AddFromPdf(string path)
Parameter Type Description
path String A path to the PDF document

Return Value

Added slides

Examples

Example:

[C#]
using (Presentation pres = new Presentation())
{
    pres.Slides.AddFromPdf("document.pdf");
    pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}

See Also


AddFromPdf(Stream)

Creates slides from the PDF document and adds them to the end of the collection.

public ISlide[] AddFromPdf(Stream pdfStream)
Parameter Type Description
pdfStream Stream A stream which will be used as a source of the PDF document

Return Value

Added slides

Examples

Example:

[C#]
using (Presentation pres = new Presentation())
{
    using (Stream stream = new FileStream("document.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
    {
        pres.Slides.AddFromPdf(stream);
    }
    
    pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}

See Also