عربي
 عربي

طريقة أكثر ذكاءً لتطوير تطبيقات Microsoft Office و PDF Steps قوية

واجهات برمجة تطبيقات التعليقات التوضيحية للمطورين لإنشاء وإدارة الارتباط ، وتطوي عليه ، و polyline ، والعلامات المائية ، والشروط النصية في ملفات PDF ، و Word ، و Excel ، و PowerPoint ، و Visio ، و Images ، و HTML ، وملفات البريد الإلكتروني.

عرض جميع واجهات برمجة التطبيقاتجرب واجهات برمجة التطبيقات الخاصة بنا مجانًا

استفد من قوة مكتبات مستندات المستندات لدفع عملك إلى الأمام

التعليقات التوضيحية هي وسيلة رائعة لتدوين الملاحظات على المستندات أو الصور أو أنواع الملفات الأخرى. يمكن استخدامها بشكل أفضل لتسليط الضوء أو شرح نقاط معينة أو تقديم ملاحظات أو مشاركة المعلومات داخل ملف بيانات. يمكن أيضًا إنشاء التعليقات التوضيحية مع أنواع خاصة من أدوات الترميز للتغلب على النص أو التمييز على النص أو الصور في مستند. هناك العديد من أنواع التعليقات التوضيحية المختلفة التي يمكن للمطورين استخدامها لأغراض مختلفة مثل المساحة المستطيلة ، والبولي ، والسهم ، والمسائل ، والرابط ، والعلامة المائية ، وشرح النص. إذا كنت تتطلع إلى أتمتة عمليات التعليق التوضيحي الخاص بك ومراقبة الصور الخاصة بك ، فيمكنك استخدام GroupDocs.Antation APIs لمنصات .NET و Java. تم تصميم هذه المكتبات القوية للعمل مع PDF و Microsoft Office (Word و Excel و PowerPoint و Visio) و Opendocument ورسومات CAD والصور ، بالإضافة إلى ملفات HTML وملفات البريد الإلكتروني التي تتيح .NET و JAVA مطوري تطبيقات لإضافة تعليقات إلى المستند بطريقة سهلة. تم تصميم واجهات برمجة التطبيقات للاستخدام في لغات C#و ASP.NET و VB.NET و Java ، عبر أطر وبيئات متعددة.

ابدء

قبل البدء ، يرجى التحقق من .NET و Java أدلة التثبيت الخاصة بـ GroupDocs.Antation APIs لمساعدتك في إعداد بيئة التطوير بشكل صحيح.

حالات استخدام توثيق المستندات

Let’sألقِ نظرة على بعض حالات الاستخدام المصممة لجعل عملية شرح المستندات مريحة وسهلة بالنسبة لك.

كيفية إضافة تعليقات توضيحية إلى مستنداتك وصورك؟

كمطور للتطبيقات ، فأنت تبحث دائمًا عن طرق لتبسيط عملية بناء التطبيقات وتوفير وقت الدوران.هذا هو المكان الذي تجلب فيه GroupDocs.Antation Apis براعة لا مثيل لها وتزويدك بالمنصة المناسبة.باستخدام هذه المكتبات الخفيفة الوزن ، يمكن للمطورين .NET و JAVA بناء حلول غنية وأكثر ذكاءً لإضافة التعليقات التوضيحية إلى مستندات PDF ، ومستندات Excel و PowerPoint وكذلك ملفات VSD و DWG و PNG و JPEG.

كيفية إضافة تعليقات توضيحية إلى مستنداتك وصورك؟

قارئ PDF في C# .NET

