VOOZH about

URL: https://www.nuget.org/packages/OfficeIMO.Word.Pdf/

⇱ NuGet Gallery | OfficeIMO.Word.Pdf 1.0.40




👁 Image
OfficeIMO.Word.Pdf 1.0.40

Prefix Reserved
dotnet add package OfficeIMO.Word.Pdf --version 1.0.40
 
 
NuGet\Install-Package OfficeIMO.Word.Pdf -Version 1.0.40
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Word.Pdf" Version="1.0.40" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Word.Pdf" Version="1.0.40" />
 
Directory.Packages.props
<PackageReference Include="OfficeIMO.Word.Pdf" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Word.Pdf --version 1.0.40
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OfficeIMO.Word.Pdf, 1.0.40"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Word.Pdf@1.0.40
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Word.Pdf&version=1.0.40
 
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Word.Pdf&version=1.0.40
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

OfficeIMO.Word.Pdf - Word to PDF export

👁 nuget version
👁 nuget downloads

OfficeIMO.Word.Pdf exports OfficeIMO.Word documents to PDF through the first-party OfficeIMO.Pdf engine. It is the adapter layer: Word stays responsible for the .docx model, while PDF layout and writing stay in OfficeIMO.Pdf.

Install

dotnet add package OfficeIMO.Word.Pdf

Quick start

using OfficeIMO.Word;
using OfficeIMO.Word.Pdf;

using var document = WordDocument.Create("report.docx");
document.AddParagraph("PDF export").Style = WordParagraphStyles.Heading1;
document.AddParagraph("This document is exported through OfficeIMO.Pdf.");

document.SaveAsPdf("report.pdf");

Examples

Export with page and metadata options

using OfficeIMO.Pdf;
using OfficeIMO.Word;
using OfficeIMO.Word.Pdf;

using var document = WordDocument.Load("proposal.docx");

var options = new PdfSaveOptions {
 Orientation = PdfPageOrientation.Portrait,
 Margins = PageMargins.UniformCentimeters(1.5),
 Title = "Customer proposal",
 Author = "Evotec",
 IncludePageNumbers = true,
 PageNumberFormat = "Page {current} of {total}"
};

document.SaveAsPdf("proposal.pdf", options);

Export to bytes or streams

using OfficeIMO.Word;
using OfficeIMO.Word.Pdf;

using var document = WordDocument.Load("invoice.docx");

byte[] pdfBytes = document.SaveAsPdf();

using var stream = File.Create("invoice.pdf");
document.SaveAsPdf(stream);

Capture conversion warnings without throwing away the report

using OfficeIMO.Word;
using OfficeIMO.Word.Pdf;

using var document = WordDocument.Load("complex-document.docx");
var options = new PdfSaveOptions {
 DefaultTableBorders = true
};

var result = document.TrySaveAsPdf("complex-document.pdf", options);
if (!result.Succeeded) {
 foreach (string diagnostic in result.Diagnostics) {
 Console.WriteLine(diagnostic);
 }
}

foreach (var warning in options.ConversionReport.Warnings) {
 Console.WriteLine($"{warning.Source}: {warning.Message}");
}

Import logical PDF tables into Word

using OfficeIMO.Word.Pdf;

var imported = PdfWordTableConverterExtensions.SavePdfTablesAsWord(
 "statement.pdf",
 "statement-tables.docx");

foreach (var table in imported) {
 Console.WriteLine($"Page {table.PageNumber}, table {table.TableIndex + 1}");
}

What it exports

  • Paragraphs, headings, rich runs, links, bookmarks, page breaks, lists, and common spacing/indentation settings.
  • Word sections, page size, orientation, margins, columns, headers, footers, page numbers, and document background color.
  • Tables with common Word table styling, repeated headers, cell fills, borders, alignment, merged cells, and rich text in cells.
  • Paragraph-aligned images, selected shapes, text boxes, content controls, simple form controls, footnote/endnote markers, and table-of-contents links where supported by the first-party PDF path.
  • Conversion warnings through PdfSaveOptions.Warnings and PdfSaveOptions.ConversionReport.

Options and diagnostics

Use PdfSaveOptions when callers need to override page geometry, metadata, page-number behavior, font family, or table-border fallback. Keep PdfSaveOptions.Warnings and PdfSaveOptions.ConversionReport visible in wrappers and user interfaces; unsupported Word features should become actionable diagnostics instead of silent README promises.

Boundaries

  • This package does not try to be a full Word renderer with perfect Microsoft Word parity.
  • Unsupported or simplified Word features should surface warnings rather than being hidden in the README as broad claims.
  • Reusable PDF layout work belongs in OfficeIMO.Pdf; Word-specific mapping belongs here.
  • PowerShell PDF workflows should be exposed through PSWriteOffice.

Related packages

  • - Word document model.
  • - PDF creation, reading, and manipulation engine.
  • - HTML/PDF bridge built on OfficeIMO converters.

Targets and license

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 is compatible.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.Word.Pdf:

Package Downloads
OfficeIMO.Html.Pdf

Bidirectional HTML/PDF converter for OfficeIMO - Thin adapter over OfficeIMO.Markdown.Html, OfficeIMO.Word.Html, and the first-party OfficeIMO.Pdf logical/read/render engines.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.40 60 6/16/2026
1.0.39 125 6/16/2026
1.0.38 84 6/15/2026
1.0.37 202 6/13/2026
1.0.36 173 6/12/2026
1.0.35 99 6/9/2026
1.0.34 239 6/5/2026
1.0.33 138 5/27/2026
1.0.32 97 5/26/2026
1.0.31 105 5/26/2026
1.0.30 104 5/23/2026
1.0.29 102 5/22/2026
1.0.28 96 5/21/2026
1.0.27 102 5/21/2026
1.0.26 89 5/20/2026
1.0.25 103 5/19/2026
1.0.24 99 5/18/2026
1.0.23 97 5/16/2026
1.0.22 97 5/14/2026
1.0.21 100 5/14/2026
Loading failed