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
<PackageReference Include="OfficeIMO.Publisher.Pdf" Version="3.6.1" />
<PackageVersion Include="OfficeIMO.Publisher.Pdf" Version="3.6.1" />
<PackageReference Include="OfficeIMO.Publisher.Pdf" />
paket add OfficeIMO.Publisher.Pdf --version 3.6.1
#r "nuget: OfficeIMO.Publisher.Pdf, 3.6.1"
#:package OfficeIMO.Publisher.Pdf@3.6.1
#addin nuget:?package=OfficeIMO.Publisher.Pdf&version=3.6.1
#tool nuget:?package=OfficeIMO.Publisher.Pdf&version=3.6.1
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 | 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.Pdf (>= 3.6.1)
- OfficeIMO.Publisher (>= 3.6.1)
-
.NETStandard 2.0
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Publisher (>= 3.6.1)
-
net10.0
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Publisher (>= 3.6.1)
-
net8.0
- OfficeIMO.Pdf (>= 3.6.1)
- OfficeIMO.Publisher (>= 3.6.1)
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.