من المساحة والبولي ساين والصور والعلامة المائية إلى الارتباط ، والنقطة ، والمسائل ، والشروح النصية ، يمكنك اختيار واختيار نوع التعليقات التوضيحية التي ترغب في حقنها في المستندات الشخصية أو عملك في .NET.على سبيل المثال ، سيضيف الرمز التالي تعليقًا توضيحيًا في شكل منطقة مستطيلة:
using (Annotator annotator = new Annotator("input.pdf"))
{
	AreaAnnotation area = new AreaAnnotation
    {
        BackgroundColor = 65535,
        Box = new Rectangle(100, 100, 100, 100),
        CreatedOn = DateTime.Now,
        Message = "This is area annotation",
        Opacity = 0.7,
        PageNumber = 0,
        PenColor = 65535,
        PenStyle = PenStyle.Dot,
        PenWidth = 3,
        Replies = new List
        {
        	new Reply
            {
            	Comment = "First comment",
                RepliedOn = DateTime.Now
            },
            new Reply
            {
            	Comment = "Second comment",
                RepliedOn = DateTime.Now
            }
        }
    };
    annotator.Add(area);
    annotator.Save("result.pdf");
}
    
وبالمثل ، فإن الكود التالي يساعدك على إضافة ملفشرح الصور إلى مستندات .NET الخاصة بك:
using (Annotator annotator = new Annotator("input.pdf"))
            {
                ImageAnnotation area = new ImageAnnotation
                {
                    Box = new Rectangle(100, 100, 100, 100),
                    Opacity = 0.7,
                    PageNumber = 0,
                    ImagePath = "www.google.com.ua/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png",
                    Angle = 100
                };
                annotator.Add(area);
                annotator.Save("result.pdf");
            }

    
لذلك ، يمكنك الاستمرار في إضافة أنواع مختلفة من التعليقات التوضيحية المتاحة بسلاسة.

ملفات التعليقات في جافا

التعليق على ملفاتك في Java لا يختلف ، يمكنك الوصول إلى جميع المذكورة أعلاه واستخدامها التعليقات التوضيحية في منصة Java أيضًا.يرجى استخدام الكود التالي لإدراج شرح نصفي إلى المستند الخاص بك:
Annotator annotator = new Annotator("inputPath");
try {
    // Create an instance of Reply class and add comments
    Reply reply1 = new Reply();
    reply1.setComment("First comment");
    reply1.setRepliedOn(Calendar.getInstance().getTime());

    Reply reply2 = new Reply();
    reply2.setComment("Second comment");
    reply2.setRepliedOn(Calendar.getInstance().getTime());

    java.util.List replies =  new ArrayList();
    replies.add(reply1);
    replies.add(reply2);

    // Create an instance of TextFieldAnnotation class and set options
    TextFieldAnnotation textField = new TextFieldAnnotation();
    textField.setBackgroundColor(65535);
    textField.setBox(new Rectangle(100, 100, 100, 100));
    textField.setCreatedOn(Calendar.getInstance().getTime());
    textField.setText("Some text");
    textField.setFontColor(65535);
    textField.setFontSize((double)12);
    textField.setMessage("This is text field annotation");
    textField.setOpacity(0.7);
    textField.setPageNumber(0);
    textField.setPenStyle(PenStyle.Dot);
    textField.setPenWidth((byte) 3);
    textField.setReplies(replies);
    
    // Add annotation and save to file
    annotator.add(textField);
    annotator.save("outputPath");
} finally {
    if (annotator != null) {
        annotator.dispose();
    }
}
    
لإضافة أ تعليق الارتباط في Java ، يرجى استخدام الرمز الذي يبرره أدناه:
Annotator annotator = new Annotator("inputPath");
try {
    // Create an instance of Reply class and add comments
    Reply reply1 = new Reply();
    reply1.setComment("First comment");
    reply1.setRepliedOn(Calendar.getInstance().getTime());

    Reply reply2 = new Reply();
    reply2.setComment("Second comment");
    reply2.setRepliedOn(Calendar.getInstance().getTime());

    java.util.List replies = Arrays.asList(reply1, reply2);
    
    List points = Arrays.asList(new Point(80, 730), new Point(240, 730), new Point(80, 650), new Point(240, 650));                
    
    // Create an instance of LinkAnnotation class and set options
    LinkAnnotation link = new LinkAnnotation();
    link.setCreatedOn(Calendar.getInstance().getTime());
    link.setMessage("This is link annotation");
    link.setOpacity(0.7);
    link.setPageNumber(0);
    
    link.setPoints(points);               
    
    link.setReplies(replies);
    link.setUrl("https://www.google.com");
    
    // Add annotation and save to file
    annotator.add(link);
    annotator.save("outputPath");
} finally {
    if (annotator != null) {
        annotator.dispose();
    }
}

    

