static void Main(string[] args) { string strPath = System.AppDomain.CurrentDomain.BaseDirectory; // Instantiate Object APDocConverter.DocConverter docConverter = new APDocConverter.DocConverter(); // Enable extra logging (logging should only be used while // troubleshooting) C:\ProgramData\activePDF\Logs\ docConverter.Debug = true; // Compresses eligible objects in the output PDF, which include // page objects and fonts. Streams (including content, text, // images, and data) are not affected. SetPDFCompression is only // supported in PDF versions 1.5 and above. It is enabled by // default. docConverter.SetPDFCompression(true); // Convert the file to PDF // If the output parameter is not used the created PDF will use // the input string substituting the filename extension to 'pdf' DCDK.Results.DocConverterResult result = docConverter.ConvertToPDF( inputPath: $"{strPath}DocConverter.Word.Input.doc", outputPDF: $"{strPath}DocConverter.SetPDFCompression.pdf"); WriteResult(result); Console.WriteLine("Press any key to exit."); Console.ReadKey(); }