Embed SVG in PDF programmatically in .NET C #

Does anyone know how to create a pdf from C # and add an SVG document inside this PDF?

itextsharp cannot do this.

I convert SVG to image thanks to this library (http://svg.codeplex.com/), but I need to save vector graphics because the image is pixelated.

Does anyone know a library to do this?

Thanks,

+7
source share
3 answers

PrinceXML does a great job with SVG, however it is not completely free, which means that the free version puts a small logo in the output PDF. You can find out more here: http://www.princexml.com/doc/7.0/svg/

PDFJet lets you create lines, circles, polygons, and other primitive drawing tools. You can create a class to analyze your SVG, and then draw the appropriate circles, arcs, lines, etc. And use PDFJet to create a PDF file. PDFJet can be downloaded here: http://pdfjet.com/os/edition.html

Other, then I do not think that there are many other options for what you want to do.

+3
source

PDFKit.NET3 can embed an SVG document into PDF while preserving vectors.

+2
source

webSupergoo ABCpdf is also a good commercial option, a little less expensive (ABCpdf Std costs $ 329 and ABCpdf Pro costs $ 479 if you want x64 rendering or support). Version 7 did a terrible job when working with SVG files (it could only load a small subset, often with problems), but I understand (did not test it first hand) that version 8 (and now 9) significantly improved support for SVG switching to the engine Gecko .

+1
source

All Articles