API Reference
ConvertFrom-OfficeOneNote
Converts an offline OneNote section or notebook to semantic Markdown, HTML, or PDF.
Remarks
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.
PS>
$report = ConvertFrom-OfficeOneNote -Path .\Operations.one -OutputPath .\Operations.md -PassThruReport
$report | Select-Object HasLoss, Diagnostics
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.
Syntax
ConvertFrom-OfficeOneNote [-FailOnLoss] [-Force] [-HtmlOptions <HtmlOptions>] [-NotebookOptions <OneNoteNotebookReaderOptions>] -OutputPath <String> [-PassThruReport] -Path <String> [-PdfOptions <OneNoteToPdfOptions>] [-ProjectionOptions <OneNoteMarkdownOptions>] [-ReadOptions <OneNoteReaderOptions>] [<CommonParameters>]#All Parameter SetsParameters
- 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.
Outputs
System.IO.FileInfo, OfficeIMO.OneNote.Markdown.OneNoteMarkdownConversionReport, OfficeIMO.Html.HtmlConversionReport, OfficeIMO.Pdf.PdfDocumentConversionResult