Click or drag to resize

PowerPointToPdfElement Class

A PowerPoint presentation drawn into a page region, the PowerPoint counterpart of WordToPdfElement.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PdfDocumentPageElement
    ExpertPdf.Anywhere.PdfDocumentPageGraphicElement
      ExpertPdf.Anywhere.PdfDocumentPowerPointToPdfElement

Namespace: ExpertPdf.Anywhere.PdfDocument
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public sealed class PowerPointToPdfElement : PageGraphicElement

The PowerPointToPdfElement type exposes the following members.

Constructors
 NameDescription
Public methodPowerPointToPdfElement(Stream)Creates an element that draws a presentation read from a stream from the top left corner of the page.
Public methodPowerPointToPdfElement(String)Creates an element that draws a PowerPoint file from the top left corner of the page.
Public methodPowerPointToPdfElement(Single, Single, Stream)Creates an element that draws a presentation read from a stream at a position on the page.
Public methodPowerPointToPdfElement(Single, Single, String)Creates an element that draws a PowerPoint file at a position on the page.
Public methodPowerPointToPdfElement(Single, Single, Single, Stream)Creates an element that draws a presentation read from a stream at a position with a width.
Public methodPowerPointToPdfElement(Single, Single, Single, String)Creates an element that draws a PowerPoint file at a position with a width.
Public methodPowerPointToPdfElement(Single, Single, Single, Single, Stream)Creates an element that draws a presentation read from a stream in a rectangle.
Public methodPowerPointToPdfElement(Single, Single, Single, Single, String)Creates an element that draws a PowerPoint file in a rectangle.
Top
Properties
 NameDescription
Public propertyActualText Gets or sets the exact text this element stands for in a tagged document, when its content does not spell it (text drawn as an image or with an unusual font, for example). The default value is null.
(Inherited from PageElement)
Public propertyAlternateText Gets or sets the alternate description of this element in a tagged document, read by assistive technology instead of the content - the description of a figure, for example. PDF/UA requires it for figures. The default value is null.
(Inherited from PageElement)
Public propertyArtifact Gets or sets whether this element is decorative in a tagged document: it is marked as an artifact (a background, a rule, a running header) and left out of the logical structure. The default value is false.
(Inherited from PageElement)
Public propertyBackColor Gets or sets the element background color.
(Inherited from PageGraphicElement)
Public propertyBlending Gets or sets the blending mode for the transparent rendering of the element.
(Inherited from PageGraphicElement)
Public propertyColorSpace Gets or sets the color space the element colors are written in: RGB (the default), CMYK or grayscale.
(Inherited from PageGraphicElement)
Public propertyEmbedCompleteFontsGets or sets whether whole fonts are embedded rather than the characters used. The default value is false.
Public propertyForeColor Gets or sets the element foreground color.
(Inherited from PageGraphicElement)
Public propertyGradient Gets or sets the gradient used to fill a shape.
(Inherited from PageGraphicElement)
Public propertyHeightGets or sets the height, in points; -1 to flow onto the pages that follow.
Public propertyInternalLinksEnabledGets or sets whether the presentation's links to places in itself are live. The default value is true.
Public propertyLineStyle Gets or sets the line style of the elements that render lines.
(Inherited from PageGraphicElement)
Public propertyLiveUrlsEnabledGets or sets whether the presentation's web links are live. 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 pages of the rendered presentation drawn, for example "1-3". The default is every page.
Public propertyPasswordGets or sets the password that opens an encrypted presentation.
Public propertyPdfPagesRectangles Gets where each slice of the presentation was drawn, after the element is added to a page: one rectangle per page it covers, in that page's coordinates.
Public propertyPublishGets or sets what is drawn: the slides (the default), the notes pages or handout pages. A region that carries its structure into a tagged document shows the slides only.
Public propertyRotated Gets whether the element is rotated (Rotate was called with a non-zero angle).
(Inherited from PageGraphicElement)
Public propertyScaled Gets whether the element is scaled (Scale was called with a factor other than 1).
(Inherited from PageGraphicElement)
Public propertyShowHiddenSlidesGets or sets whether the hidden slides are drawn. The default value is false.
Public propertySkewed Gets whether the element is skewed (Skew was called with a non-zero angle).
(Inherited from PageGraphicElement)
Public propertySlidesPerHandoutGets or sets how many slides a handout page holds: 1, 2, 3, 4, 6 (the default) or 9.
Public propertyTagged Gets or sets whether the region carries the presentation's structure into a tagged document. The default value is false; in a tagged document the region is tagged even when it is false, unless it is an Artifact.
Public propertyTagType Gets or sets the structure type of this element in a tagged document (a heading, a paragraph, a figure and so on). Every element added to a tagged document must have a tag type or be an Artifact. Ignored in a document that is not tagged. The default value is null.
(Inherited from PageElement)
Public propertyTranslated Gets whether the element is translated (Translate was called with a non-zero offset).
(Inherited from PageGraphicElement)
Public propertyTransparency Gets or sets the element transparency, as a value between 0 and 100: 0 means completely transparent and 100 completely opaque. The default value is 100.
(Inherited from PageGraphicElement)
Public propertyWidthGets or sets the width, in points; -1 for the room left on the page.
Public propertyXGets or sets the X position, in points.
Public propertyYGets or sets the Y position, in points.
Top
Methods
 NameDescription
Public methodRotate Rotates the coordinate system axes clockwise by the specified angle before rendering the element. The coordinates of the element are relative to the rotated coordinates system.
(Inherited from PageGraphicElement)
Public methodScale Scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system.
(Inherited from PageGraphicElement)
Public methodSkew Skews the x axis by an skewXAngle and the y axis by an skewYAngle before rendering the element.
(Inherited from PageGraphicElement)
Public methodTranslate Translates the coordinate system before rendering the element. The coordinates of the element are relative to the translated coordinate system.
(Inherited from PageGraphicElement)
Top
Remarks

With an automatic height (-1, the default) the presentation flows from the element's position onto the pages that follow, adding pages when the document has none left; with a fixed height it is drawn in that box and continues on the next pages until that much height is drawn. The width defaults to the room left on the page. The presentation is read from pptx, pptm, potx, potm, ppsx and ppsm files. Each rendered page - a slide, a notes page or a handout page - keeps its shape, scaled to the element's width.

Its links stay live and the slides' titles become entries of the document outline. PdfPagesRectangles reports where each slice was drawn. In a tagged document the region carries the presentation's structure when Tagged is set; in a template it must be decorative (Artifact).

Example
Document document = new Document();
PdfPage page = document.AddPage();
page.AddElement(new PowerPointToPdfElement(0, 0, "deck.pptx"));
document.Save("result.pdf");
See Also