<!-- 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"); // The below font options only work with conversions that // go through the printer or postscript file conversions // Whether to embed all fonts other than base14 fonts oSVR.Set_EmbedAllFonts(true); // Whether to embed Base14 fonts oSVR.Set_EmbedBase14Fonts(false); // Whether embedded fonts should be a subset oSVR.Set_SubsetFonts(true); // If TrueType fonts should be substituting for the version in the // x:\windows\fonts folder oSVR.Set_SubstituteTTFonts(false); // Convert the PostScript file into PDF results = oSVR.ConvertPSToPDF(strPath & "PS.ps", strPath & "metadata.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>