GroupDocs.Editor for .NET API เป็นตัวเลือกที่เหมาะสมในการแก้ไขเอกสาร Microsoft Word, Excel, PowerPoint, Open Office และงานนำเสนอ GroupDocs.Editor เป็น API แบบสแตนด์อโลนที่เหมาะสำหรับระบบฝั่งเซิร์ฟเวอร์และระบบแบ็คเอนด์ที่ต้องการประสิทธิภาพสูง ไม่ได้ขึ้นอยู่กับซอฟต์แวร์ใดๆ เช่น Microsoft หรือ Open Office
GroupDocs.Editor for .NET เป็นวิธีที่ง่ายและตรงไปตรงมาสำหรับนักพัฒนาในการแก้ไขไฟล์ OTP โดยใช้โค้ดสองสามบรรทัด
PresentationEditOptions
สำหรับรูปแบบไฟล์ OTPEditor.Edit()
และรับเอกสาร OTP ในรูปแบบ HTML ที่แก้ไขได้อย่างง่ายดายด้วยตัวแก้ไข WYSIWYG ใดๆEditor.Save()
และบันทึกไฟล์ OTP ที่แก้ไขแล้วโดยใช้คลาส PresentationSaveOptions
การแก้ไขเอกสารขั้นพื้นฐานด้วย 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);
แก้ไข OTP ทันทีโดยไปที่เว็บไซต์ GroupDocs.Editor Live Demos การสาธิตสดมีประโยชน์ดังต่อไปนี้
ไม่จำเป็นต้องดาวน์โหลดเอพีไอ
ไม่จำเป็นต้องเขียนรหัสใดๆ
เพียงแค่อัปโหลดแฟ้มแหล่งที่มา
รับลิงค์ดาวน์โหลดเพื่อบันทึกไฟล์