PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

SVG in MigraDoc
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3347
Page 1 of 1

Author:  MariusIonut [ Tue Apr 26, 2016 8:39 pm ]
Post subject:  SVG in MigraDoc

Hello I'm new to everything related to PdfSharp or MigraDoc.

I work on a company that generates reports automatically containing mainly titles , simple text , tables and SVG images. My intention is to replace the actual bad implementation with a new better and faster one and as far as I searched MigraDoc seems like a very good candidate (to be mentioned that the reports must come in different formats , HTML, RTF, DOC, but mainly PDF).


After looking on samples and thru the code I couldn't figure out how to add SVG files in MigraDoc.

I even saw posts about this like :
viewtopic.php?f=2&t=3265 <- he uses "DrawSvgElement(gfx, SvgElement); // I draw a Svg Element with XGraphics method." but the code isn't shared

or

viewtopic.php?f=3&t=2612 <- but XImage.FromFile throws error "Additional information: No imaging component suitable to complete this operation was found."

My question is: How can I add a svg file to MigraDoc section or paragraph?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/