PNG JPG BMP TIFF PPSM
Aspose.Slides  for Java

JavaでPPSM形式をマージする

サーバー側のJavaAPIを使用したネイティブPPSMドキュメントのマージ。

Javaを使用してPPSMファイルをマージする方法

PPSMファイルをマージするために、 [Aspose.Slides for Java](https://products.aspose.com/slides/ja/java) 機能豊富で強力で使いやすいJavaプラットフォーム用のマージAPIであるAPI。最新バージョンはから直接ダウンロードできます [Maven](https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides) 次の構成をpom.xmlに追加して、Mavenベースのプロジェクトにインストールします。

リポジトリ


<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository>

依存


<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>version of aspose-slides API</version>
    <classifier>jdk17</classifier>
</dependency>

JavaでPPSMファイルをマージする手順

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

  1. Presentationクラスのインスタンスを含む最初のPPSMファイルをロードします。

  2. Presentationクラスのインスタンスを含む2番目のPPSMドキュメントをロードします。

  3. 2番目のPPSMファイルの各スライドをループします。

  4. 反復ごとに、addClone()を使用して最初のファイルでスライドを追加します。

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

システム要求

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

-MicrosoftWindowsまたはJSP/JSFアプリケーションおよびデスクトップアプリケーション用のJavaランタイム環境と互換性のあるOS。 -最新バージョンのAspose.SlidesforJavaを直接入手する [Maven](https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides)。

 

PPSMファイルのマージ-Java

// Load first PPSM File
Presentation prest1 = new Presentation("prest1.ppsm");

// Load second PPSM File
Presentation prest2 = new Presentation("prest2.ppsm");

// Merge
for (ISlide slide : prest2.getSlides()) {
	// Merge from source to target
	prest1.getSlides().addClone(slide);
}

// Save the File
prest1.save("merged-presentation.ppsm", SaveFormat.Ppsm);  
 
  • PDFファイルをオンラインで結合

    Python で PDF をマージする方法

    Aspose.Slides forJavaAPIについて

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

    Online PPSM Merger Live Demos

    Merge PPSM 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 PPSM files.
      It will be merged and concatenated instantly.

    PPSM PPSM ファイル形式とは

    Files with PPSM extension represent Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher. Another similar file format is PPTM which differs in opening with Microsoft PowerPoint in editable format instead of running as Slide Show. When run as slide show, the PPSM file shows the presentation slides with contents intact in the slide show and is in read-only mode by default. PPSM files can still be edited in Microsoft PowerPoint by opening it in PowerPoint.

    続きを読む

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

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

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