将 PUB 转换为 PDF

MS Publisher 到 PDF C++ 转换器。 使用我们尖端的 C++ API 解决方案释放转换的力量!

 

{{i18n.overview.p1}}

{{i18n.overview.p2}}

{{i18n.overview.p3}}

{{i18n.overview.p4}}

{{i18n.overview.p5}}

C++ 上的 PUB 到 PDF 转换

  1. 使用 PubFactory 类的 CreateParser() 方法加载 PUB 文件。
  2. 使用 IPubParser 接口的 Parse() 方法解析文件。
  3. 使用 IPdfConverter 接口的 ConvertToPdf() 方法运行转换。

开始使用 C++ PUB API

  1. 在命令行中运行 nuget install Aspose.PUB.cpp,或在 Visual Studio 的包管理器控制台中使用 Install-Package Aspose.PUB.cpp
  2. 或者,从 downloads 获取离线 MSI 安装程序或 ZIP 文件中的 DLL。

用于 PUB 到 PDF 转换的 C++ 代码

    using namespace Aspose::PUB;
    // Load PUB file
    System::SharedPtr<IPubParser> parser = PubFactory::CreateParser("input.pub");
    // Parse file 
    System::SharedPtr<Document> document = parser->Parse();
    // Convert PUB to PDF
    PubFactory::CreatePdfConverter()->ConvertToPdf(document, "output.pdf");

PUB 到 PDF 转换是将 PUB 转为任何其他格式的必需步骤。完成后,已转换的文件可以再转换为所需的格式。

您也可以尝试 PUB to PDF 跨平台应用程序。它拥有非常简洁的界面,整个过程仅需几秒钟。

该解决方案允许您:转换多个 Publisher 文件,将 PUB 转换为 PDF,并将转换后的文档保存在您的设备上。

  

Support and Learning Resources