GroupDocs.Editor for .NET API는 Microsoft Word, Excel, PowerPoint, Open Office 문서 및 프레젠테이션을 편집하는 데 적합한 선택입니다. GroupDocs.Editor는 고성능이 요구되는 서버 측 및 백엔드 시스템에 적합한 독립 실행형 API입니다. Microsoft 또는 Open Office와 같은 소프트웨어에 의존하지 않습니다.
GroupDocs.Editor for .NET는 개발자가 몇 줄의 코드를 사용하여 OTP 파일을 편집할 수 있는 쉽고 간단한 방법을 제공합니다.
PresentationLoadOptions
클래스를 사용하여 Editor
클래스의 인스턴스를 만들고 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 라이브 데모 웹사이트를 방문하여 OTP을(를) 편집하세요. 라이브 데모에는 다음과 같은 이점이 있습니다.
API를 다운로드할 필요가 없습니다
코드를 작성할 필요가 없습니다.
소스파일만 올려주세요
파일 저장을 위한 다운로드 링크 받기