Bottom borders of table merged with footer line in pdf

Hi
I am using Aspose.word 9.0. When I save word document, for table the bottom borders are not displayed in some pages as the row extends to next page. How can I prevent this?
When I save this word document into pdf, for tables at some pages, bottom borders are merged with Footer line. How can I prevent this?
FYI, I have attached the word and pdf.
Please reply ASAP.
Regards
Chirag

Hi

Thanks for your request. Please try using the following code:

Document doc = new Document("ReportPack.doc");
// Get all tables.
NodeCollection tables = doc.GetChildNodes(NodeType.Table, true);
foreach(Table table in tables)
{
    if (table.Rows.Count> 3)
    {
        foreach(Row row in table.Rows)
        {
            row.RowFormat.AllowBreakAcrossPages = false;
        }
    }
}
doc.Save("out.doc");
doc.Save("out.pdf");

Best regards,