Table borders disappear after table merge when converting to PDF

Hello,

I get the problem since the Aspose version 16.12.0 :

When I have multiple table that are separated by a line containing a text and I delete the lines programatically so that the table are merged, then the borders of the table disappears after PDF conversion.

With the following code:
File docxFile = new File("test_bug_conversion.docx");
FileInputStream fileInputStream = new FileInputStream(docxFile);
Document doc = new Document(fileInputStream);
// Remove paragraphs with @remove.
Node[] paragraphs = doc.getChildNodes(NodeType.PARAGRAPH, true).toArray();
for (Node paragraph : paragraphs) {
if (paragraph.getText().trim().equals("@remove")) {
paragraph.remove();
}
}
File outputFile = new File("testResult.pdf");
OutputStream outPdf = new FileOutputStream(outputFile);
SaveOptions so = SaveOptions.createSaveOptions(SaveFormat.PDF);
doc.save(outPdf, so);


When I apply this on the file, the lines containing @remove are deleted and the tables are merged correctly in Aspose library < 16.12.0.

On version 16.12.0 and above the borders of the merged table don't appear.

Find attached the docx used to reproduce the problem and an example of broken pdf.

I just checked with Aspose 17.4.0 and the problem is still there

Hi there,


Thanks for your inquiry. We have tested the scenario and noticed the reported regression issue, so logged a ticket WORDSNET-15161 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as WORDSNET-15161) have been fixed in this Aspose.Words for .NET 17.5 update and this Aspose.Words for Java 17.5 update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.