Hi,
Users can upload word document and those are saved in project folder.
My requirement is user can edit and save uploaded word document in browser. After save the word content need to export it as pdf.
I have tried to convert word document content to html and showing it in editor. But images and some alignments are not properly coming. I have used Syncfusion, Aspose but those not give me correct solution.
I have also checked for Microsoft apis but those need to be save file in cloud, in my requirement file must be save in project folder not in onedrive, sharepoint, cloud etc.
Any ideas will be appreciated.
Thanks,
Ajay.
Kip HackmanPosted Jun 2, 2023, 2:15 PM
You can use LEADTOOLS HTML5/JS Document Editor SDK technology in your application.
https://www.leadtools.com/sdk/document/document-editor-html5
You can leverage the DocumentEditor object, which will allow you to load or create and edit Microsoft Word Documents(DOC/DOCX), as well as PDF, RTF, and more, in an HTML5/JS application.
Here is a link to a sample tutorial or how to load, edit and save documents using the Document Editor.
https://www.leadtools.com/help/sdk/v22/tutorials/html5-js-import-edit-save-documents-with-the-document-editor.html
Thulasiram pakalaPosted Jun 1, 2023, 5:17 AM
Hi Use CK Editro toll for that u down load toll and call that dll in you r project in you need to copy the word document data for display u need to display div.innerhtml =whate ever you saving that data u bind to this tag it will display same formate and any modification in that onle u make and update it
Leon DPosted May 31, 2023, 1:14 AM
You may take a look at Spire.Cloud.Word, which is an online Word document editor for viewing, editing, creating, converting, and printing Word documents in browsers.
https://www.e-iceblue.com/Introduce/spire-cloud-word-for-net.html
Rajkiran SwainPosted May 30, 2023, 7:18 AM
To enable editing of Word documents in a browser and save them back to the project folder, you can consider integrating Microsoft Office Online (Office Web Apps) into your application. Office Online allows users to edit Word documents directly in a web browser without the need for additional software.
Here's a general approach you can follow:
1. Set up Office Online integration: Ensure you have the necessary licensing and infrastructure to host Office Online or utilize Office Online provided by Microsoft, such as through the Office 365 subscription.
2. Implement document upload: Allow users to upload Word documents to your application and save them to the project folder on your server.
3. Generate sharing links: Generate sharing links or embed codes for the uploaded Word documents using Office Online APIs. These links will open the documents in the Office Online editor.
4. Embed the Office Online editor: Embed the Office Online editor within your web application using the generated sharing links or embed codes. This will enable users to edit the Word documents directly in the browser.
5. Save changes: Implement the necessary logic to save the changes made by users in the Office Online editor back to the corresponding Word document in the project folder on your server.
6. Convert to PDF: Once the changes are saved, you can use libraries or tools like Aspose, Syncfusion, or Microsoft Graph APIs to convert the edited Word document to PDF format. These libraries usually provide APIs or methods to convert Word documents to PDF programmatically.
Ensure that you handle file concurrency and synchronization issues if multiple users are allowed to edit the same document simultaneously. Also, consider implementing proper security measures to protect user data and files.
Note that the exact implementation details may vary based on the specific tools, frameworks, and platforms you are using. Consulting the documentation and resources provided by Microsoft and the libraries you mentioned can help you with the technical implementation.