Skip to content
| Marketplace
Sign in
Visual Studio>Controls>Aspose.PUB for C++
Aspose.PUB for C++

Aspose.PUB for C++

Aspose Marketplace

|
71 clicks
| (0) | Free Trial
Manipulate Publisher files as well as convert PUB format to PDF from within any native C++ application.
Get Started

Process PUB files via C++ API

Nuget Nuget

banner

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

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

PUB File Processing Features

  • Read Microsoft Publisher (PUB) files for conversion to PDF format.
  • Read & Edit metadata of PUB files via API.

Read PUB Files

Microsoft Publisher: PUB

Save PUB As

Fixed Layout: PDF

Platform Independence

You can use Aspose.PUB for C++ to build any type of 32-bit and 64-bit C++ applications. You can use it on the server and client-side by simply copying the assembly without worrying about other services or modules.

Get Started

Are you ready to give Aspose.PUB for C++ a try? Simply execute Install-Package Aspose.PUB.Cpp from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.PUB for C++ and want to upgrade the version, please execute Update-Package Aspose.PUB.Cpp 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.

// Initialize license object
auto license = System::MakeObject<Aspose::Pub::License>();
// Set license
license->SetLicense(dataDir() + u"License\\Aspose.PUB.C++.lic");

System::String filePub = dataDir() + u"1.pub";
System::String filePdf = dataDir() + u"1.pdf";

System::Console::WriteLine(u"Convert starting...");

System::SharedPtr<IPubParser> parser = PubFactory::CreateParser(filePub);
System::SharedPtr<Document> document = parser->Parse();
PubFactory::CreatePdfConverter()->ConvertToPdf(document, filePdf);

System::Console::WriteLine(u"Convert done.");

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft