public static void Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //open document
     PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();
     annotationEditor.BindPdf(dataDir+ "input.pdf");
     //delete all annoations
     annotationEditor.DeleteAnnotations();
     //save updated PDF
     annotationEditor.Save(dataDir+ "output.pdf");
 }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations();
            //open document
            PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();

            annotationEditor.BindPdf(dataDir + "DeleteAllAnnotations.pdf");
            //delete all annoations
            annotationEditor.DeleteAnnotations("Text");
            //save updated PDF
            annotationEditor.Save(dataDir + "DeleteAllAnnotations_out.pdf");
        }
示例#3
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //open document
            PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();

            annotationEditor.BindPdf(dataDir + "input.pdf");
            //delete all annoations
            annotationEditor.DeleteAnnotations("Text");
            //save updated PDF
            annotationEditor.Save(dataDir + "output.pdf");
        }
 public static void Run()
 {
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations();
     //open document
     PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();
     annotationEditor.BindPdf(dataDir+ "DeleteAllAnnotations.pdf");
     //delete all annoations
     annotationEditor.DeleteAnnotations("Text");
     //save updated PDF
     annotationEditor.Save(dataDir+ "DeleteAllAnnotations_out.pdf");
     
 }
 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
 }
示例#6
0
        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
        }