Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Annotations.AddFreeTextAnnotation.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            // ExStart:AddFreeTextAnnotation
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations();
            // Open document
            PdfContentEditor contentEditor = new PdfContentEditor();
            contentEditor.BindPdf(dataDir+ "AddFreeTextAnnotation.pdf");
            // Create rectangle
            System.Drawing.Rectangle rect = new System.Drawing.Rectangle(50, 50, 100, 100);
            // Create annotation
            contentEditor.CreateFreeText(rect, "Sample content", 1);
            // Save updated PDF file
            contentEditor.Save(dataDir+ "AddFreeTextAnnotation_out.pdf");
            // ExEnd:AddFreeTextAnnotation            
        }
    }
AddFreeTextAnnotation