I am extracting content from uploaded word document and converting it to html.If the extracted content have table at the end. Then, when recreating the same word file (same as imported document) with extracted and converted html content (converted html having the extra space at the end)at the end finding an extra line space(even in the converted html also containing the extra P tag). I am uploading the same source with input and output.ExtraSpaceIssue.zip (147.1 KB)
Is any setting i have to add before converted to html?
Do you see the same problem in this output DOCX file? If yes, then please create and attach a comparison screenshot which highlights (encircles) the problematic area in this Aspose.Words 20.6 generated DOCX (with respect to expected document). We will then investigate the issue further and provide you more information.
Please also share this converted HTML file with us for further testing.
Do you see the same problem in this output DOCX file? If yes, then please create and attach a comparison screenshot which highlights (encircles) the problematic area in this Aspose.Words 20.6 generated DOCX ( with respect to expected document ). We will then investigate the issue further and provide you more information.
I can see the issue in the attached file. I have added circle around the extra space in the below screenshot. space_Issue.png (187.8 KB)
One simple way to workaround this problem is to manually post-process the final document and remove empty Paragraphs appearing right after the Tables using the following code:
I tried with your code but, what happening is it removes empty space added by my own also. I wants to remove only that extra space added by aspose. My generated document should be exactly same as input document. but when table is the end its creating an extra line break not in the uploaded (input) document.
I tried solution. But it also deleting if user add a space after table. In this input document input.zip (13.4 KB)
. You can see in the first table two space add after table and before |/p| , second table has 1 space and last one with no space.
But in the output output.zip (13.0 KB) you can see after first table only one space is show and second table has no space. I want exact same output as input.