Cmdlet
New-OfficeWordHtmlOptions
Creates native Word-to-HTML options for Convert-OfficeDocument.
Syntax
New-OfficeWordHtmlOptions
[-ExcludeFootnotes]
[-Font <String>]
[-IncludeDefaultCss]
[-IncludeFontStyles]
[-IncludeListStyles]
[-IncludeParagraphClasses]
[-IncludeRunClasses]
[-UseImagePaths]
[<CommonParameters>]#Parameter set:
DefaultExamples
Export reusable paragraph and run style classes.
$options = New-OfficeWordHtmlOptions -IncludeParagraphClasses -IncludeRunClasses
Convert-OfficeDocument -Path ./Guide.docx -To Html -OutputPath ./Guide.html -Options $optionsParameters
- -ExcludeFootnotes SwitchParameter
- Omit footnotes from the exported HTML.
- -Font String
- Font family applied to exported text.
- -IncludeDefaultCss SwitchParameter
- Include the native default stylesheet. Omission preserves the engine default.
- -IncludeFontStyles SwitchParameter
- Include run font information as inline styles.
- -IncludeListStyles SwitchParameter
- Include list style information.
- -IncludeParagraphClasses SwitchParameter
- Emit paragraph styles as CSS classes.
- -IncludeRunClasses SwitchParameter
- Emit run character styles as CSS classes.
- -UseImagePaths SwitchParameter
- Reference image file paths instead of embedding image data.
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.