Aspose.Words.Document to Aspose.Pdf.Document

Hi,
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.1 F;
sec1.Paragraphs.Add(table1);
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.1 F);
pdf1.Save(filePath.Replace(".pdf", "new.pdf"));

Hi Derek,
Thanks for your inquiry.

You can convert Aspose.Words Document to Aspose.Pdf.Document by using the following code:

// Initialize Document
Document objDocument = new Document(@"c:\document.doc");
objDocument.Save(@"c:\out.pdf");

I would suggest you to explore following link too.
https://docs.aspose.com/words/net/introduction-and-creating-tables/

Best Regards,