Headers are overlapping and also table contents are not align overlapping with boundaries (ECDCTS-8189)

Hi Team,

When I am converting docx to pdf. In output pdf headers are overlapping. And, also table content are overlapping with boundaries of table. I have attached the input file, aspose-output and expected output in zip file also marked the errors in the screenshots.
files.zip (707.1 KB)

I have used below code :

String fileName = "C:\\Tasks\\Docs\\Circular preview.docx";
document.getLayoutOptions().setTextShaperFactory(HarfBuzzTextShaperFactory.getInstance());
document.save("C:\\Tasks\\output\\output.pdf");

Thanks,
Arvind

@rnara Thank you for reporting these problems to us. I have managed to reproduce them. The issues has been logged them as WORDSNET-23426 and WORDSNET-23427. We will keep you informed and let you know once they are resolved.

Hi Team,

Any updates on this issue?

Thanks,
Arvind

@rnara
WORDSNET-23426 has been analyzed. The issue occurs because header text wrapping around floaters is not supported by Aspose.Words layout. There is a wrapped shape in the header and the text is rendered below the shape instead of wrapping around it. The issue has been postponed till header text wrapping around floaters feature is supported.
The analysis of WORDSNET-23427 is not finished yet.

Hi Team

Any updates on this issue?

What will be the ETA for both issue WORDSNET-23426 and WORDSNET-23427 ?

Thanks,
Arvind

@rnara
WORDSNET-23426 - The issue has been postponed till header text wrapping around floaters feature is supported. Currently we cannot provide you any estimate when this feature is supported.

WORDSNET-23427 - The fix of this issue has been already implemented and currently is in Code Review stage. If everything goes smoothly the fix will be included into the next version of Aspose.Words.

Hi Team,

Any update on this issue?

Thanks,
Arvind

@rnara
WORDSNET-23426 - The issue is still postponed.

WORDSNET-23427 - The fix of this issue has been implemented and will be included in the next 22.3 version of Aspose.Words for Java, which will be released in a week or so.

@alexey.noskov
can you please provide any ETA for WORDSNET-23426 as customer wants fix ?

Thanks,
Arvind

@rnara Unfortunately, currently we cannot give you an estimate for this issue. Once there is some update, we will let you know.

Is there any possible workaround for WORDSNET-23426 ?
Thanks,
Arvind

@rnara You can try making shapes in header/footer inline as a workaround either programmatically or in MS Word:

Document doc = new Document("C:\\Temp\\in.docx");

for (Section s : doc.getSections()) {
    for (HeaderFooter hf: s.getHeadersFooters()) {
        Iterable<Shape> shapes = hf.getChildNodes(NodeType.SHAPE, true);
        for (Shape shape: shapes) {
            shape.setWrapType(WrapType.INLINE);
         }
    }
}

doc.save("C:\\Temp\\out.pdf");

But you should note this might cause rendering issues with other documents.

The issues you have found earlier (filed as WORDSNET-23427) have been fixed in this Aspose.Words for Java 22.3 update.

Hi @alexey.noskov,
Any update on this issue: WORDSNET-23426?

@rnara Unfortunately, currently, there are no news regarding this issue. The issue occurs because header text wrapping around floaters is not supported by Aspose.Words layout. This feature implementation is currently postponed.

Hi @alexey.noskov , Is there any update on this issue? Please share ETA.

Thanks
Rama

@rnara We already started work on the main issue, but it is quite complex feature and it is difficult to give some promises at this stage. We will be sure to let you know once the issue is resolved or we have more information for you. Please accept our apologies for you inconvenience.

Hi Team,

Any update on this issue?

Thanks,
Arvind

@rnara The issue is already resolved in the current codebase. The fix will be included into the next 23.5 version of Aspose.Words.

Hi Team,

Can you provide us the sample output file ?

Thanks,
Arvind