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; // Set the basic metadata in the created PDF docConverter.SetMetadata( "John Doe", "examples, samples, metadata", "Examples", "ActivePDF Metadata Example"); // 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( $"{strPath}DocConverter.Word.Input.doc", $"{strPath}DocConverter.SetMetadata.Output.pdf"); WriteResult(result); Console.WriteLine("Press any key to exit."); Console.ReadKey(); }