Cmdlet
New-OfficePdfHtmlOptions
Creates native semantic or positioned PDF-to-HTML export settings.
Syntax
New-OfficePdfHtmlOptions
[-DocumentTitleFallback <String>]
[-Fragment]
[-ImageExportMode <PlaceholderOnly| EmbeddedDataUri>]
[-IncludeFormWidgets]
[-IncludeLinkAnnotations]
[-MaxEmbeddedImageSize <Int64>]
[-NoImagePlaceholders]
[-NoMetadata]
[-NoPageContainers]
[-Profile <Semantic| PositionedReview>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Create positioned review HTML with the source links and form fields.
$options = New-OfficePdfHtmlOptions -Profile PositionedReview
Convert-OfficeDocument -Path ./Review.pdf -To Html -OutputPath ./Review.html -Options $optionsExport a fragment without source metadata or page containers.
$options = New-OfficePdfHtmlOptions -Fragment -NoMetadata -NoPageContainers
Convert-OfficeDocument -Path ./Report.pdf -To Html -AsString -Options $optionsParameters
- -DocumentTitleFallback String
- Document title used when the source PDF has no title.
- -Fragment SwitchParameter
- Return an HTML fragment without the complete document shell.
- -ImageExportMode PdfHtmlImageExportMode
- Use embedded images or placeholders for detected PDF images.
- Possible values:
PlaceholderOnly,EmbeddedDataUri - -IncludeFormWidgets SwitchParameter
- Include inert form-widget projections; positioned review enables them by default.
- -IncludeLinkAnnotations SwitchParameter
- Include inert link annotations; positioned review enables them by default.
- -MaxEmbeddedImageSize Int64
- Maximum source image bytes embedded in the HTML; zero embeds no nonempty image.
- -NoImagePlaceholders SwitchParameter
- Exclude readable image projections.
- -NoMetadata SwitchParameter
- Exclude source document metadata.
- -NoPageContainers SwitchParameter
- Omit semantic page wrappers and page-number metadata.
- -Profile PdfHtmlProfile
- Semantic content or positioned, inert review HTML; semantic is the default.
- Possible values:
Semantic,PositionedReview
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.