Cmdlet
ConvertFrom-OfficeOneNote
Converts an offline OneNote section or notebook to semantic Markdown, HTML, or PDF.
Syntax
ConvertFrom-OfficeOneNote
[-FailOnLoss]
[-Force]
[-HtmlOptions <HtmlOptions>]
[-NotebookOptions <OneNoteNotebookReaderOptions>]
[-OutputPath] <String>
[-PassThruReport]
[-Path] <String>
[-PdfOptions <OneNoteToPdfOptions>]
[-ProjectionOptions <OneNoteMarkdownOptions>]
[-ReadOptions <OneNoteReaderOptions>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Free-form canvas placement and unsupported native data are reported as conversion evidence rather than silently presented as lossless.
Examples
Convert a OneNote section to Markdown and inspect fidelity evidence.
$report = ConvertFrom-OfficeOneNote -Path .\Operations.one -OutputPath .\Operations.md -PassThruReport
$report | Select-Object HasLoss, DiagnosticsParameters
- -FailOnLoss SwitchParameter
- Fail when the selected projection reports an approximation or omission.
- -Force SwitchParameter
- Overwrite an existing destination.
- -HtmlOptions HtmlOptions
- HTML rendering settings used for .html output.
- -NotebookOptions OneNoteNotebookReaderOptions
- Notebook hierarchy, package, and section-error policy.
- -OutputPath String
- Destination .md, .html, or .pdf path.
- -PassThruReport SwitchParameter
- Return conversion evidence instead of file information.
- -Path String
- Path to a .one section, .onetoc2 notebook index, or .onepkg archive.
- -PdfOptions OneNoteToPdfOptions
- Semantic layout and PDF settings used for .pdf output.
- -ProjectionOptions OneNoteMarkdownOptions
- OneNote hierarchy, history, and binary-asset projection settings.
- -ReadOptions OneNoteReaderOptions
- Bounded section and revision-store read options.
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.