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; // Add stamp text onto the output PDF docConverter.AddStampCollection(collectionName: "TXTinternal"); docConverter.StampFont = "Helvetica"; docConverter.StampFontSize = 108; docConverter.StampFontTransparency = 0.3f; docConverter.StampRotation = 45.0f; docConverter.StampFillMode = ADK.PDF.FontFillMode.FillThenStroke; docConverter.StampColorNET = new ADK.PDF.Color() { Red = 255, Green = 0, Blue = 0, Gray = 0 }; docConverter.StampStrokeColorNET = new ADK.PDF.Color() { Red = 100, Green = 0, Blue = 0, Gray = 0 }; docConverter.AddStampText( x: 116.0f, y: 156.0f, stampText: "Internal Only"); // Set whether the stamp collection(s) appears in the background or // foreground docConverter.StampBackground = 0; // 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.AddStampText.pdf"); WriteResult(result); Console.WriteLine("Press any key to exit."); Console.ReadKey(); }