AddFromPdf
内容
[
隐藏
]AddFromPdf(string)
从PDF文档创建幻灯片并将其添加到集合的末尾。
public ISlide[] AddFromPdf(string path)
参数 | 类型 | 描述 |
---|---|---|
path | String | PDF文档的路径 |
返回值
添加的幻灯片
示例
示例:
[C#]
using (Presentation pres = new Presentation())
{
pres.Slides.AddFromPdf("document.pdf");
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
另见
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(string, PdfImportOptions)
从PDF文档创建幻灯片并考虑PDF导入选项将其添加到集合的末尾。
public ISlide[] AddFromPdf(string path, PdfImportOptions pdfImportOptions)
参数 | 类型 | 描述 |
---|---|---|
path | String | PDF文档的路径 |
pdfImportOptions | PdfImportOptions | PDF导入选项 |
返回值
添加的幻灯片
示例
示例:
[C#]
using (Presentation pres = new Presentation())
{
pres.Slides.AddFromPdf("document.pdf, new PdfImportOptions { DetectTables = true });
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
另见
- interface ISlide
- class PdfImportOptions
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(Stream)
从PDF文档创建幻灯片并将其添加到集合的末尾。
public ISlide[] AddFromPdf(Stream pdfStream)
参数 | 类型 | 描述 |
---|---|---|
pdfStream | Stream | 将用作PDF文档源的流 |
返回值
添加的幻灯片
示例
示例:
[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);
}
另见
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(Stream, PdfImportOptions)
从PDF文档创建幻灯片并将其添加到集合的末尾。
public ISlide[] AddFromPdf(Stream pdfStream, PdfImportOptions pdfImportOptions)
参数 | 类型 | 描述 |
---|---|---|
pdfStream | Stream | 将用作PDF文档源的流 |
pdfImportOptions | PdfImportOptions | PDF导入选项 |
返回值
添加的幻灯片
示例
示例:
[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);
}
另见
- interface ISlide
- class PdfImportOptions
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides