I am trying to convert a Postscript file to PDF, but I seem to be missing part of it.
What I have is:
What I have is:
public void Convert(String fileName, String outputPath)
{
using (var psStream = File.Open(fileName, FileMode.Open, FileAccess.Read))
{
using (var gs = new Ghostscript.NET.Rasterizer.GhostscriptRasterizer())
{
gs.Open(psStream);
gs.CustomSwitches.Add("-q");
gs.CustomSwitches.Add("-dSAFER");
gs.CustomSwitches.Add("-dBATCH");
gs.CustomSwitches.Add("-dNOPAUSE");
gs.CustomSwitches.Add("-dNOPROMPT");
gs.CustomSwitches.Add("-r72");
gs.CustomSwitches.Add("-sPAPERSIZE=a4");
gs.CustomSwitches.Add(@"-sOutputFile=" + outputPath);
gs.CustomSwitches.Add(@"-f" + fileName);
}
}
}
Now that this part is done, what do I call to do the actual conversion? There is no Convert, Write or Save method that I could find in the documentation.