Cmdlet
New-OfficeHtmlPdfOptions
Creates HTML-to-PDF options for Convert-OfficeDocument -To Pdf.
Syntax
New-OfficeHtmlPdfOptions
[-BaseOptions <HtmlPdfExportOptions>]
[-Font <String>]
[-IncludeLocalResources]
[-Margin <OfficeLength>]
[-NoInteractiveFormControls]
[-PdfOptions <PdfCreateOptions>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Use the native OfficeHtmlPdfOptions command.
Convert-OfficeDocument -Path .\Report.html -To Pdf -OutputPath .\Report.pdf -Options (New-OfficeHtmlPdfOptions -Margin 2cm)Parameters
- -BaseOptions HtmlPdfExportOptions
- BaseOptions for this operation.
- -Font String
- Font for this operation.
- -IncludeLocalResources SwitchParameter
- IncludeLocalResources for this operation.
- -Margin OfficeLength
- Margin for this operation.
- -NoInteractiveFormControls SwitchParameter
- NoInteractiveFormControls for this operation.
- -PdfOptions PdfCreateOptions
- PdfOptions for this operation.
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.