AddFromPdf

AddFromPdf(string)

Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu.

public ISlide[] AddFromPdf(string path)
ParameterTypBeschreibung
pathStringEin 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


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)
ParameterTypBeschreibung
pathStringEin Pfad zum PDF-Dokument
pdfImportOptionsPdfImportOptionsOptionen 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


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)
ParameterTypBeschreibung
pdfStreamStreamEin Stream, der als Quelle für das PDF-Dokument verwendet wird
pdfImportOptionsPdfImportOptionsOptionen 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


AddFromPdf(Stream)

Erstellt Folien aus dem PDF-Dokument und fügt sie am Ende der Sammlung hinzu.

public ISlide[] AddFromPdf(Stream pdfStream)
ParameterTypBeschreibung
pdfStreamStreamEin 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