Click or drag to resize

PowerPointToPdfArea Class

A PowerPoint presentation drawn in a header or footer: its first page (or the page PageRanges names), rendered once at the size of the area and drawn on every page that shows the band, with its links.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.HtmlToPdfPdfElement
    ExpertPdf.Anywhere.HtmlToPdfPowerPointToPdfArea

Namespace: ExpertPdf.Anywhere.HtmlToPdf
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class PowerPointToPdfArea : PdfElement

The PowerPointToPdfArea type exposes the following members.

Constructors
 NameDescription
Public methodPowerPointToPdfArea(Stream)Creates an area that shows a presentation read from a stream, filling the band from its top left corner.
Public methodPowerPointToPdfArea(String)Creates an area that shows a PowerPoint file, filling the band from its top left corner.
Public methodPowerPointToPdfArea(Single, Single, Stream)Creates an area that shows a presentation read from a stream, at a position in the band, to its right edge and bottom.
Public methodPowerPointToPdfArea(Single, Single, String)Creates an area that shows a PowerPoint file, at a position in the band, to its right edge and bottom.
Public methodPowerPointToPdfArea(Single, Single, Single, Single, Stream)Creates an area that shows a presentation read from a stream in a rectangle of the band.
Public methodPowerPointToPdfArea(Single, Single, Single, Single, String)Creates an area that shows a PowerPoint file in a rectangle of the band.
Top
Properties
 NameDescription
Public propertyEmbedCompleteFontsGets or sets whether whole fonts are embedded rather than the characters used. The default value is false.
Public propertyHeightGets or sets the height of the area, in points; 0 or less reaches the bottom of the band.
Public propertyInternalLinksEnabledGets or sets whether the presentation's links to places in itself are live. The default value is true.
Public propertyLiveUrlsEnabledGets or sets whether the presentation's web links are live in the area. The default value is true.
Public propertyOptimizeIdenticalImagesGets or sets whether identical pictures are stored once. The default value is true.
Public propertyPageRangesGets or sets the page of the rendered presentation the area shows, for example "2". The default is the first page.
Public propertyPasswordGets or sets the password that opens an encrypted presentation.
Public propertyPublishGets or sets what is drawn: the slides (the default), the notes pages or handout pages.
Public propertyShowHiddenSlidesGets or sets whether the hidden slides are drawn. The default value is false.
Public propertySlidesPerHandoutGets or sets how many slides a handout page holds: 1, 2, 3, 4, 6 (the default) or 9.
Public propertyWidthGets or sets the width of the area, in points; 0 or less reaches the right edge of the band.
Public propertyXGets or sets the X position of the area in the band, in points.
Public propertyYGets or sets the Y position of the area in the band, in points.
Top
Remarks

Add it to the header or footer of the HTML to PDF converter with AddPowerPointToPdfArea(PowerPointToPdfArea) / AddPowerPointToPdfArea(PowerPointToPdfArea).

The presentation is read from pptx, pptm, potx, potm, ppsx and ppsm files; the slide keeps its shape, scaled to the width of the area and cut at its height.

Example
PdfConverter pdfConverter = new PdfConverter();
pdfConverter.PdfDocumentOptions.ShowHeader = true;
pdfConverter.PdfHeaderOptions.HeaderHeight = 60;
pdfConverter.PdfHeaderOptions.AddPowerPointToPdfArea(new PowerPointToPdfArea(0, 0, "deck.pptx"));
byte[] pdf = pdfConverter.GetPdfBytesFromUrl("https://www.html-to-pdf.info");
See Also