I had a look at the "Mix MigraDoc and PDFSharp" sample but found how you perform the rendering a little confusing. If I wanted to add a barcode after I've rendered my MigraDoc document I know I can do the following:
Code:
var renderer = new PdfDocumentRenderer(false, PdfSharp.Pdf.PdfFontEmbedding.Always);
renderer.Document = doc;
renderer.RenderDocument();
AddBarcode(renderer.PdfDocument);
But how might I access the PDFSharp API part way through building a MigraDoc Document? For example:
Code:
section.AddParagraph("Before barcode");
// AddBarcode(???)
section.AddParagraph("After barcode");