Guide for VB.NET
Core Document Formats
PowerPoint to PDF
Additional Features

VB.NET PowerPoint - Render PPT to PDF in VB.NET

How to Convert PowerPoint Slide to PDF Using VB.NET Code in .NET

Home > .NET Imaging SDK > VB.NET > PowerPoint: Render to PDF
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

This VB.NET PowerPoint to PDF conversion control add-on is an advanced and mature .NET component which is designed to help programmers convert a multi-slide .pptx document to separate PDF files or a multi-page PDF document. This VB.NET PowerPoint to PDF conversion tutorial will illustrate our effective PPT to PDF converting control SDK from following aspects.
Related .net document control helps: edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET sharepoint document viewer control: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
c# mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
c# excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser. view text file in browser: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET view tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
  • What VB.NET APIs can I use to convert PowerPoint slide to PDF document file?
  • What VB.NET demo code can I use for fast PPT (.pptx) to PDF conversion in .NET class application?
  • What are the features of this VB.NET PowerPoint to PDF converting control component?
Converting APIs
The whole VB.NET PowerPoint to PDF converting process consists of two main parts: rendering PowerPoint slide(s) to image source and converting rendered image source to PDF document file.
Following VB.NET APIs are used to render selected PowerPoint slide(s) into image source. If you want to create a featured PPTX to PDF converting application, you may need other VB.NET APIs to customize PPT (.pptx) to image rendering settings, like image resolution, scaling factor and bit depth.
Private Function GetPage(pageIndex As Integer) As BasePage Implements PPTXDocument.GetPage
End Function
Private Function toImage() As BaseImage Implements PPTXPage.toImage
End Function
Private Function toImage(height As Integer, width As Integer) As BaseImage Implements PPTXPage.toImage
End Function
Using the VB.NET API below, you can directly encode converted image source into PDF document file which may be stored in the PC files as .pdf format or be saved in web server as memory stream. Apart from the function to save converted image source to PDF format, RasterEdge VB.ENT PowerPoint conversion library add-on also offers other encoding APIs to convert rendered image source to bitmap, svg, tiff, jpeg, gif, png & jbig2 image formats.
Private Sub SaveImageFile(image As REImage, filePath As [String]) Implements REFile.SaveImageFile
End Sub
API Explanations: to solve your possible confusions in understanding above VB.NET PowerPoint to PDF converting & rendering APIs, we will introduce some programming classes and methods here.
  • PPTXDocument: within this VB.NET PowerPoint to PDF converting control add-on, there is a self-defined programming class to represent one PowerPoint document file, that is, PPTXDcoument. Once a .pptx document is decoded into VB.NET class application, this class will create a PPTXDocument object to represent it.
  • PPTXPage: for a better displaying purpose, we regard a PowerPoint slide as a page. And a PPTXPage instance represents one slide of PPTXDocument object.
  • GetPage: this VB.NET programming method is used for developers to select desired slide of PPTXDocument object.
  • toImage: using this method, VB.NET programmers can easily render selected PowerPoint slide into one RasterEdge self-defined image object REImage. To view detailed guidance, please read this VB.NET PowerPoint to REImage converting tutorial page.
VB.NET Demo Code
Using this VB.NET PowerPoint to PDF converting demo code below, you can easily convert all slides of source PowerPoint document into a multi-page PDF file. Of course, you are also allowed to convert one certain PowerPoint slide or a specified range of slides into .pdf document format using this VB.NET PowerPoint to PDF conversion library add-on.
''' <summary>
''' Convert PPTXDocument to PDF
''' </summary>
''' </param>
''' <returns></returns>
Public Function CovertPPTXDocumenttoPDF(PowerPointFilePath As [String]) As PDFDocument
Dim doc As New PPTXDocument(PowerPointFilePath)

Dim imgSource As New List(Of REImage)()

For i As Integer = 0 To doc.GetPageCount() - 1
Dim page As PPTXPage = DirectCast(doc.GetPage(i), PPTXPage)

Dim temp As REImage = DirectCast(page.ToImage(), REImage)
If temp IsNot Nothing Then
End If
' create PDFDocument with image source
Return New PDFDocument(imgSource)
End Function
Why to Choose
In this section, we list the main features of this VB.NET PowerPoint to PDF conversion library plug-in. Note: in the process of VB.NET PPTX to PDF conversion, both VB.NET PowerPoint reading add-on and VB.NET PDF editing add-on will be used.

Support Multiple .NET Framework Versions

Written in managed C# code, this VB.NET PowerPoint to PDF converting control add-on is fully compatible with .NET Framework 2.0, 3.0, 3.5, 4.0 & 4.5.

Able to Convert PowerPoint to PDF File Using C# Code

Convert PPTX File Without Using Other PowerPoint Processing Products

As our VB.NET PowerPoint to PDF conversion add-on owns advanced APIs that can process and edit .pptx document file independently, no other external PowerPoint manipulating controls, like Microsoft Excel product, are required.

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster