<!-- Copyright (c) 2021 ActivePDF, Inc. --> <!-- ActivePDF Server 2013 --> <!-- Example generated 01/19/21 --> <!-- Example uses the .NET DLL which requires --> <!-- Coldfusion 8 or above --> <CFSCRIPT> // Get current path strPath = ExpandPath(".") & "\"; // Instantiate Object oSVR = CreateObject(".NET", "APServer.Server", "C:\Program Files\activePDF\Server\bin\APServer.Net35.dll"); // Set the PDF format for the created PDF oSVR.Set_Format(APServer.OutputFormat.PDFA); // Convert the PostScript file into PDF results = oSVR.ConvertPSToPDF(strPath & "PS.ps", strPath & "PDFA.pdf"); if(results.Get_ServerStatus() != "Success") { Error("ConvertPSToPDF", results, results.Get_ServerStatus()); } // Release Object oSVR = 0; // Process Complete WriteOutput("Done!"); // Error Handling Function Error(method, oResults, errorStatus) { WriteOutput("Error with " & method & ": <br/>" & errorStatus & "<br/>" & oResults.Get_details()); } </CFSCRIPT>