static void Main(string[] args) { string strPath = System.AppDomain.CurrentDomain.BaseDirectory.Replace("\\", "/"); // Instantiate Object APServer.Server server = new APServer.Server(); // ActivePDF Service runs under the 'Local System' account, as such it will only see // certificates located in HKEY_LOCAL_MACHINE. To use certificates located under // a specific user set the impersonate user options in the GUI or API server.InvisiblySignFile( CommonName: "localhost", CertificateStore: "My", UseLocalMachine: true, Location: "Mission Viejo, CA", Reason: "Approval", ContactInfo: "949-555-1212", SignatureType: 1); // Convert the PostScript file into PDF ServerDK.Results.ServerResult result = server.ConvertPSToPDF( PSFile: $"{strPath}Server.Input.ps", PDF: $"{strPath}Server.SignPDF.pdf"); // Output result WriteResult(result); // Process Complete Console.WriteLine("Done!"); Console.WriteLine("Press any key to exit."); Console.ReadKey(); }