I'm using the sample MigraDoc code and it seems to be working fine. Now I want to add a couple of images at the end of the document. I suppose I have to do this with PDFSharp? How exactly would I go about adding an PNG image at the end of this sample code?
Code:
static void Main()
{
// Create a MigraDoc document
Document document = Documents.CreateDocument();
//string ddl = MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToString(document);
MigraDoc.DocumentObjectModel.IO.DdlWriter.WriteToFile(document, "MigraDoc.mdddl");
PdfDocumentRenderer renderer = new PdfDocumentRenderer(true, PdfSharp.Pdf.PdfFontEmbedding.Always);
renderer.Document = document;
renderer.RenderDocument();
// Save the document...
string filename = "HelloMigraDoc.pdf";
renderer.PdfDocument.Save(filename);
// ...and start a viewer.
Process.Start(filename);
}