Convert PowerPoint PPT and PPTX to PDF

How to Convert PPT to PDF Online

You can use our free PowerPoint Online Converter to convert PPT or PPTX files to PDF quickly.

Go through these steps:

  1. Go to our PowerPoint Online Converter page.

  2. Click Drop or upload your files.

  3. Select the PPT or PPTX file you want to convert on your computer.

  4. Click Convert.

  5. Click DOWNLOAD NOW.

    Your browser now saves the converted file.

PowerPoint to PDF Conversion in .NET

Aspose.Slides allows you to convert files in PowerPoint PPT, PPTX, and OpenOffice ODP formats to PDF. 

To convert a presentation to PDF, simply pass the file name and save format to the Presentation.Save method. The Presentation class exposes the Save method that can be called to convert the whole PPT, PPTX, or ODP presentation into a PDF document. The PdfOptions class provides options for creating the PDF such as JpegQuality, TextCompression, Compliance, and others. These options can be used to get the desired standard in a PDF.

Note: Aspose.Slides for .NET directly writes the information about API and Version Number in output documents. For example, when rendering Document to PDF, Aspose.Slides for .NET populates the Application field with the value ‘Aspose.Slides’ and the PDF Producer field with a value, e.g. ‘Aspose.Slides v 17.10’. Please note that you cannot instruct Aspose.Slides for .NET to change or remove this information from output Documents.

Accessibility and Compliance Standards for PDF

With Aspose.Slides, you can use a conversion procedure that complies with Web Content Accessibility Guidelines (WCAG).

When converting a PPT document to PDF, Aspose.Slides allows you to export a PPT document to the PDF format using any of these compliance standards: PDF/A1a, PDF/A1b, and PDF/UA.

This sample code shows you how to specify your preferred PDF compliance standard when converting PPT to PDF:

using (Presentation pres = new Presentation("pres.pptx"))
{
    pres.Save("pres-a1a-compliance.pdf", SaveFormat.Pdf, new PdfOptions()
    {
        Compliance = PdfCompliance.PdfA1a
    });
   
    pres.Save("pres-a1b-compliance.pdf", SaveFormat.Pdf, new PdfOptions()
    {
        Compliance = PdfCompliance.PdfA1b
    });
   
    pres.Save("pres-ua-compliance.pdf", SaveFormat.Pdf, new PdfOptions()
   {
        Compliance = PdfCompliance.PdfUa
    });
}

Aspose.Slides for .NET typically exports the presentation documents to PDF and makes it as similar as possible to the original presentation document. Aspose.Slides renders most elements in a presentation when converting it to PDF:

  • Images, Text Boxes, and other Shapes
  • Text and Formatting
  • Paragraphs and Formatting
  • Hyperlinks
  • Headers and Footers
  • Bullets
  • Tables

PPT to PDF Conversion Process Options

Aspose.Slides for .NET allows you to customize the presentation to PDF export with different options explained in this topic.

With Aspose.Slides, you can use these options for PPT(X) to PDF conversion in a flexible way:

  • Convert the whole PPT(X) presentation to PDF.
  • Convert separate slides of PPT(X) to PDF.
  • Convert PPT(X) to PDF with default settings. To help you simplify PPT(X) to PDF conversion process, Aspose.Slides chooses the optimal conversion settings required to define them all.
  • Convert PPT(X) to PDF with custom settings. Change PDF file standard, set text compression level, choose the quality of JPEG images inside PDF document.
  • Convert PPT(X) to PDF with hidden slides included.
  • Set access permissions of the resulting PDF document. For example, you may convert PPT(X) to a password-protected PDF. This way, you can easily protect the resulting PDF document to prevent people from copying and editing it.
  • Convert PPT(X) to PDF with speaker notes included. Additionally, you can define how speaker notes must be rendered into PDF.
  • Convert PPT(X) to PDF with comments included. You can also define comments rendering rules.
  • Export presentation metafiles to PNGs, while converting PPT(X) to PDF.
  • Choose font settings of PPT(X) to PDF conversion process. The API allows you to save the original fonts of the presentation during conversion. Otherwise, you can opt to define substitution fonts and rules. 

Aspose.Slides allows you to convert PPT(X) presentations to PDF document without loss in quality:

Input PPT:

todo:image_alt_text

** 

** 

Output PDF:

todo:image_alt_text**

Convert PowerPoint to PDF with Default Options

The following example shows you how to convert a PowerPoint PPT, PPTX, and OpenOffice ODP document into a PDF document using the default options. The default options create a PDF document at the maximum quality levels

// Instantiate a Presentation object that represents a PPT file
Presentation presentation = new Presentation("PowerPoint.ppt");

// Save the presentation as PDF
presentation.Save("PPT-to-PDF.pdf", SaveFormat.Pdf);

