We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to convert a PDF or XPS document to PowerPoint presentation?

Platform: ASP.NET MVC |
Control: Presentation |
Published Date: December 19, 2015 |
Last Revised Date: December 19, 2015

PDF to PowerPoint presentation conversion

The Essential Presentation library do not have a direct support for converting a PDF document to PowerPoint presentation. However you can achieve this using Essential Presentation library and Essential PdfViewer control.

The conversion process includes the below steps.

  1. Convert the PDF pages into images using Essential PdfViewer control.
  2. Insert the exported images in the PowerPoint slides using Essential Presentation library.

Limitation:

Since the converted presentation only have the images of PDF pages, you cannot select or modify the content in the converted presentation.

The below assemblies are needed to compile the below code examples.

  1. Syncfusion.Compression.Base.dll
  2. Syncfusion.Presentation.Base.dll
  3. Syncfusion.Pdf.Base.dll
  4. Syncfusion.PdfViewer.Windows.dll

The below code example demonstrates exporting the images from a PDF document using PDFViewer control.

 

 

 

 

 

 

 

The below code example demonstrates adding the exported images to the Presentation slides using the Essential Presentation APIs.

 

XPS to PowerPoint presentation conversion

You can also convert a XPS document to PowerPoint presentation by converting the XPS document to PDF document and then converting the PDF document to PowerPoint presentation as explained above.

The below code example demonstrates how to convert the XPS document to PDF document.

//Create an instance of XPSToPdfConvertor

XPSToPdfConverter converter = new XPSToPdfConverter();

//Convert the XPS document to PDF document

PdfDocument document converter.Convert(txtFile.Tag.ToString());

//Save the PDF document

document.Save("PdfDocument.pdf");

 

You can find the complete sample here.

 

 

 

2X faster development

The ultimate ASP.NET MVC UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon