groupdocs-editor / GroupDocs.Editor-for-.NET

GroupDocs.Editor for .NET examples, plugins and showcase projects
https://products.groupdocs.com/editor/net
MIT License
5 stars 5 forks source link

Document format is changed #34

Closed atirtahirgroupdocs closed 2 months ago

atirtahirgroupdocs commented 2 years ago

This issue is raised in https://forum.groupdocs.com/t/encountered-an-error-when-saving-document-in-editor-demo/10597/2

Hi,

Please find the sample/source file and screenshots attached. Although this issue occurs for all the source files. The issue is, when we add text , highlight the text and save it. The format of the document is changed. Doesn't matter is license is applied or not. Could you please take a look?

Thanks screenshots.zip

yevgen-nykytenko commented 2 years ago

@denis-gvardionov Please take a look. Thanks.

denis-gvardionov commented 2 years ago

I have read the original forum thread and have investigated the described scenario with provided input sample document (found here). From what I can see the problem is regarding roundtrip conversion - when input DOCX document is opened for editing in GitHub sample demo WebForms application and then saved back to the DOCX format without any actual editing of the content, and the resultant version has incorrect content width - it is like "tighten" from left and right sides. I've tried to reproduce it using GroupDocs.Editor for .NET library itself, without using a GitHub-provided WebForms web application and was not able to reproduce it. From this I'm making a conclusion that there is something wrong in the GitHub sample demo WebForms application, but not in the GroupDocs.Editor for .NET library itself. So you need to ping someone from support team, I guess, who is responsible for the exactly GitHub sample demo.

denis-gvardionov commented 2 years ago

@atirtahirgroupdocs @stupakviktor @yevgen-nykytenko

Issue with corrupted document layout during its saving is solved. Updated sample project can be downloaded here: https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET/tree/master/Demos/WebForms

If you want to manually update the previously downloaded un-updated project please notice the next steps: 1) Update a "GroupDocs.Editor for .NET" NuGet package to the version 22.3.2-alpha-20220404065929 or higher, or wait until the official version of GroupDocs.Editor for .NET will be released (must be newer then 21.10). 2) If you want to use official NuGet channel "NuGet official test package source" along with beta-version of "GroupDocs.Editor for .NET" 22.3.2-alpha-20220404065929, then in the "Package Manager Settings" you should add a new "packageSources": <add key="NuGet official test package source" value="https://int.nugettest.org/api/v2" /> This will allow to use beta-packages in the official NuGet channel.