API Reference

Cmdlet

New-OfficePowerPointPdfOptions

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.PowerPoint.Pdf.PowerPointPdfSaveOptions

Creates discoverable PowerPoint-to-PDF conversion options for Export-OfficeDocumentPdf.

Remarks

Creates discoverable PowerPoint-to-PDF conversion options for Export-OfficeDocumentPdf.

Examples

Authored help example

Create a handout PDF with notes and hidden slides.

PS>


$options = New-OfficePowerPointPdfOptions -PageLayout Handouts -HandoutSlidesPerPage 3 -IncludeSpeakerNotes -IncludeHiddenSlides
            Export-OfficeDocumentPdf -InputPath .\Briefing.pptx -Path .\Briefing.pdf -PowerPointOptions $options
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-OfficePowerPointPdfOptions [-AllowDocumentFontEmbedding] [-AllowSystemFontEmbedding] [-ChartLayout <OfficeChartLayout>] [-ChartStyle <OfficeChartStyle>] [-FontFamily <String>] [-HandoutSlidesPerPage <Int32>] [-IncludeAutoShapes] [-IncludeCharts] [-IncludeHiddenSlides] [-IncludePictures] [-IncludeSlideBackgrounds] [-IncludeSmartArt] [-IncludeSpeakerNotes] [-IncludeTables] [-IncludeTextBoxes] [-MaxGroupShapeDepth <Int32>] [-PageLayout <Slides|NotesPages|Handouts>] [-PdfOptions <PdfOptions>] [-PictureFit <Stretch|Contain|Cover>] [-WarnOnPictureAspectRatioDistortion] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AllowDocumentFontEmbedding SwitchParameter optionalposition: namedpipeline: False
Allow embedding fonts stored in the presentation.
AllowSystemFontEmbedding SwitchParameter optionalposition: namedpipeline: False
Allow embedding fonts discovered on the current system.
ChartLayout OfficeChartLayout optionalposition: namedpipeline: False
Chart layout override.
ChartStyle OfficeChartStyle optionalposition: namedpipeline: False
Chart visual style override.
FontFamily String optionalposition: namedpipeline: False
Default font family used when the presentation does not specify one.
HandoutSlidesPerPage Int32 optionalposition: namedpipeline: False
Number of slides on each handout page.
IncludeAutoShapes SwitchParameter optionalposition: namedpipeline: False
Render automatic shapes.
IncludeCharts SwitchParameter optionalposition: namedpipeline: False
Render charts.
IncludeHiddenSlides SwitchParameter optionalposition: namedpipeline: False
Include slides marked hidden.
IncludePictures SwitchParameter optionalposition: namedpipeline: False
Render pictures.
IncludeSlideBackgrounds SwitchParameter optionalposition: namedpipeline: False
Render slide backgrounds.
IncludeSmartArt SwitchParameter optionalposition: namedpipeline: False
Render SmartArt.
IncludeSpeakerNotes SwitchParameter optionalposition: namedpipeline: False
Include speaker notes.
IncludeTables SwitchParameter optionalposition: namedpipeline: False
Render tables.
IncludeTextBoxes SwitchParameter optionalposition: namedpipeline: False
Render text boxes.
MaxGroupShapeDepth Int32 optionalposition: namedpipeline: False
Maximum nested group-shape depth to render.
PageLayout PowerPointPdfPageLayout optionalposition: namedpipeline: Falsevalues: 3
PDF page layout, such as slides, notes, or handouts.
Possible values: Slides, NotesPages, Handouts
PdfOptions PdfOptions optionalposition: namedpipeline: False
Underlying low-level OfficeIMO PDF options.
PictureFit OfficeImageFit optionalposition: namedpipeline: Falsevalues: 3
How pictures fit their shape bounds.
Possible values: Stretch, Contain, Cover
WarnOnPictureAspectRatioDistortion SwitchParameter optionalposition: namedpipeline: False
Report pictures whose requested fit distorts their aspect ratio.

Outputs

OfficeIMO.PowerPoint.Pdf.PowerPointPdfSaveOptions