OfficeIMO.Pdf.Word
3.6.1
Prefix Reserved
dotnet add package OfficeIMO.Pdf.Word --version 3.6.1
NuGet\Install-Package OfficeIMO.Pdf.Word -Version 3.6.1
<PackageReference Include="OfficeIMO.Pdf.Word" Version="3.6.1" />
<PackageVersion Include="OfficeIMO.Pdf.Word" Version="3.6.1" />
<PackageReference Include="OfficeIMO.Pdf.Word" />
paket add OfficeIMO.Pdf.Word --version 3.6.1
#r "nuget: OfficeIMO.Pdf.Word, 3.6.1"
#:package OfficeIMO.Pdf.Word@3.6.1
#addin nuget:?package=OfficeIMO.Pdf.Word&version=3.6.1
#tool nuget:?package=OfficeIMO.Pdf.Word&version=3.6.1
OfficeIMO.Pdf.Word
Reconstruct editable Word documents or visual page images from supported PDF content.
dotnet add package OfficeIMO.Pdf.Word
Import semantic PDF content into Word
using OfficeIMO;
using OfficeIMO.Pdf;
using OfficeIMO.Word;
using OfficeIMO.Pdf.Word;
PdfDocument pdf = PdfDocument.Load("packet.pdf");
using WordDocument word = pdf.ToWord(new PdfWordExportOptions(), out OfficeConversionReport report);
word.Save("packet.docx");
foreach (var warning in report.Diagnostics) {
Console.WriteLine($"{warning.Code}: {warning.Message}");
}
The semantic import path preserves document metadata, page breaks, headings, paragraphs, lists, detected run color/size/emphasis, logical tables, safe URI hyperlinks, supported internal destination links, embedded images, form-widget placeholders, and conversion diagnostics when those structures are available in the PDF logical model. UseSharedPageReadingOrder defaults to true, so semantic items follow the core engine's crop-, rotation-, spanning-band-, and column-aware order. Editable output also retains each source page's physical size, uses a 36-point page margin, suppresses extra paragraph spacing in dense source content, preserves detected table-column proportions, and positions supported axis-aligned images relative to the page. These defaults improve business-document reconstruction, but they do not turn semantic import into fixed-layout page recreation or Microsoft Word rendering parity.
Set PreserveSourcePageSize, PreserveCompactSourceSpacing, or PreserveImagePlacementPosition to false when normal Word flow is more useful than the corresponding source geometry. EditablePageMarginPoints controls the source-sized section margin. Source page sizes require PreservePageBreaks = true when more than one PDF page is imported.
For selected pages, Fast versus Structured reconstruction, or custom semantic budgets, pass the canonical read settings through the import options:
using OfficeIMO;
OfficeConversionReport report = pdf.SaveAsWord(
"packet-selection.docx",
new PdfWordExportOptions {
ReadOptions = new PdfLoadOptions {
PageSelection = PdfPageSelection.Parse("1-3,5"),
LayoutOptions = new PdfTextLayoutOptions { ForceSingleColumn = true },
Pipeline = new PdfUnderstandingPipelineOptions { MaxPages = 5 }
}
});
ReadOptions is used only when the source is an opened PdfDocument. Accepted recognition content can be converted directly through the front door, preserving its detected tables and word geometry.
For table-only recovery, use the same façade with the explicit profile:
using OfficeIMO;
pdf.SaveAsWord(
"statement-tables.docx",
PdfWordExportOptions.CreateTablesOnly());
What it imports
- Parser-supported PDF metadata, page breaks, headings, paragraphs, lists, logical tables, safe URI hyperlinks, supported internal destination links, complete image-file payloads with transparency-mask fidelity metadata, supported
ImageMaskstencil streams, color-key masked simple andIndexedstreams, Decode-aware soft-mask-capable simpleDeviceGray/DeviceRGB/basic-convertedDeviceCMYKstreams, basicICCBasedN=1/3/4 streams, and Decode-aware soft-mask-capableIndexedpalette PDF image streams into editable.docxcontent when their filters are supported. - Image fallback placeholders and form-widget placeholders with diagnostics instead of silently dropping unsupported objects.
- Page-range filtered imports through
PdfDocument.Read(new PdfLoadOptions { PageSelection = ... }). - Active hyperlink reconstruction for absolute
http,https, andmailtoURI annotations throughPdfWordExportOptions.ImportUriLinksandPdfWordExportOptions.AllowedHyperlinkUriSchemes. - Internal PDF destination reconstruction through
PdfWordExportOptions.ImportInternalLinks, mapping supported page and named destinations to Word bookmarks and anchor hyperlinks. - Native image embedding through
PdfWordExportOptions.ImportImages; complete image files, supportedImageMaskstencil streams, color-key masked simple andIndexedstreams, Decode-aware soft-mask-capable simple 8-bitDeviceGray/DeviceRGB/basic-convertedDeviceCMYKstreams, basicICCBasedN=1/3/4 streams, and Decode-aware soft-mask-capableIndexedpalette streams are embedded when their filters are supported. Fully transparent and unplaced resources are suppressed. Images whose clips, placement soft masks, unresolved source transparency masks, or unsupported blend modes could expose hidden source pixels are not embedded as raw pictures; the report records a typed omission, andPdfWordExportOptions.IncludeImagePlaceholderscan retain an editable marker instead. Supported opacity is mapped to native Word picture transparency. - Per-operation import findings through
OfficeConversionReport.Diagnostics.HasLossandThrowIfLoss()use typed approximation, omission, and failure evidence even when a diagnostic is informational. The table-only profile reports visible text outside detected tables aspdf-text-content-not-importedinstead of treating an intentionally narrow extraction as lossless.
Visual pages
For a PDF whose page appearance matters more than editability, use visual pages:
using OfficeIMO;
using OfficeIMO.Pdf;
using OfficeIMO.Pdf.Word;
var pdf = PdfDocument.Load("source.pdf");
var options = PdfWordExportOptions.CreateVisualPages();
options.Dpi = 144;
options.ReadOptions = new PdfLoadOptions {
PageSelection = PdfPageSelection.Parse("1-3,5")
};
pdf.SaveAsWord("visual-pages.docx", options);
Each selected page becomes an image on a Word section with the source page's physical dimensions. Text, links, and form fields are not editable in this mode. Rendering uses the managed PDF engine and reports its limitations. The default limits are 100 pages, 64 million pixels per page, and 256 MB of encoded page images; Word pages larger than 22 inches in either dimension are rejected. Use the default EditableContent mode to reconstruct supported text, tables, and images as Word objects.
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.Pdf.Word 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.1)
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Word (>= 3.6.1)
-
.NETStandard 2.0
- OfficeIMO.Core (>= 3.6.1)
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Word (>= 3.6.1)
-
net10.0
- OfficeIMO.Core (>= 3.6.1)
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Word (>= 3.6.1)
-
net8.0
- OfficeIMO.Core (>= 3.6.1)
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Word (>= 3.6.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on OfficeIMO.Pdf.Word:
| Package | Downloads |
|---|---|
|
OfficeIMO.OpenDocument.Odt.Pdf
Bidirectional, loss-aware ODT and PDF conversion through the Word semantic engine. |
|
|
OfficeIMO
Document conversion and resumable batches over the OfficeIMO format libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.