Hello,
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.