Use a PDF Document

Introduction

The following method allows you to create a PowerPoint presentation from a PDF document. This method can also be used to append a PDF document to an existing presentation.

API Information

API Type Description Resource
/slides/{name}/fromPdf POST Creates a new presentation from a PDF document. ImportFromPdf

Request Parameters

Name Type Location Required Description
name string path true The file name of the new presentation or existing one.
pdf file formData true The input data of a PDF document.
options PdfImportOptions header false PDF import options.
password string header false The password to open the presentation.
folder string query false The folder path where the presentation is located.
storage string query false The storage name where the presentation is located.

Import Options

Represents PDF import options.

Property Name Type Description
DetectTables bool true to detect tables

cURL Examples

Create a new presentation Data/summary.pptx in a Main storage from a PDF document report.pdf.

SDK Examples

Create a new presentation Data/summary.pptx in a Main storage from a PDF document report.pdf.

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.