OfficeIMO.OneNote.Pdf
3.6.2
Prefix Reserved
dotnet add package OfficeIMO.OneNote.Pdf --version 3.6.2
NuGet\Install-Package OfficeIMO.OneNote.Pdf -Version 3.6.2
<PackageReference Include="OfficeIMO.OneNote.Pdf" Version="3.6.2" />
<PackageVersion Include="OfficeIMO.OneNote.Pdf" Version="3.6.2" />
<PackageReference Include="OfficeIMO.OneNote.Pdf" />
paket add OfficeIMO.OneNote.Pdf --version 3.6.2
#r "nuget: OfficeIMO.OneNote.Pdf, 3.6.2"
#:package OfficeIMO.OneNote.Pdf@3.6.2
#addin nuget:?package=OfficeIMO.OneNote.Pdf&version=3.6.2
#tool nuget:?package=OfficeIMO.OneNote.Pdf&version=3.6.2
OfficeIMO.OneNote.Pdf
OfficeIMO.OneNote.Pdf converts the typed offline OneNote model to PDF without Microsoft Graph, a OneNote installation, or a commercial dependency. It provides a semantic document path and a position-preserving page path.
Semantic PDF
The semantic path projects OneNote through OfficeIMO.OneNote.Markdown, then uses the first-party OfficeIMO.Markdown.Pdf and OfficeIMO.Pdf engines. It favors selectable text and normal document reflow:
using OfficeIMO.OneNote;
using OfficeIMO.OneNote.Pdf;
OneNoteSection section = OneNoteSectionReader.Read("Section.one");
OfficeConversionReport report = section.SaveAsPdf("Section.pdf");
using PdfDocument pdf = section.ToPdf();
OneNote pages are free-form canvases. The current SemanticDocument mode intentionally flattens them into reading order. The conversion report covers canvas flattening, formatting simplification, unresolved asset placeholders, link-only binary assets, opaque omissions, and source diagnostics. It does not claim pixel parity with the OneNote desktop canvas.
Use OneNotePdfExportOptions.ProjectionOptions for conflict/version inclusion and asset destinations, and OneNotePdfExportOptions.MarkdownOptions for the intermediate Markdown-to-PDF layout, fonts, image policy, and diagnostics.
OneNote PDF export adds multilingual fallback candidates in addition to the normal document, monospace, and symbol candidates. The balanced default uses installed fonts while denying arbitrary local and remote reads; portable deterministic mode is explicit. Conversion clones both projection and PDF options so reusable caller configuration is not mutated:
using OfficeIMO.Markdown.Pdf;
using OfficeIMO.OneNote.Markdown;
using OfficeIMO.Pdf;
var options = new OneNotePdfExportOptions {
MarkdownOptions = new MarkdownPdfExportOptions {
ResourcePolicy = PdfResourcePolicy.CreateTrustedHost()
}
};
using PdfDocument pdf = section.ToPdf(options, out OfficeConversionReport report);
foreach (OfficeDiagnostic diagnostic in report.Diagnostics) {
Console.WriteLine($"{diagnostic.Code}: {diagnostic.Message}");
}
result.Save("Section.pdf");
Invalid Unicode noncharacters and native control codes are normalized by OfficeIMO.OneNote.Markdown before layout. Valid characters that remain uncovered by the configured fonts still produce the normal PDF conversion diagnostic rather than being silently discarded.
Visual page PDF
The visual path uses the same positioned OfficeDrawing canvas as PNG/JPEG/TIFF/SVG/WebP and visual HTML export. Each page is written edge-to-edge at the canvas's page geometry as vector content: text stays real PDF text that can be searched, selected, and extracted, with the installed fonts it names embedded as subsets and Unicode fallbacks added when the text needs them. Freeform placement, tables, ink, structured math, and attachment placeholders are drawn as vectors, and embedded pictures keep their own bytes and alternative text.
var visualOptions = new OneNoteVisualPdfExportOptions {
PageRendering = new OneNotePageRenderingOptions {
// Optional: decoder for additional embedded source image formats.
ImageCodec = applicationImageCodec
},
Title = "Project notebook"
};
OfficeConversionReport visual = section.SaveAsVisualPdf("Section-visual.pdf", visualOptions);
foreach (var warning in visual.Diagnostics) {
Console.WriteLine($"{warning.Code}: {warning.Message}");
}
JPEG and PNG pictures are embedded as they are, and other formats the PDF writer decodes itself are normalized by it. A picture in any other format is decoded by PageRendering.ImageCodec and embedded as PNG for that picture only, reported as ONENOTE_PDF_IMAGE_RASTERIZED; when nothing can decode it, a visible placeholder is drawn and image-source-decode-fallback is reported. The rest of the page stays vector.
Generated capability summary
This table is generated from the package-neutral OfficeIMO operation catalog. The detailed source contracts remain authoritative for feature-level behavior and limitations.
| Operation | Supported | Partial | Preserved | Rejected | Unsupported | Not applicable |
|---|---|---|---|---|---|---|
| Convert | 0 | 1 | 0 | 0 | 0 | 0 |
The complete rows for OfficeIMO.OneNote.Pdf are published in the generated operation contract.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- OfficeIMO.Core (>= 3.6.2)
- OfficeIMO.Markdown.Pdf (>= 3.6.2)
- OfficeIMO.OneNote.Markdown (>= 3.6.2)
-
.NETStandard 2.0
- OfficeIMO.Core (>= 3.6.2)
- OfficeIMO.Markdown.Pdf (>= 3.6.2)
- OfficeIMO.OneNote.Markdown (>= 3.6.2)
-
net10.0
- OfficeIMO.Core (>= 3.6.2)
- OfficeIMO.Markdown.Pdf (>= 3.6.2)
- OfficeIMO.OneNote.Markdown (>= 3.6.2)
-
net8.0
- OfficeIMO.Core (>= 3.6.2)
- OfficeIMO.Markdown.Pdf (>= 3.6.2)
- OfficeIMO.OneNote.Markdown (>= 3.6.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OfficeIMO.OneNote.Pdf:
| Package | Downloads |
|---|---|
|
OfficeIMO.Workflows
Typed local document workflows that compose first-party OfficeIMO conversion, PDF, and provenance capabilities. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.6.2 | 214 | 11/18/2026 |
| 3.6.1 | 195 | 11/10/2026 |
| 3.6.0 | 211 | 11/6/2026 |
| 3.5.3 | 121 | 10/31/2026 |
| 3.5.2 | 119 | 10/24/2026 |
| 3.5.1 | 174 | 10/16/2026 |
| 3.4.5 | 605 | 10/10/2026 |
| 3.4.4 | 269 | 9/27/2026 |
| 3.4.3 | 279 | 9/12/2026 |
| 3.4.2 | 194 | 9/9/2026 |
| 3.4.1 | 206 | 9/7/2026 |
| 3.4.0 | 150 | 9/6/2026 |
| 3.3.0 | 40,182 | 9/2/2026 |
| 3.2.7 | 124 | 8/29/2026 |
| 3.2.6 | 131 | 8/22/2026 |
| 3.2.5 | 135 | 8/21/2026 |
| 3.2.4 | 131 | 8/19/2026 |
| 3.2.3 | 132 | 8/17/2026 |
| 3.2.2 | 134 | 8/13/2026 |
| 3.2.1 | 137 | 8/11/2026 |