تعلم كيفية إضافة تعليقات مائية إلى ملفات بيانات مختلفة

عادةً ما تستخدم العلامات المائية المستندة إلى النصوص في الملفات الرسمية والشخصية كرمز لحقوق الطبع والنشر أو العلامة التجارية ، أو تاريخ انتهاء الصلاحية ، أو أي شكل آخر من النصوص التي يجب عرضها في المستند.تتيح لك واجهة برمجة تطبيقات GroupDocs.Antation إضافة تعليقات توضيحية للعلامات المائية إلى ملفات بيانات مختلفة في .NET و Java.

تعلم كيفية إضافة تعليقات مائية إلى ملفات بيانات مختلفة

نص ماء PDF في .NET

يمكنك تحديث الملفات باستخدام تعليقات التوضيحية المائية داخل تطبيقات .NET الخاصة بك.الرجاء استخدام الرمز التالي لتحقيق هذا:
using (Annotator annotator = new Annotator("input.pdf"))
{
	WatermarkAnnotation watermark = new WatermarkAnnotation
    {
    	Angle = 75,
        Box = new Rectangle(200, 200, 100, 50),
        CreatedOn = DateTime.Now,
        Text = "Watermark",
        FontColor = 65535,
        FontSize = 12,
        Message = "This is watermark annotation",
        Opacity = 0.7,
        AutoScale = true,
        HorizontalAlignment = HorizontalAlignment.Center,
        VerticalAlignment = VerticalAlignment.Center,
        Replies = new List
        {
        	new Reply
            {
            	Comment = "First comment",
                RepliedOn = DateTime.Now
            },
            new Reply
            {
            	Comment = "Second comment",
                RepliedOn = DateTime.Now
            }
        }
    };
    annotator.Add(watermark);
    annotator.Save("result.pdf");
}
    

إضافة تعليقات نصية للعلامة المائية في جافا

إلى استخدم هذه الميزة في Java ، يرجى استخدام قطعة التعليمات البرمجية التالية:
Annotator annotator = new Annotator("inputPath");
try {
    // Create an instance of Reply class and add comments
    Reply reply1 = new Reply();
    reply1.setComment("First comment");
    reply1.setRepliedOn(Calendar.getInstance().getTime());

    Reply reply2 = new Reply();
    reply2.setComment("Second comment");
    reply2.setRepliedOn(Calendar.getInstance().getTime());

    java.util.List replies =  new ArrayList();
    replies.add(reply1);
    replies.add(reply2);

    // Create an instance of WatermarkAnnotation class and set options
    WatermarkAnnotation watermark = new WatermarkAnnotation();
    watermark.setAngle((double) 75);
    watermark.setBox(new Rectangle(200, 200, 100, 50));
    watermark.setCreatedOn(Calendar.getInstance().getTime());
    watermark.setText("Watermark");
    watermark.setFontColor(65535);
    watermark.setFontSize((double) 12);
    watermark.setMessage("This is watermark annotation");
    watermark.setOpacity(0.7);
    watermark.setPageNumber(0);
    watermark.setReplies(replies);
    
    // Add annotation and save to file
    annotator.add(watermark);
    annotator.save("outputPath");
} finally {
    if (annotator != null) {
        annotator.dispose();
    }
}

    

أدخل الترميزات السطحية والضرب لتقديم المحتويات

