PNG JPG BMP TIFF POTM
Aspose.Slides  for C++

C++を使用してPOTMファイルをマージする

サーバー側のC++APIを使用したPOTMドキュメントのマージ。

C++を使用してPOTMファイルをマージする方法

POTMファイルをマージするために、 [Aspose.Slides for C ++](https://products.aspose.com/slides/cpp) 機能が豊富で強力で使いやすいC++プラットフォーム用のドキュメントマージAPIであるAPI。最新バージョンを直接ダウンロードできます。開くだけです。 [NuGet](https://www.nuget.org/packages/aspose.slides) パッケージマネージャー、検索 ** Aspose.Slides.Cpp ** とインストールします。パッケージマネージャーコンソールから次のコマンドを使用することもできます。

指示


PM> Install-Package Aspose.Slides.Cpp

C++でPOTMファイルをマージする手順

[Aspose.Slides for C ++](https://products.aspose.com/slides/cpp)APIとマージおよび連結する基本的なドキュメントは、わずか数行のコードで実行できます。

  1. 両方のPOTMファイルをロードします。

  2. get \ _Slides()メソッドを使用して、各スライドを反復処理します。

  3. AddClone関数を使用して、目的のファイルとマージします。

  4. Save()メソッドを使用して、指定したパスに保存します

システム要求

Aspose.Slides for C ++は、すべての主要なプラットフォームとオペレーティングシステムでサポートされています。次の前提条件があることを確認してください。

-MicrosoftWindowsまたはWindows32ビット、Windows 64ビット、Linux64ビット用のC++ランタイム環境と互換性のあるOS。 -プロジェクトで参照されているC++DLLのAspose.Slides。

 

POTMファイルのマージ-C++

// The path to the documents directory.
const String sourceFilePath1 = u"SourceFile2.potm";
const String sourceFilePath2 = u"SourceFile3.potm";
const String outputFilePath = u"mergedOutput.potm";

// Instantiate Presentation class
SharedPtr<Presentation> presentation1 = MakeObject<Presentation>(sourceFilePath1);
SharedPtr<Presentation> presentation2 = MakeObject<Presentation>(sourceFilePath2);

for (SharedPtr<ISlide> slide : presentation2->get_Slides()){
	// Merge from source to destination 
	presentation1->get_Slides()->AddClone(slide);
}

// Save the presentation
presentation1->Save(outputFilePath, SaveFormat::Potm);  
 
  • PDFファイルをオンラインで結合

    Python で PDF をマージする方法

    Aspose.Slides for C++APIについて

    Aspose.Slides APIを使用して、Microsoft PowerPointドキュメントの読み取り、書き込み、操作、およびPDF、XPS、HTML、TIFF、ODP、その他のさまざまな形式への変換を行うことができます。新しいファイルを最初から作成し、サポートされている関連する形式で保存できます。 Aspose.Slidesは、プレゼンテーション、スライド、要素を作成、解析、または操作するためのスタンドアロンAPIであり、MicrosoftやOpenOfficeなどのソフトウェアに依存しません。

    Online POTM Merger Live Demos

    Merge POTM documents right now by visiting our Live Demos website . The live demo has the following benefits

      No need to download Aspose API.
      No need to write any code.
      Just upload your POTM files.
      It will be merged and concatenated instantly.

    POTM POTM ファイル形式とは

    Files with POTM extension are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. These settings can include styles, backgrounds, colour palette, fonts and defaults along with macros that consist of custom functions for doing particular task. They may also be opened by a previous version of PowerPoint with Open XML document support installed. POTM files can be opened in Microsoft PowerPoint for editing like any other PowerPoint file.

    続きを読む

    その他のサポートされているマージ形式

    C ++を使用すると、を含む他の多くのファイル形式をマージすることもできます。

    ODP (OpenDocumentプレゼンテーション形式)
    OTP (OpenDocument標準フォーマット)
    POT (MicrosoftPowerPointテンプレートファイル)
    POTX (MicrosoftPowerPointテンプレートプレゼンテーション)
    PPS (PowerPointのスライドショー)
    PPSM (マクロ対応のスライドショー)
    PPSX (PowerPointのスライドショー)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (マクロ対応のプレゼンテーションファイル)
    PPTX (XMLプレゼンテーション形式を開く)