Aspose.PUB 22.5.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.PUB --version 22.5.0                
NuGet\Install-Package Aspose.PUB -Version 22.5.0                
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="Aspose.PUB" Version="22.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.PUB --version 22.5.0                
#r "nuget: Aspose.PUB, 22.5.0"                
#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.
// Install Aspose.PUB as a Cake Addin
#addin nuget:?package=Aspose.PUB&version=22.5.0

// Install Aspose.PUB as a Cake Tool
#tool nuget:?package=Aspose.PUB&version=22.5.0                

MS Publisher® PUB Converter API with .NET Core 6.0 Support

Version 22.5.0 Nuget

banner

Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.PUB for .NET is a simple API that allows you to read & convert Microsoft Publisher® (PUB) files to PDF format. It also provides easy-to-understand interfaces to edit the metadata of PUB files.

PUB File Processing Features

What's new in v22.5.0

.NET Core 6.0 Support

From this release onwards Aspose.PUB supports .NET Core 6.0 as well. This on-premise C# API is also in compliance with .NET 5.0, .NET Standard 2.1, and .NET Framework 4.0. The following C# code example demonstrates how easy it is to convert Microsoft Publisher PUB format to resultant Adobe Acrobat PDF file.

/ For complete examples and data files, please go to https://github.com/aspose-pub/Aspose.PUB-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Data();

string fileName = dataDir + "halloween-flyer.pub";

var parser = PubFactory.CreateParser(fileName);

var doc = parser.Parse();

Aspose.Pub.PubFactory.CreatePdfConverter().ConvertToPdf(doc, dataDir + "result_out.pdf");

For a complete list of features, enhancements, and bug fixed in this release please visit, Aspose.PUB for .NET 22.5 Release Notes.

Read PUB Files

Microsoft Publisher: PUB

Save PUB As

Fixed Layout: PDF

Platform Independence

You can use Aspose.PUB for .NET to develop applications in any development environment that targets the .NET platform including .NET Framework, .NET Core & Mono to develop both 32-bit & 64-bit applications.

Get Started with Aspose.PUB for .NET

Are you ready to give Aspose.PUB for .NET a try? Simply execute Install-Package Aspose.PUB from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.PUB for .NET and want to upgrade the version, please execute Update-Package Aspose.PUB to get the latest version.

Convert a Microsoft Publisher File to PDF using C# Code

You can execute the below code snippet to see how Aspose.PDF API performs in your own development environment or check the GitHub Repository for other common usage scenarios.

var parser = PubFactory.CreateParser(dir + "template.pub");
var doc = parser.Parse();
PubFactory.CreatePdfConvertor().ConvertToPdf(doc, dir + "output.pdf");

Edit Metadata of Microsoft Publisher Files

IPubParser parser = PubFactory.CreateParser(dir + "template.pub");
Document document = parser.Parse();

document.DocumentSummaryInfo.SetCategory("category");
document.DocumentSummaryInfo.SetCompany("company");
document.DocumentSummaryInfo.SetLanguage("language");

document.SummaryInfo.SetComments("comments");
document.SummaryInfo.SetKeywords("keywords");
document.SummaryInfo.SetLastAuthor("last author");
document.SummaryInfo.SetTitle("title");
document.SummaryInfo.SetSubject("subject");

Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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 Aspose.PUB:

Package Downloads
Aspose.Total

Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.10.0 3,093 10/29/2024
24.8.0 15,338 8/17/2024
24.7.0 11,279 7/20/2024
24.5.0 12,517 5/11/2024
24.3.0 12,465 3/29/2024
23.12.0 26,395 12/19/2023
23.6.0 69,016 6/17/2023
23.5.0 1,454 6/2/2023
22.11.0 69,432 11/11/2022
22.6.0 73,649 6/2/2022
22.5.0 19,477 5/6/2022
21.9.1 59,373 9/30/2021
21.9.0 659 9/22/2021
21.6.0 16,984 6/17/2021
21.4.0 38,030 4/23/2021
20.4.0 56,919 4/17/2020
20.2.0 5,119 2/14/2020
19.12.0 3,493 12/26/2019
19.10.1 3,659 10/31/2019
19.10.0 1,019 10/30/2019