I want to create in memory the pdf that I am creating and not physically and I don't know how to do it with ghostscript.
this is my code:
string gsPath = @"C:\Program Files (x86)\gs\gs9.26\bin\gswin32.exe"; List gsArgsList = new List(); gsArgsList.Add(" -dPDFA=2"); gsArgsList.Add(" -dBATCH"); gsArgsList.Add(" -dNOPAUSE"); gsArgsList.Add(" -dUseCIEColor"); gsArgsList.Add(" -sProcessColorModel=DeviceCMYK"); gsArgsList.Add(" -sDEVICE=pdfwrite"); gsArgsList.Add(" -dPDFACompatibilityPolicy=1"); gsArgsList.Add(" -sOutputFile=" + nuevo); gsArgsList.Add(" " + rutaPdfNormal); var gsArgs = String.Join(null, gsArgsList); string gs = gsPath + gsArgs; System.Diagnostics.Process.Start(gsPath, gsArgs);