OfficeIMO

API Reference

Command

Import-OfficePowerPointSlide

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointSlide

Imports a slide from another PowerPoint presentation.

Remarks

Imports a slide from another PowerPoint presentation.

Examples

Import the first slide from another deck.


PS>Import-OfficePowerPointSlide -Presentation $target -SourcePath .\source.pptx -SourceIndex 0
        

Copies the first slide from source.pptx into the target presentation.

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

Import-OfficePowerPointSlide [-InsertAt <Nullable`1>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePresentation <PowerPointPresentation> [<CommonParameters>]
#
Parameter set: SourcePresentation

Parameters

InsertAt Nullable`1 optionalposition: namedpipeline: False
Optional target insertion index; omit to append.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Target presentation to update (optional inside DSL).
SourceIndex Int32 requiredposition: namedpipeline: False
Zero-based slide index in the source presentation.
SourcePresentation PowerPointPresentation requiredposition: namedpipeline: False
Source presentation to import from.

Outputs

OfficeIMO.PowerPoint.PowerPointSlide

Import-OfficePowerPointSlide [-InsertAt <Nullable`1>] [-Presentation <PowerPointPresentation>] -SourceIndex <Int32> -SourcePath <String> [<CommonParameters>]
#
Parameter set: SourcePath

Parameters

InsertAt Nullable`1 optionalposition: namedpipeline: False
Optional target insertion index; omit to append.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Target presentation to update (optional inside DSL).
SourceIndex Int32 requiredposition: namedpipeline: False
Zero-based slide index in the source presentation.
SourcePath String requiredposition: namedpipeline: Falsealiases: Path
Path to the source presentation.

Outputs

OfficeIMO.PowerPoint.PowerPointSlide