Hi
Hi Gaurav,
Aspose.Words.Document doc = new Aspose.Words.Document(MyDir + “Map_Html_For_AsposeWords_Table_Format.html”);<o:p></o:p>
DocumentBuilder builder = new DocumentBuilder(doc);
Section currentSection = builder.CurrentSection;
PageSetup pageSetup = currentSection.PageSetup;
pageSetup.LeftMargin = 1d;
pageSetup.RightMargin = 1d;
pageSetup.BottomMargin = 0d;
pageSetup.FooterDistance = 10;
pageSetup.HeaderDistance = 10;
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary); // for instance first page header
builder.PageSetup.LeftMargin = 10d;
Aspose.Words.Tables.Table table = builder.StartTable();
// Clear table borders
builder.CellFormat.ClearFormatting();
builder.InsertCell();
// Set first cell to 1/3 of the page width.
builder.CellFormat.PreferredWidth = Aspose.Words.Tables.PreferredWidth.FromPercent(100 / 3);
builder.Write("tseting@testing.com | Page ");
builder.InsertField("PAGE", "");
builder.Write(" of ");
builder.InsertField("NUMPAGES", "");
// Align this text to the left.
builder.CurrentParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Left;
builder.InsertCell();
// Set the second cell to 2/3 of the page width.
builder.CellFormat.PreferredWidth = Aspose.Words.Tables.PreferredWidth.FromPercent(100 * 2 / 3);
String imageFileName = Path.Combine(MyDir, "logo-test.png");
builder.InsertImage(imageFileName, Aspose.Words.Drawing.RelativeHorizontalPosition.Page, 200, Aspose.Words.Drawing.RelativeVerticalPosition.Page, 10, 25, 25, Aspose.Words.Drawing.WrapType.Tight);
// Align this text to the right.
builder.CurrentParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.EndRow();
builder.EndTable();
builder.MoveToDocumentEnd();
if(!doc.FirstSection.HeadersFooters[HeaderFooterType.FooterPrimary].LastParagraph.HasChildNodes)
doc.FirstSection.HeadersFooters[HeaderFooterType.FooterPrimary].LastParagraph.Remove();
doc.Save(MyDir + "Out.pdf");