للتمييز بين أجزاء معينة من النص من محتويات أخرى داخل المستند ، ستحتاج إلى تطبيق زينة ترميز النص عن طريق التأكيد على النص أو ضربه.تم دمج ميزات الترميز هذه في واجهات برمجة التطبيقات الخاصة بنا في شكل توضيحيات سطحية ومرضات يمكنك استخدامها في المستندات والصور الخاصة بك.

أدخل الترميزات السطحية والضرب لتقديم المحتويات

التعليقات التوضيحية ترميز النص في .NET

يتقدم تسطير الترميز التعليق التوضيحي إلى مستندات .NET الخاصة بك بمساعدة الكود التالي:
    using (Annotator annotator = new Annotator("input.pdf"))
    {
        SquigglyAnnotation squiggly = new SquigglyAnnotation
        {
            CreatedOn = DateTime.Now,
            FontColor = 65535,
            BackgroundColor = 16761035,
            Message = "This is squiggly annotation",
            Opacity = 0.7,
            PageNumber = 0,
            SquigglyColor = 1422623, //Supported only Word and PDF
            Points = new List
            {
                new Point(80, 730), new Point(240, 730), new Point(80, 650), new Point(240, 650)
            },
            Replies = new List
            {
                new Reply
                {
                    Comment = "First comment",
                    RepliedOn = DateTime.Now
                },
                new Reply
                {
                    Comment = "Second comment",
                    RepliedOn = DateTime.Now
                }
            }
        };
        annotator.Add(squiggly);
        annotator.Save("result.pdf");
    }    
        
يتيح لك هذا الرمز إضافة تعليقات التعليقات التوضيحية للملفات في تطبيقات C# .NET الخاصة بك:
        using (Annotator annotator = new Annotator("input.pdf"))
{
	StrikeoutAnnotation strikeout = new StrikeoutAnnotation
    {
    	CreatedOn = DateTime.Now,
        FontColor = 65535,
        BackgroundColor = 16761035,
        Message = "This is strikeout annotation",
        Opacity = 0.7,
        PageNumber = 0,
        Points = new List
        {
        	new Point(80, 730), new Point(240, 730), new Point(80, 650), new Point(240, 650)
        },
        Replies = new List
        {
        	new Reply
            {
             	Comment = "First comment",
                RepliedOn = DateTime.Now
            },
            new Reply
            {
            	Comment = "Second comment",
                RepliedOn = DateTime.Now
            }
        }
     };
     annotator.Add(strikeout);
     annotator.Save("result.pdf");
}
        

التعليقات التوضيحية في جافا

جنبا إلى جنب مع .NET ، تتوفر التعليقات التوضيحية الترميز أيضا في منصة Java.يرجى استخدام الرمز الموضح أدناه لإضافة تسليط الضوء على التعليقات التوضيحية على ملفاتك:
    Annotator annotator = new Annotator("inputPath");
    try {
        // Create an instance of Reply class and add comments
        Reply reply1 = new Reply();
        reply1.setComment("First comment");
        reply1.setRepliedOn(Calendar.getInstance().getTime());
    
        Reply reply2 = new Reply();
        reply2.setComment("Second comment");
        reply2.setRepliedOn(Calendar.getInstance().getTime());
    
        java.util.List replies =  new ArrayList();
        replies.add(reply1);
        replies.add(reply2);
    
        Point point1 = new Point(80, 730);
        Point point2 = new Point(240, 730);
        Point point3 = new Point(80, 650);
        Point point4 = new Point(240, 650);
    
        List points = new ArrayList();
        points.add(point1);
        points.add(point2);
        points.add(point3);
        points.add(point4);
    
        // Create an instance of HighlightAnnotation class and set options
        HighlightAnnotation highlight = new HighlightAnnotation();
        highlight.setBackgroundColor(65535);
        highlight.setCreatedOn(Calendar.getInstance().getTime());
        highlight.setFontColor(0);
        highlight.setMessage("This is highlight annotation");
        highlight.setOpacity(0.5);
        highlight.setPageNumber(0);
        highlight.setPoints(points);
        highlight.setReplies(replies);
        
        // Add annotation and save to file
        annotator.add(highlight);
        annotator.save("outputPath");
    } finally {
        if (annotator != null) {
            annotator.dispose();
        }
    }    
        
