Cmdlet
Export-OfficeDocumentAsset
Writes document media, tables or visuals using the native Reader materializers.
Syntax
Export-OfficeDocumentAsset
[-Extension <String[]>]
[-Indented]
[-Kind <String[]>]
[-MaximumInputBytes <Int64>]
[-MediaType <String[]>]
[-NoClobber]
[-NoMetadata]
[-NoPayload]
[-Options <Object[]>]
[-OutputDirectory] <String>
[-Path] <String[]>
[-Range <String>]
[-Reader <OfficeDocumentReader>]
[-Sheet <OfficeSheetSelector>]
[-TableFormat <Csv| Markdown| Json>]
[-ThrottleLimit <Int32>]
[-Type <Media| Table| Visual>]
[-ValidatePayloadHash]
[<CommonParameters>]#Parameter set:
PathExport-OfficeDocumentAsset
[-Extension <String[]>]
[-Indented]
[-Kind <String[]>]
-LiteralPath <String[]>
[-MaximumInputBytes <Int64>]
[-MediaType <String[]>]
[-NoClobber]
[-NoMetadata]
[-NoPayload]
[-Options <Object[]>]
[-OutputDirectory] <String>
[-Range <String>]
[-Reader <OfficeDocumentReader>]
[-Sheet <OfficeSheetSelector>]
[-TableFormat <Csv| Markdown| Json>]
[-ThrottleLimit <Int32>]
[-Type <Media| Table| Visual>]
[-ValidatePayloadHash]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Extract presentation images and embedded files.
Export-OfficeDocumentAsset ./Review.pptx ./AssetsExport report tables as CSV files.
Get-ChildItem ./Reports/*.docx | Export-OfficeDocumentAsset -OutputDirectory ./Tables -Type Table -TableFormat CsvKeep existing image files.
Export-OfficeDocumentAsset ./Brochure.docx ./Images -Extension png,jpg -NoClobberParameters
- -Extension String[]
- Selected media extensions, with or without a leading dot.
- -Indented SwitchParameter
- Indent table and visual JSON.
- -Kind String[]
- Selected media asset kinds.
- -MaximumInputBytes Int64
- Maximum input bytes per source.
- -MediaType String[]
- Selected media MIME types.
- -NoClobber SwitchParameter
- Leave existing output files unchanged and return skipped materialization results.
- -NoMetadata SwitchParameter
- Write visual payloads without JSON metadata.
- -NoPayload SwitchParameter
- Write only visual metadata.
- -Options Object[]
- Typed common and format read policies, or common/format-keyed hashtables.
- -OutputDirectory String
- Destination folder for the native materialized files.
- -Path String[]
- Gets or sets input paths with provider wildcard expansion.
- -Range String
- A1 range within the selected worksheet.
- -Reader OfficeDocumentReader
- Caller-configured immutable Reader.
- -Sheet OfficeSheetSelector
- Worksheet name, one-based position or sheet object.
- -TableFormat OfficeTableExportFormat[]
- Table representations to write. All formats are included by default.
- Possible values:
Csv,Markdown,Json - -ThrottleLimit Int32
- Gets or sets the maximum number of concurrent background operations.
- -Type OfficeDocumentAssetType[]
- Media, tables or visuals. Media is the default.
- Possible values:
Media,Table,Visual - -ValidatePayloadHash SwitchParameter
- Validate media payload hashes when the source supplies them.
- -LiteralPath String[]
- Gets or sets input paths without wildcard expansion, binding FileInfo.FullName and provider PSPath.
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.