Hi,
Thanks for contacting support.
Adding more to Imran's comments, I have also tested the scenario using
Aspose.Pdf for Java 17.4 in Eclipse Juno project running over Windows 10 (x64) and I am unable to notice any issue. As per my observations, the border of table rows/cells is properly appearing. For your reference, I have also attached the output generated over my end. Can you please share some details regarding the version of API which you are using and some details regarding your working environment i.e. Operating System, JDK version etc. This information will help us in further investigating the issue.
Please note that for testing purposes, I have created a PDF document from scratch. Can you please test this scenario and in case you are facing issue related to specific document, please share the input file. We are sorry for this inconvenience.
[Java]
// Load source PDF document
Document doc = new Document();
doc.getPages().add();
// Initializes a new instance of the Table
com.aspose.pdf.Table table = new
com.aspose.pdf.Table();
// Set the table border color as LightGray
table.setBorder(new BorderInfo(BorderSide.All, .5f, Color.getLightGray()));
// set the border for table cells
table.setDefaultCellBorder(new BorderInfo(BorderSide.All, .5f, Color.getLightGray()));
// create a loop to add 10 rows
for (int row_count = 1; row_count < 10; row_count++) {
// add row to table
com.aspose.pdf.Row row = table.getRows().add();
// add table cells
row.getCells().add("Column
(" + row_count + ", 1)");
row.getCells().add("Column
(" + row_count + ", 2)");
row.getCells().add("Column
(" + row_count + ", 3)");
}
// Add table object to first page of input document
doc.getPages().get_Item(1).getParagraphs().add(table);
// Save updated document containing table object
doc.save("c:/pdftest/document_with_table.pdf");