شكل شائع آخر من تعليقات الترميز هو تسطير التعليق التوضيحي الذي يمكن إضافته إلى تنسيقات ملفات بيانات Java الخاصة بك باستخدام هذا الرمز:
        Annotator annotator = new Annotator("inputPath");
try {
    // Create an instance of Reply class and add comments
    Reply reply1 = new Reply();
    reply1.setComment("First comment");
    reply1.setRepliedOn(Calendar.getInstance().getTime());

    Reply reply2 = new Reply();
    reply2.setComment("Second comment");
    reply2.setRepliedOn(Calendar.getInstance().getTime());

    java.util.List replies =  new ArrayList();
    replies.add(reply1);
    replies.add(reply2);

    Point point1 = new Point(80, 730);
    Point point2 = new Point(240, 730);
    Point point3 = new Point(80, 650);
    Point point4 = new Point(240, 650);

    List points = new ArrayList();
    points.add(point1);
    points.add(point2);
    points.add(point3);
    points.add(point4);

    // Create an instance of AreaAnnotation class and set options
    UnderlineAnnotation underline = new UnderlineAnnotation();
    underline.setCreatedOn(Calendar.getInstance().getTime());
    underline.setFontColor(65535);
    underline.setMessage("This is underline annotation");
    underline.setOpacity(0.1);
    underline.setPageNumber(0);
    underline.setPoints(points);
    underline.setReplies(replies);
    
    // Add annotation and save to file
    annotator.add(underline);
    annotator.save("outputPath");
} finally {
    if (annotator != null) {
        annotator.dispose();
    }
}
        

طريقة أسهل لاستخراج أو إزالة التعليقات التوضيحية

لا يمكنك إضافة تعليقات جديدة فحسب ، بل أيضًا استخراج التعليقات التوضيحية الحالية من ملفاتك وإزالة التعليقات التوضيحية المضافة قبل تصدير المستند إلى حالة ما قبل التثبيت عبر تطبيقات C#و ASP.NET و VB.NET و Java.

طريقة أسهل لاستخراج أو إزالة التعليقات التوضيحية

استخراج التعليقات التوضيحية وإزالتها في .NET

الاستفادة من ميزات API المهمة في بيئة .NET بسهولة.إلى استخراج التعليقات التوضيحية تمت إضافتها بالفعل إلى المستند ، يرجى الاستفادة من الكود التالي:
    using (Annotator annotator = new Annotator("annotated.pdf"))
{
	List annotations = annotator.Get();
    XmlSerializer formatter = new XmlSerializer(typeof(List));
    using (FileStream fs = new FileStream("annotations.xml", FileMode.Create))
    {
    	fs.SetLength(0);
        formatter.Serialize(fs, annotations);
    }
}
        
و ل قم بإزالة التعليقات التوضيحية من ملف باستخدام قائمة التعليقات التوضيحية ثم حفظ الملف المحدث إلى حالته السابقة ، يرجى تجربة هذا الرمز:
        using (Annotator annotator = new Annotator("result.xlsx"))
        {
            var tmp = annotator.Get();
            annotator.Remove(tmp);
            annotator.Save("removed.xlsx");
        }        
        

استخراج التعليقات التوضيحية أو إزالتها في جافا

لن يستغرق الأمر سوى بضعة أسطر من التعليمات البرمجية لاستخراج التعليقات التوضيحية من المستندات أو إزالتها في Java.إلى استخراج تعليقات المستندات ، يمكنك استخدام هذا الرمز:
    LoadOptions tmp0 = new LoadOptions();
    // Create an instance of Annotator class
    Annotator annotator = new Annotator("InputPath", tmp0);
    // Get all annotations
    List annotations = annotator.get();    
        
