API Reference
Cmdlet
New-OfficePowerPointPdfOptions
Creates discoverable PowerPoint-to-PDF conversion options for Export-OfficeDocumentPdf.
Remarks
Creates discoverable PowerPoint-to-PDF conversion options for Export-OfficeDocumentPdf.
Examples
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 SetsParameters
- AllowDocumentFontEmbedding SwitchParameter
- Allow embedding fonts stored in the presentation.
- AllowSystemFontEmbedding SwitchParameter
- Allow embedding fonts discovered on the current system.
- ChartLayout OfficeChartLayout
- Chart layout override.
- ChartStyle OfficeChartStyle
- Chart visual style override.
- FontFamily String
- Default font family used when the presentation does not specify one.
- HandoutSlidesPerPage Int32
- Number of slides on each handout page.
- IncludeAutoShapes SwitchParameter
- Render automatic shapes.
- IncludeCharts SwitchParameter
- Render charts.
- IncludeHiddenSlides SwitchParameter
- Include slides marked hidden.
- IncludePictures SwitchParameter
- Render pictures.
- IncludeSlideBackgrounds SwitchParameter
- Render slide backgrounds.
- IncludeSmartArt SwitchParameter
- Render SmartArt.
- IncludeSpeakerNotes SwitchParameter
- Include speaker notes.
- IncludeTables SwitchParameter
- Render tables.
- IncludeTextBoxes SwitchParameter
- Render text boxes.
- MaxGroupShapeDepth Int32
- Maximum nested group-shape depth to render.
- PageLayout PowerPointPdfPageLayout
- PDF page layout, such as slides, notes, or handouts.
- Possible values:
Slides,NotesPages,Handouts - PdfOptions PdfOptions
- Underlying low-level OfficeIMO PDF options.
- PictureFit OfficeImageFit
- How pictures fit their shape bounds.
- Possible values:
Stretch,Contain,Cover - WarnOnPictureAspectRatioDistortion SwitchParameter
- Report pictures whose requested fit distorts their aspect ratio.
Outputs
OfficeIMO.PowerPoint.Pdf.PowerPointPdfSaveOptions