AddFromPdf
Contents
[
Hide
]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
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(string, PdfImportOptions)
Creates slides from the PDF document and adds them to the end of the collection considering the pdf import options.
public ISlide[] AddFromPdf(string path, PdfImportOptions pdfImportOptions)
Parameter | Type | Description |
---|---|---|
path | String | A path to the PDF document |
pdfImportOptions | PdfImportOptions | Options for pdf import |
Return Value
Added slides
Examples
Example:
[C#]
using (Presentation pres = new Presentation())
{
pres.Slides.AddFromPdf("document.pdf, new PdfImportOptions { DetectTables = true });
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
See Also
- interface ISlide
- class PdfImportOptions
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
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
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(Stream, PdfImportOptions)
Creates slides from the PDF document and adds them to the end of the collection.
public ISlide[] AddFromPdf(Stream pdfStream, PdfImportOptions pdfImportOptions)
Parameter | Type | Description |
---|---|---|
pdfStream | Stream | A stream which will be used as a source of the PDF document |
pdfImportOptions | PdfImportOptions | Options for pdf import |
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, new PdfImportOptions { DetectTables = true });
}
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
See Also
- interface ISlide
- class PdfImportOptions
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides