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

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            // ExStart:DeleteSpecificAnnotations
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations();
            // Open document
            PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();
            annotationEditor.BindPdf(dataDir+ "DeleteAllAnnotations.pdf");
            // Delete specific annoations
            annotationEditor.DeleteAnnotations("Text");
            // Save updated PDF
            annotationEditor.Save(dataDir + "DeleteSpecificAnnotations_out.pdf");
            // ExEnd:DeleteSpecificAnnotations
        }
    }
DeleteSpecificAnnotations