Use one of the available methods to load a document into the editor:
// From uploaded fileif (fileUpload.HasFile){ docEditor.SetDocumentFromBytes( fileUpload.FileBytes, fileUpload.FileName );}// From server filedocEditor.SetDocumentFromFile( Server.MapPath("~/documents/sample.docx"));
4
Handle document changes
Retrieve edited documents and convert to PDF if needed:
protected void btnDownload_Click(object sender, EventArgs e){ // Get edited document byte[] documentBytes = docEditor.GetEditedDocumentBytes(); // Or convert to PDF byte[] pdfBytes = docEditor.ConvertCurrentDocumentToPdfBytes(); // Download Response.ContentType = "application/pdf"; Response.AddHeader("Content-Disposition", "attachment; filename=document.pdf"); Response.BinaryWrite(pdfBytes); Response.End();}
Key Features
Everything you need to integrate document editing into your application
Document Editing
Full-featured document editor supporting Word, Excel, and PowerPoint formats
View Mode
Display documents in read-only mode with full formatting preservation
PDF Conversion
Convert any document to PDF with a single method call
JWT Security
Built-in JWT authentication for secure document operations
File Management
Upload, download, and manage documents with integrated handlers
JavaScript API
Client-side API for advanced editor customization and control