GroupDocs.Editor for .NET API は、Microsoft Word、Excel、PowerPoint、Open Office ドキュメントおよびプレゼンテーションを編集するための正しい選択です。 GroupDocs.Editor は、高いパフォーマンスが要求されるサーバー サイドおよびバックエンド システムに適したスタンドアロン API です。 Microsoft や Open Office などのソフトウェアには依存しません。
GroupDocs.Editor for .NET は、開発者が数行のコードを使用して OTP ファイルを編集する簡単で直接的な方法を提供します。
PresentationEditOptions
クラス インスタンスを作成して設定しますEditor.Edit()
メソッドを呼び出して、WYSIWYG エディタで簡単に編集できる HTML 形式の OTP ドキュメントを取得します。Editor.Save()
メソッドを呼び出し、PresentationSaveOptions
クラスを使用して編集済みの OTP ファイルを保存しますGroupDocs.Editor for .NET API を使用した基本的なドキュメント編集は、いくつかの簡単な手順を実装することで実行できます。当社の API は、すべての主要なプラットフォームとオペレーティング システムでサポートされています。以下のコードを実行する前に、システムに次の前提条件がインストールされていることを確認してください。
// Load the OTP file into Editor with the optional PresentationLoadOptions
Editor editor = new Editor("source.otp", delegate { return new PresentationLoadOptions(); });
// Create and adjust the edit options
PresentationEditOptions editOptions = new PresentationEditOptions();
editOptions.SlideNumber = 1;//select a slide to edit
// Open input OTP document for edit — obtain an intermediate document, that can be edited
EditableDocument beforeEdit = editor.Edit(editOptions);
// Grab OTP document content and associated resources from editable document
string content = beforeEdit.GetEmbeddedHtml();
// Send the content to WYSIWYG-editor, edit it there, and send edited content back to the server-side
// This step simulates a such operation
string updatedContent = content.Replace("Title", "Edited Title");
// Grab edited content and resources from WYSIWYG-editor and create a new EditableDocument instance from it
EditableDocument afterEdit = EditableDocument.FromMarkup(updatedContent, null);
// Create a save options and select a desired output format
PresentationSaveOptions saveOptions = new PresentationSaveOptions(Formats.PresentationFormats.Otp);
// Save edited OTP document to the file
editor.Save(afterEdit, "edited.otp", saveOptions);
GroupDocs.Editor Live Demos Web サイトにアクセスして、今すぐ OTP を編集してください。 ライブデモには次の利点があります
APIをダウンロードする必要はありません
コードを書く必要はありません
ソースファイルをアップロードするだけです
ファイルを保存するためのダウンロードリンクを取得する