OfficeIMO.Publisher.Pdf 3.6.1

Prefix Reserved
dotnet add package OfficeIMO.Publisher.Pdf --version 3.6.1
                    
NuGet\Install-Package OfficeIMO.Publisher.Pdf -Version 3.6.1
                    
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.Publisher.Pdf" Version="3.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Publisher.Pdf" Version="3.6.1" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Publisher.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.Publisher.Pdf --version 3.6.1
                    
#r "nuget: OfficeIMO.Publisher.Pdf, 3.6.1"
                    
#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.Publisher.Pdf@3.6.1
                    
#: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.Publisher.Pdf&version=3.6.1
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Publisher.Pdf&version=3.6.1
                    
Install as a Cake Tool

OfficeIMO.Publisher.Pdf

Convert recovered Publisher pages to PDF through the shared OfficeIMO drawing and PDF engines. The adapter references OfficeIMO.Publisher and OfficeIMO.Pdf; it does not decode .pub records itself or require Publisher to be installed.

using OfficeIMO.Publisher;
using OfficeIMO.Publisher.Pdf;

var publication = PublisherDocument.Load("brochure.pub");
OfficeConversionReport report = publication.SaveAsPdf("brochure.pdf");

foreach (var diagnostic in report.Diagnostics)
    Console.WriteLine($"{diagnostic.LossKind}: {diagnostic.Message}");
Console.WriteLine($"Fidelity loss: {report.HasLoss}");

Document pages retain publication order and physical dimensions with zero added margins. Master definitions are already applied by the Publisher reader and do not become separate PDF pages. Text and simple shapes remain drawing elements; pictures use the PDF engine's managed image handling.

Fonts supplied through PublisherLoadOptions.Fonts are retained by the page scene and applied through the PDF engine's rendering profile. This keeps scoped font selection consistent between story flow, PDF measurement and embedded glyphs. For example:

using OfficeIMO.Drawing;

var fonts = new OfficeFontFaceCollection()
    .Add("Arial", File.ReadAllBytes("assets/Arial.ttf"));
var withFonts = PublisherDocument.Load("newsletter.pub",
    new PublisherLoadOptions { Fonts = fonts });
withFonts.SaveAsPdf("newsletter.pdf");

The font support contract describes the qualified native PDF baseline profile. Font substitution, broader line breaking and other native layout profiles remain reported approximations.

The report combines the PublisherReadReport diagnostics with PDF rendering and serialization findings. Inspect it before accepting a conversion; successful saving does not imply native fidelity. Set FailOnLoss on PublisherPdfExportOptions to make reported loss an OfficeConversionException before anything is written.

ToPdf(options, out report) returns the PDF model, ToPdfAsync returns it with the report, and SaveAsPdf/SaveAsPdfAsync write a path or a caller-owned stream, which stays open. All routes accept cancellation; the options and their PdfCreateOptions are cloned for the operation. The async forms run the CPU-bound conversion on the thread pool and write the output asynchronously. Refer to the Publisher support contract for profile and reconstruction limits, including linked text flow and native metafile placeholders.

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.Publisher.Pdf are published in the generated operation contract.

Product 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. 
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.Publisher.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.1 0 11/10/2026
3.6.0 83 11/6/2026
3.5.3 145 10/31/2026
3.5.2 138 10/24/2026
3.5.1 187 10/16/2026