AFAIK there is no interface to include XGraphics in MigraDoc documents.
I guess this has historic reasons. In the beginning there was MigraDoc, but without PDFsharp. Then we developed PDFsharp as a replacement for the PDF library we used before.
And: MigraDoc is a document generator for PDF, Word, and HTML. XGraphics are specific to the PDF renderer are not (currently) supported by the other two.
MigraDoc has a charting module. I don't know exactly how it works, but this is one way to include graphics.
MigraDoc supports various images. Creating a PNG file for inclusion in MigraDoc is another way.
This is how you add logos, but you can also add individually created graphics like charts etc.
Creating a PDF file with MigraDoc with blank pages or blank areas on pages is another way. After MigraDoc has completed, you can open the file with PDFsharp, access individual pages and add your graphics.
This is easier than it sounds - but not as easy as it could be.
_________________ Regards Thomas Hoevel PDFsharp Team
|