Is there any way to convert a Aspose.Words.Document to Aspose.Pdf.Document ?
I have an eml file which is loaded in to Aspose.Words.Document which I then need to add a Table to. I have written a some code to add a Table to a new Pdf however I am not sure how to add this table to an existing pdf.
Aspose.Pdf.Generator.Pdf pdf1 = new Pdf();
float w = pdf1.PageSetup.PageWidth;
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
sec1.PageInfo.Margin.Left = 0;
sec1.PageInfo.Margin.Top = 0;
Aspose.Pdf.Generator.Table table1 = new Aspose.Pdf.Generator.Table();
table1.Left = 0.1F;
table1.ColumnWidths = w.ToString();
Aspose.Pdf.Generator.Row row1 = table1.Rows.Add();
row1.BackgroundColor = new Aspose.Pdf.Generator.Color(26,173,224);
Aspose.Pdf.Generator.Cell cell1Row1 = row1.Cells.Add("Hello world");
//cell1Row1.ColumnsSpan = 2;
cell1Row1.Border = new BorderInfo((int)BorderSide.All,0.1F);