OfficeIMO.Chm
3.4.5
Prefix Reserved
dotnet add package OfficeIMO.Chm --version 3.4.5
NuGet\Install-Package OfficeIMO.Chm -Version 3.4.5
<PackageReference Include="OfficeIMO.Chm" Version="3.4.5" />
<PackageVersion Include="OfficeIMO.Chm" Version="3.4.5" />
<PackageReference Include="OfficeIMO.Chm" />
paket add OfficeIMO.Chm --version 3.4.5
#r "nuget: OfficeIMO.Chm, 3.4.5"
#:package OfficeIMO.Chm@3.4.5
#addin nuget:?package=OfficeIMO.Chm&version=3.4.5
#tool nuget:?package=OfficeIMO.Chm&version=3.4.5
OfficeIMO.Chm
Read compiled HTML Help (.chm) in process on Windows, macOS, and Linux. ChmDocument exposes HTML topics, exact entry bytes, embedded resources, hierarchical contents, and the keyword index. Loading does not launch the Windows help viewer, execute scripts, or fetch external resources.
Read a book
using OfficeIMO.Chm;
ChmDocument book = ChmDocument.Load("manual.chm", new ChmReadOptions {
MaxInputBytes = 64L * 1024 * 1024,
MaxExpandedBytes = 128L * 1024 * 1024
});
Console.WriteLine(book.Title);
foreach (ChmTopic topic in book.Topics) {
Console.WriteLine($"{topic.Title}: {topic.Path}");
string html = topic.ReadHtml();
}
foreach (ChmNavigationItem item in book.TableOfContents) {
Console.WriteLine($"{item.Name}: {item.Children.Count} children");
}
byte[] image = book.FindEntry("/images/logo.png")!.GetBytes();
Load accepts paths, bytes, and streams; LoadAsync accepts paths and streams. Seekable streams are read from the beginning, restored to their original position, and left open. Forward-only streams are consumed from their current position and left open. The result owns an independent snapshot. GetBytes() returns a copy; OpenRead() exposes a read-only stream.
Topics follow contents order, then unlisted HTML topics in ordinal path order. Contents and index items retain children, multiple links, and See Also labels. FindEntry(reference, sourcePath) resolves relative paths, case differences, URI escapes, queries, and fragments inside the archive. It returns null for missing, unsafe, external, and merged-book references. Raw directory identity remains available as ChmEntry.Name.
Convert through existing engines
| Package | Entry point | Result |
|---|---|---|
OfficeIMO.Chm |
ToHtmlDocumentResult() |
Linked canonical HTML book and fidelity report |
| OfficeIMO.Chm.Markdown | ToMarkdownResult() |
Linked Markdown book and fidelity report |
| OfficeIMO.Chm.Epub | ToEpubBytesResult() |
Reflowable EPUB with contents and embedded resources |
| OfficeIMO.Chm.Pdf | ToPdfBytesResult() |
Independently rendered topic pages and combined fidelity evidence |
| OfficeIMO.Reader.Chm | AddChmHandler() |
Reader chunks, tables, links, assets, hashes, and topic citations |
ChmConversionResult<OfficeIMO.Html.HtmlConversionDocument> htmlBook =
book.ToHtmlDocumentResult(new ChmConversionOptions {
TopicPaths = new[] { "/introduction.html", "/installation.html" },
MaxOutputBytes = 32L * 1024 * 1024
});
foreach (var finding in htmlBook.Report.FidelityDiagnostics)
Console.WriteLine($"{finding.Code}: {finding.Message}");
Topic selection retains book order and rejects unknown or non-topic paths. RequireValue() rejects conversion failure; Report.RequireNoLoss() additionally rejects reported approximations and omissions. Raw archive extraction and converted-document fidelity are separate contracts.
Bounds and ownership
Default read limits are 128 MiB input, 256 MiB expanded LZX data, 32 MiB per entry, 100,000 entries/navigation items, 100,000 combined navigation references, 16 Mi characters of navigation text, and bounded HTML/tree depth. Repeated targets and compiled-table strings count against the aggregate budgets. Limits reject the operation rather than returning a truncated book. ChmReadException.Code identifies malformed or unsupported archives and exhausted limits. Cancellation is cooperative during reads, directory/navigation parsing, decompression, and conversion.
Linked books retain each topic's language, reading direction, and inert container attributes. The first selected topic supplies the book's primary language; the help-book locale supplies a language when the topic has no declaration. EPUB callers can override the publication language with EpubManuscriptOptions.Language.
ChmTopic.ToHtmlDocument() exposes the existing inert HTML model. ConfigureRenderOptions(options, topic.Path) supplies a virtual chm://archive/ base and an archive-only resource resolver. It replaces an existing resolver; remote images, fonts, stylesheets, and files are never loaded by CHM conversion.
The package references OfficeIMO.Core and OfficeIMO.Html. LZX decoding is shared with OneNote in Core; HTML parsing and charset services retain their existing provider boundary. There is no CHMLib, Windows API, external executable, or new third-party codec dependency in the product.
See supported profiles and qualification for exact format and export boundaries.
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 |
|---|---|---|---|---|---|---|
| Create | 0 | 0 | 0 | 0 | 1 | 0 |
| Read | 1 | 0 | 0 | 0 | 0 | 0 |
| Edit | 0 | 0 | 0 | 0 | 1 | 0 |
| Preserve | 0 | 0 | 0 | 0 | 1 | 0 |
| Inspect | 1 | 0 | 0 | 0 | 0 | 0 |
The complete rows for OfficeIMO.Chm 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.4.5)
- OfficeIMO.Html (>= 3.4.5)
-
.NETStandard 2.0
- OfficeIMO.Core (>= 3.4.5)
- OfficeIMO.Html (>= 3.4.5)
-
net10.0
- OfficeIMO.Core (>= 3.4.5)
- OfficeIMO.Html (>= 3.4.5)
-
net8.0
- OfficeIMO.Core (>= 3.4.5)
- OfficeIMO.Html (>= 3.4.5)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on OfficeIMO.Chm:
| Package | Downloads |
|---|---|
|
OfficeIMO.Reader.Chm
CHM help-book adapter for OfficeIMO.Reader modular ingestion. |
|
|
OfficeIMO.Chm.Epub
CHM help-book conversion to EPUB through the OfficeIMO HTML and EPUB engines. |
|
|
OfficeIMO.Chm.Markdown
CHM help-book conversion through the OfficeIMO HTML and Markdown engines. |
|
|
OfficeIMO.Chm.Pdf
CHM help-book conversion through the OfficeIMO HTML and PDF engines. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.4.5 | 382 | 10/10/2026 |