# C++アプリケーションを介してOTPをHTMLに変換する

> OTPドキュメントからHTML形式へのサンプルC++変換コード。任意のC++アプリケーション内でのバッチOTPからHTMLへの変換にサンプルコードを使用します。

Source: https://products.aspose.com/slides/ja/cpp/conversion/otp-to-html/
Updated: 2026-10-27



## C++を使用してOTPをHTMLに変換する方法

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

### 指示

```cs

PM> Install-Package Aspose.Slides.Cpp

```

### OTPからHTMLへのC++変換ソースコード

```cs
// Load the OTP.
SharedPtr<Presentation> prs = MakeObject<Presentation>(u"sourceFile.otp");
// Save in HTML format.
prs->Save(u"convertedFile.html", Aspose::Slides::Export::SaveFormat::Html);

```

## C++を介してOTPをHTMLに変換する手順

C ++開発者は、わずか数行のコードでOTPファイルをHTMLに簡単に変換できます。

1. C++プレゼンテーションオブジェクトのAspose.Slidesを使用してOTPファイルをロードします。

1. Save（）メソッドを呼び出します。

1. 出力ファイルパスを（HTML）ファイル拡張子で渡します。

1. HTMLファイルは指定されたパスに保存されます。

1. 互換性のあるプログラムでHTMLファイルを開きます。

## システム要求

C ++変換のサンプルコードを実行する前に、次の前提条件があることを確認してください。

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

## OTP を HTML にオンラインで変換

無料の Aspose.Slides Conversion アプリは、上記のコードと同じ API である [Aspose.Slides for C++](https://products.aspose.com/slides/ja/cpp/) で構築されています。アプリを開いて、ご自身の OTP ファイルで API に何ができるかをお確かめください。

- ブラウザーで動作し、インストールは不要です。
- コードを書く前に、Aspose.Slides がファイルをどう変換するかを確認できます。
- OTP ファイルをアップロードして、HTML として保存できます。
- 結果をダウンロードするか、さらにファイルを変換できます。

## その他のサポートされている変換

- [OTP TO BMP](https://products.aspose.com/slides/cpp/conversion/otp-to-bmp/) — ビットマップ画像
- [OTP TO EMF](https://products.aspose.com/slides/cpp/conversion/otp-to-emf/) — 強化されたメタファイル形式
- [OTP TO GIF](https://products.aspose.com/slides/cpp/conversion/otp-to-gif/) — グラフィカルな交換形式
- [OTP TO JPEG](https://products.aspose.com/slides/cpp/conversion/otp-to-jpeg/) — JPEG画像
- [OTP TO ODP](https://products.aspose.com/slides/cpp/conversion/otp-to-odp/) — OpenDocumentプレゼンテーション形式
- [OTP TO PDF](https://products.aspose.com/slides/cpp/conversion/otp-to-pdf/) — ポータブルドキュメントフォーマット
- [OTP TO PNG](https://products.aspose.com/slides/cpp/conversion/otp-to-png/) — ポータブルネットワークグラフィックス
- [OTP TO POT](https://products.aspose.com/slides/cpp/conversion/otp-to-pot/) — MicrosoftPowerPointテンプレートファイル
- [OTP TO POTM](https://products.aspose.com/slides/cpp/conversion/otp-to-potm/) — MicrosoftPowerPointテンプレートファイル
- [OTP TO POTX](https://products.aspose.com/slides/cpp/conversion/otp-to-potx/) — MicrosoftPowerPointテンプレートプレゼンテーション
- [OTP TO PPS](https://products.aspose.com/slides/cpp/conversion/otp-to-pps/) — PowerPointのスライドショー
- [OTP TO PPSM](https://products.aspose.com/slides/cpp/conversion/otp-to-ppsm/) — マクロ対応のスライドショー
- [OTP TO PPSX](https://products.aspose.com/slides/cpp/conversion/otp-to-ppsx/) — PowerPointのスライドショー
- [OTP TO PPT](https://products.aspose.com/slides/cpp/conversion/otp-to-ppt/) — Microsoft PowerPoint 97-2003
- [OTP TO PPTM](https://products.aspose.com/slides/cpp/conversion/otp-to-pptm/) — マクロ対応のプレゼンテーションファイル
- [OTP TO PPTX](https://products.aspose.com/slides/cpp/conversion/otp-to-pptx/) — XMLプレゼンテーション形式を開く
- [OTP TO SVG](https://products.aspose.com/slides/cpp/conversion/otp-to-svg/) — スケーラブルベクターグラフィックス
- [OTP TO TIFF](https://products.aspose.com/slides/cpp/conversion/otp-to-tiff/) — タグ付き画像形式
- [OTP TO XML](https://products.aspose.com/slides/cpp/conversion/otp-to-xml/) — 拡張マークアップ言語
- [OTP TO XPS](https://products.aspose.com/slides/cpp/conversion/otp-to-xps/) — XML用紙仕様