Convert PowerPoint to PDF with Custom Options

The following example shows you how to convert PowerPoint PPT, PPTX and OpenOffice ODP into a PDF document with customized options provided by the PdfOptions class. It sets the JPEG quality, saves metafiles to PNG, sets text compression level with PdfTextCompression enumeration and sets PDF standard.

// Instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PowerPoint.pptx");

// Instantiate the PdfOptions class
PdfOptions pdfOptions = new PdfOptions();

// Set Jpeg quality
pdfOptions.JpegQuality = 90;

// Set behavior for metafiles
pdfOptions.SaveMetafilesAsPng = true;

// Set text compression level
pdfOptions.TextCompression = PdfTextCompression.Flate;

// Define the PDF standard
pdfOptions.Compliance = PdfCompliance.Pdf15;

// Save the presentation as PDF
presentation.Save("PowerPoint-to-PDF.pdf", SaveFormat.Pdf, pdfOptions);

Convert PowerPoint to PDF with Hidden Slides Included

The following example shows how to convert a PowerPoint PPT, PPTX and OpenOffice ODP file into a PDF document with hidden slides included as provided by the PdfOptions class. You can also include comments in generated HTML by using PdfOptions class.  It sets the ShowHiddenSlides property to generate PDF with hidden slides. Property ShowHiddenSlides has been added to IHtmlOptions, IPdfOption, ISwfOptions, ITiffOptions, IXpsOption interfaces and HtmlOptions, PdfOption, SwfOptions, TiffOptions, XpsOption classes. This property specifies whether the exported document should include hidden slides or not. Default value is “false”.

// Instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PowerPoint.pptx");

// Instantiate the PdfOptions class
PdfOptions pdfOptions = new PdfOptions();

// Include hidden slides
pdfOptions.ShowHiddenSlides = true;

// Save the presentation as PDF
presentation.Save("PowerPoint-to-PDF.pdf", SaveFormat.Pdf, pdfOptions);

Convert PowerPoint to Password Protected PDF

The following example shows you how to convert a presentation to a password-protected PDF document with customized options provided by the PdfOptions class.

// Instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PowerPoint.pptx");

/// Instantiate the PdfOptions class
PdfOptions pdfOptions = new PdfOptions();

// Setting PDF password and access permissions
pdfOptions.Password = "password";
pdfOptions.AccessPermissions = PdfAccessPermissions.PrintDocument | PdfAccessPermissions.HighQualityPrint;

// Save the presentation as PDF
presentation.Save("PPTX-to-PDF.pdf", SaveFormat.Pdf, pdfOptions);

Convert Selected Slides of PowerPoint to PDF

The following example shows you how to convert a specific presentation slide to a PDF document with custom options.

// Instantiate a Presentation object that represents a PPTX file
Presentation presentation = new Presentation("PowerPoint.pptx");

// Setting array of slides positions
int[] slides = { 1, 3 };

// Save the presentation as PDF
presentation.Save("PPTX-to-PDF.pdf", slides, SaveFormat.Pdf);

Convert PowerPoint to PDF with Custom Slide Size

The following example shows you how to convert a presentation to a PDF notes document with custom slide size. Here, each inch equals 72.

// Instantiate a Presentation object that represents a presentation file 
Presentation presentation = new Presentation("SelectedSlides.pptx");
Presentation auxPresentation = new Presentation();

ISlide slide = presentation.Slides[0];

auxPresentation.Slides.InsertClone(0, slide);

// Setting Slide Type and Size 
//auxPresentation.SlideSize.SetSize(presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height,SlideSizeScaleType.EnsureFit);
auxPresentation.SlideSize.SetSize(612F, 792F,SlideSizeScaleType.EnsureFit);


PdfOptions pdfOptions = new PdfOptions();
INotesCommentsLayoutingOptions options = pdfOptions.NotesCommentsLayouting;
options.NotesPosition = NotesPositions.BottomFull;



auxPresentation.Save("PDFnotes_out.pdf", SaveFormat.Pdf, pdfOptions);

Convert PowerPoint to PDF in Notes Slide View

The Save method exposed by Presentation class can be used to convert the whole presentation in Notes Slide view to PDF. Saving a Microsoft PowerPoint presentation to PDF notes with Aspose.Slides for .NET is a two-line process. First, you open the presentation. Second, you save it out to PDF notes. The code snippet below updates the sample presentation to PDF in Notes Slide view.

// Instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation("NotesFile.pptx"))
{
	PdfOptions pdfOptions = new PdfOptions();
	INotesCommentsLayoutingOptions options = pdfOptions.NotesCommentsLayouting;
	options.NotesPosition = NotesPositions.BottomFull;

	// Save the presentation to PDF notes
	presentation.Save("Pdf_Notes_out.tiff", SaveFormat.Pdf, pdfOptions);
}