I want to convert a PDF file into PDF/A with GhostscriptProcessor, but the result is a PDF not PDF/A.
GhostscriptProcessor gsproc = new GhostscriptProcessor(Prop
First switch is ignored. You need to add dummy switch at position 0 so the code will look like:
string[] CreateTestArgs(string inputPath, string outputPath)
{
List<string> gsArgs = new List<string>();
gsArgs.Add("-notused");
gsArgs.Add("-dPDFA");
gsArgs.Add("-dBATCH");
gsArgs.Add("-dNOPAUSEgsArgs");
gsArgs.Add("-sDEVICE=pdfwrite");
gsArgs.Add(@"-sOutputFile=" + outputPath);
gsArgs.Add(@"-f" + inputPath);
return gsArgs.ToArray();
}