satheesh d190 reputationPosted Nov 27, 2021, 2:47 AM EST
+2
We can use the GroupDocs conversion which hep to convert the JPG or PNG file to SVG. And it is very simple way of conversion.
First you need to create a instance of type converter class and you need to mention the JPG or PNG file with its full path.
And then we need to choose the converter options.we need to choose the required format to convert this file. Finally this type convert.conert method is called and we need to pass the full path and format as the parameter to this call.
var baseConverter = new GroupDocs.Conversion.Converter("fullfilepath");
var convertedtype = baseConverter.GetPossibleConversions()["Conversiontype"].ConvertOptions;
Kip HackmanRank #2,595 · 536 reputationPosted May 24, 2022, 11:56 AM EDT
+2
You can use the LEADTOOLS Recognition SDK technology in your application.
https://www.leadtools.com/sdk/products/document
You can leverage the DocumentConverter class, to convert any LEADTOOLS supported file format to any other LEADTOOLS supported file format (i.e. JPEG, PNG, etc. to SVG). Since you will be converting image files to SVG document, you will need to enable OCR Engine support as well.
Here is some sample code:
string file = @"FILE PATH TO INPUT IMAGE FILE";
string outFile = @"FILE PATH TO OUTPUT IMAGE FILE";
using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.LEAD))
using (DocumentConverter docConverter = new DocumentConverter())
Sachin SinghRank #66 · 26.2K reputationPosted Nov 24, 2021, 2:16 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 23, 2021, 10:11 PM EST
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 24, 2021, 12:57 AM EST
satheesh d190 reputationPosted Nov 27, 2021, 2:47 AM EST
geetha geethaRank #7,130 · 248 reputationPosted Nov 27, 2021, 5:25 AM EST
Kip HackmanRank #2,595 · 536 reputationPosted May 24, 2022, 11:56 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts