We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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.