Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficePdfPowerPointOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Pdf.PowerPoint.PdfPowerPointExportOptions

Creates discoverable PDF-to-PowerPoint reconstruction settings.

Syntax

New-OfficePdfPowerPointOptions
[-AlignNumericColumns]
[-BandedRows]
[-Dpi <Double>]
[-EmptyPresentationMessage <String>]
[-EmptyPresentationTitle <String>]
[-IncludeColumnHeaderRows]
[-IncludeSourceTitles]
[-MaxColumnsPerSlide <Int32>]
[-MaxEditableObjectsPerPage <Int32>]
[-MaximumPixelCountPerPage <Int64>]
[-MaxOutputBytesPerPage <Int64>]
[-MaxPages <Int32>]
[-MaxRows <Int32>]
[-MaxRowsPerSlide <Int32>]
[-MaxTotalOutputBytes <Int64>]
[-MergePageContinuations]
[-Mode <PowerPointPdfImportMode>]
[-Page <OfficePageRange>]
[-SuppressRepeatedBodyHeaderRows]
[-TableStyle <PowerPointTableStylePreset>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Reconstruct selected PDF pages as editable slide content.

$options = New-OfficePdfPowerPointOptions -Page '1-5' -MaxPages 5
Convert-OfficeDocument -Path ./Source.pdf -To PowerPoint -OutputPath ./Slides.pptx -Options $options

Create bounded visual pages for a review deck.

$options = New-OfficePdfPowerPointOptions -Mode VisualPages -Dpi 96 -MaximumPixelCountPerPage 2000000
Convert-OfficeDocument -Path ./Review.pdf -To PowerPoint -OutputPath ./Review.pptx -Options $options

Parameters

-AlignNumericColumns SwitchParameter optional
Right-align inferred numeric columns.
-BandedRows SwitchParameter optional
Enable banded-row styling.
-Dpi Double optional
Raster resolution used by visual import.
-EmptyPresentationMessage String optional
Message used when no supported content is detected.
-EmptyPresentationTitle String optional
Title used when no supported content is detected.
-IncludeColumnHeaderRows SwitchParameter optional
Add inferred column headers.
-IncludeSourceTitles SwitchParameter optional
Add source-page titles.
-MaxColumnsPerSlide Int32 optional
Maximum columns written to one slide; zero means unlimited.
-MaxEditableObjectsPerPage Int32 optional
Maximum editable objects reconstructed per page.
-MaximumPixelCountPerPage Int64 optional
Maximum pixels per rendered page.
-MaxOutputBytesPerPage Int64 optional
Maximum encoded bytes per rendered page.
-MaxPages Int32 optional
Maximum pages imported.
-MaxRows Int32 optional
Maximum body rows imported per table; zero means unlimited.
-MaxRowsPerSlide Int32 optional
Maximum rows written to one slide; zero means unlimited.
-MaxTotalOutputBytes Int64 optional
Maximum aggregate encoded output bytes.
-MergePageContinuations SwitchParameter optional
Merge compatible table segments across pages.
-Mode PowerPointPdfImportMode optional
Visual, editable-table, hybrid, editable-content, or automatic import mode.
Possible values: VisualPages, EditableTables, HybridVisualAndEditableTables, EditableContent, Auto
-Page OfficePageRange optional
Optional one-based page ranges such as 1-3,5.
-SuppressRepeatedBodyHeaderRows SwitchParameter optional
Suppress repeated body header rows.
-TableStyle PowerPointTableStylePreset optional
PowerPoint table style.

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.