How can I convert EPS to SVG format from C# project?

Thanks for the information, but using a C/C++ library in an ASP.NET C# project doesn't work, can you please provide a C# source code example?

Thanks again for your help,
=========================
Thanks for your message, you can call VeryDOC Postscript to PDF Converter Command Line and PDF to Vector Converter Command Line products from your C# project easily, please refer to following C# example source code,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System.Diagnostics;

class Program
{
static void Main()
{
LaunchCommandLineApp();
}

/// <summary>
/// Launch the legacy application with some options set.
/// </summary>
static void LaunchCommandLineApp()
{
// Use ProcessStartInfo class
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = false;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.FileName = "C:\\test\\ps2pdf.exe";
startInfo.Arguments = "C:\\test.eps C:\\test.pdf";

try
{
// Start the process with the info we specified.
// Call WaitForExit and then the using statement will close.
using (Process exeProcess = Process.Start(startInfo))
{
exeProcess.WaitForExit();
}
}
catch
{
// Log error.
}

startInfo.FileName = "C:\\test\\pdf2vec.exe";
startInfo.Arguments = "C:\\test.pdf C:\\test.svg";

try
{
// Start the process with the info we specified.
// Call WaitForExit and then the using statement will close.
using (Process exeProcess = Process.Start(startInfo))
{
exeProcess.WaitForExit();
}
}
catch
{
// Log error.
}    }
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can call ps2pdf.exe to convert EPS file to PDF file first, and then call pdf2vec.exe to convert from PDF file to SVG format again, you can call them easily from C# project.

VeryDOC

VN:F [1.9.20_1166]
Rating: 2.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
How can I convert EPS to SVG format from C# project?, 2.0 out of 10 based on 2 ratings

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!