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.