وبالمثل ، يرجى استخدام الرمز الوارد أدناه قم بإزالة التعليقات التوضيحية وتصدير الملف المحدث:
        // Create an instance of Annotator class
Annotator annotator = new Annotator("inputPath");
SaveOptions saveOptions = new SaveOptions();
saveOptions.setAnnotationTypes(AnnotationType.None);
// Save result to file
annotator.save("outputPath", saveOptions);
        
يمكنك أيضا الاستفادة تطبيقات التعليقات التوضيحية المجانية عبر الإنترنت لإضافة أنواع متعددة من التعليقات التوضيحية بسرعة إلى ملفات PDF و DOC و DOCX و XLS و XLSX و PPT و PPTX و VSD و PNG و JPEG و EML و HTML.

أتمتة مهام معالجة الوثيقة والصور بشكل مستقل

لماذا تختار GroupDocs؟

دعم تنسيقات الملفات لا مثيل له

  • جميع تنسيقات الملفات الشائعة المدعومة بما في ذلك المستندات والصور والصوت ومقاطع الفيديو والكتب الإلكترونية.
  • pdf ، doc ، docx ، xls ، xlsx ، ppt ، pptx ، pub ، png ، psd ، odt ، msg ، eml ، mp3 ، mp4 ، وغيرها الكثير.

المكتبات القابلة للبرمجة على نطاق واسع

  • استخدم واجهات برمجة تطبيقات GroupDocs لإنشاء تطبيقات .NET و Java قابلة للتخصيص بالكامل.
  • معالجة مستندات عملك وجداول البيانات والعروض التقديمية والصور بأي طريقة تحب.

مئات الميزات المدعومة

  • تحويل الكلمة أو Excel إلى PDF أو تعليقات PDFs أو تحرير DOC أو DOCX أو Watermark.
  • اعمل مع esignatures ، الجداول ، حرك البريد ، المرفقات ، الأشكال ، وأكثر من ذلك بكثير.

مصمم لتلبية احتياجاتك

  • التجارب المجانية وخيارات الترخيص المدفوعة المختلفة للاختيار من بينها.
  • مناسبة جيدًا للمستخدمين الفرديين والشركات الناشئة ، وكذلك المؤسسات الصغيرة والكبيرة.

واجهات برمجة التطبيقات للمطورين

  • معالجة المستندات والصور الرقمية بشكل برمجي في منصات .NET و Java.
  • وثيقة واجهات برمجة التطبيقات المصممة خصيصًا لمطوري تطبيقات .NET و JAVA.

يثق من قبل المستخدمين على مستوى العالم

  • يفضله المطورين والشركات على حد سواء ، يتم استخدام مكتباتنا على مستوى العالم.
  • إنشاء مستندات محسنة بسهولة في البيئات المستقلة والموزعة.

بذل المزيد من الجهد مع المستندات والصور الخاصة بك

  • إنشاء ، تقديم ، تحرير ، تحويل ، مقارنة ، التوقيع الرقمي ، العلامة المائية ، وتصدير ملفاتك.
  • تجربة إمكانيات لا نهاية لها من خلال إنشاء تطبيقات متعددة الوظائف وعالية الأداء.

تكامل بسيط وتطبيق مناسب

  • استمتع بمزيد من المرونة من خلال الاندماج مع تطبيقات البرامج الحالية.
  • انطلق وتشغيلًا باستخدام بضعة أسطر من الكود مع واجهات برمجة التطبيقات الفائقة والموثوقة.

قنوات دعم متعددة

  • هل تحتاج إلى مساعدة؟لا تنظر إلى أبعد من أحد خيارات الدعم التي يقودها المطور.
  • استكشف بنية واجهات برمجة التطبيقات ، والتوثيق ، أو الغوص في قاعدة المعرفة.