PNG JPG BMP TIFF OTP
Aspose.Slides  for Java

JavaでOTP形式をマージする

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

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

OTPファイルをマージするために、 [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でOTPファイルをマージする手順

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

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

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

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

  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)。

 

OTPファイルのマージ-Java

// Load first OTP File
Presentation prest1 = new Presentation("prest1.otp");

// Load second OTP File
Presentation prest2 = new Presentation("prest2.otp");

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

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

    Python で PDF をマージする方法

    Aspose.Slides forJavaAPIについて

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

    Online OTP Merger Live Demos

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

    OTP OTP ファイル形式とは

    Files with .OTP extension represent presentation template files created by applications in OASIS OpenDocument standard format. The contents of such a file include presentation information in the form of slides with text, images, shapes, multimedia content, transition effects and other slide elements. These template files are used for creating new presentations quickly based on the styling information stored in the template itself. OTP files can be created and saved with several different applications such as Impress that comes with OpenOffice suite and Microsoft PowerPoint. The OTP file format is similar to Microsoft PowerPoint template files .POT and .POTX.

    続きを読む

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

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

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