Click or drag to resize
Pdf Library for .NET

PdfToPowerPoint Class

Pdf to PowerPoint Converter. This class offers the API needed to convert a pdf document to a PowerPoint presentation (pptx): a slide per page.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfToPowerPoint

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public class PdfToPowerPoint

The PdfToPowerPoint type exposes the following members.

Constructors
 NameDescription
Public methodPdfToPowerPointCreates a pdf to PowerPoint converter with the default options.
Top
Properties
 NameDescription
Public propertyOptionsGets the conversion options.
Top
Methods
 NameDescription
Public methodConvertBytesConverts a pdf held in memory.
Public methodConvertFileConverts a pdf file.
Public methodConvertStreamConverts a pdf read from a stream.
Top
Remarks

Every block of text becomes a text box at its place, with its paragraphs and runs in the document's fonts, sizes and colours; the page colour becomes the slide's background, boxes and rules shapes, images and vector art pictures, all where the pdf has them. The slides take the first page's size; a page of another size is scaled to fit and centred.

The conversion runs in-process.

Example
PdfToPowerPoint converter = new PdfToPowerPoint();
byte[] pptx = converter.ConvertFile("slides.pdf");
File.WriteAllBytes("slides.pptx", pptx);
See Also