AddFromPdf
Inhalt
[
Ausblenden
]AddFromPdf(string)
Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu.
public ISlide[] AddFromPdf(string path)
Parameter | Typ | Beschreibung |
---|---|---|
path | String | Ein Pfad zum PDF-Dokument |
Rückgabewert
Hinzugefügte Folien
Beispiele
Beispiel:
[C#]
using (Presentation pres = new Presentation())
{
pres.Slides.AddFromPdf("document.pdf");
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
Siehe Auch
- interface ISlide
- interface ISlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(string, PdfImportOptions)
Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu, unter Berücksichtigung der PDF-Importoptionen.
public ISlide[] AddFromPdf(string path, PdfImportOptions pdfImportOptions)
Parameter | Typ | Beschreibung |
---|---|---|
path | String | Ein Pfad zum PDF-Dokument |
pdfImportOptions | PdfImportOptions | Optionen für den PDF-Import |
Rückgabewert
Hinzugefügte Folien
Beispiele
Beispiel:
[C#]
using (Presentation pres = new Presentation())
{
pres.Slides.AddFromPdf("document.pdf, new PdfImportOptions { DetectTables = true });
pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}
Siehe Auch
- interface ISlide
- class PdfImportOptions
- interface ISlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(Stream, PdfImportOptions)
Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu.
public ISlide[] AddFromPdf(Stream pdfStream, PdfImportOptions pdfImportOptions)
Parameter | Typ | Beschreibung |
---|---|---|
pdfStream | Stream | Ein Stream, der als Quelle für das PDF-Dokument verwendet wird |
pdfImportOptions | PdfImportOptions | Optionen für den PDF-Import |
Rückgabewert
Hinzugefügte Folien
Beispiele
Beispiel:
[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);
}
Siehe Auch
- interface ISlide
- class PdfImportOptions
- interface ISlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromPdf(Stream)
Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu.
public ISlide[] AddFromPdf(Stream pdfStream)
Parameter | Typ | Beschreibung |
---|---|---|
pdfStream | Stream | Ein Stream, der als Quelle für das PDF-Dokument verwendet wird |
Rückgabewert
Hinzugefügte Folien
Beispiele
Beispiel:
[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);
}
Siehe Auch
- interface ISlide
- interface ISlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides