Skip to content

Add 157 annotation examples to working-with-annotations docs#294

Merged
fahadadeel merged 1 commit into
release/26.5.0from
examples/3c85dbb5-working-with-annotations
Jun 15, 2026
Merged

Add 157 annotation examples to working-with-annotations docs#294
fahadadeel merged 1 commit into
release/26.5.0from
examples/3c85dbb5-working-with-annotations

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

working-with-annotations

157 code example(s) for the working-with-annotations category.
Target: Aspose.PDF for .NET 26.5.0

Examples

# Example Difficulty
1 Add Text Annotation to Page 3 of PDF beginner
2 Add Popup Annotation Linked to Highlight intermediate
3 Add Free‑Text Annotation with Arial Font to PDF beginner
4 Add Callout Leader Line to Free‑Text Annotation intermediate
5 Hide Free‑Text Annotation on Specific PDF Page intermediate
6 Add Yellow Highlight Annotation with Opacity beginner
7 Add Underline Annotation with 50% Opacity to PDF Page beginner
8 Add StrikeOut Annotation with Author to PDF beginner
9 Delete Specific Annotation from PDF Page intermediate
10 Remove All Annotations from a Specific PDF Page beginner
11 Retrieve Annotations from Page Four and List Their Types beginner
12 Update Annotation Rectangle by Id intermediate
13 Import XFDF Annotations into a PDF beginner
14 Export PDF Annotations to XFDF beginner
15 Import Annotations from FDF into PDF beginner
16 Batch Add Text Annotations to PDF Pages intermediate
17 Highlight Keyword Across PDF Pages intermediate
18 Add Figure Annotations with Custom Line Width and Color intermediate
19 Batch Export PDF Annotations to XFDF Files beginner
20 Import XFDF Annotations into Multiple PDFs in Parallel intermediate
21 Export PDF Annotations with Appearance Streams to XFDF beginner
22 Validate XFDF Annotation Counts per PDF Page intermediate
23 Export and Import PDF Annotations via XFDF intermediate
24 List PDF Annotations and Export to CSV intermediate
25 Filter PDF Annotations by Author and Remove Others intermediate
26 Add StrikeOut Annotation with Reviewer Author beginner
27 Generate Annotation Summary per PDF Page intermediate
28 Add Polyline Figure Annotation to PDF beginner
29 Add Arrow Line Annotation to PDF beginner
30 Import Annotations from FDF into PDF beginner
31 Recolor Highlight Annotations to Light Green beginner
32 Retrieve Annotation Bounding Rectangle intermediate
33 Add Highlight Annotation with 70% Opacity to PDF beginner
34 Add Popup Annotation Linked to a Sticky Note intermediate
35 Import XFDF Annotations and Reassign to Different PDF Pages intermediate
36 Delete Popup Annotations from PDF beginner
37 Group PDF Annotations by Type and Report Counts intermediate
38 Add Figure Annotation Referencing External Image intermediate
39 Export and Import PDF Annotations via XFDF intermediate
40 Batch Add Text Annotation to First Page of PDFs intermediate
41 Modify Square Annotation Color in PDF intermediate
42 Delete PDF Annotations Using IDs from a CSV File intermediate
43 Set Line Thickness of Figure Annotation beginner
44 Extract Popup Annotation Text to a New PDF intermediate
45 Add Free‑Text Annotation with Callout to PDF intermediate
46 Export PDF Annotations to XFDF and Upload to Cloud Storage intermediate
47 Remove Highlight Annotations from PDF beginner
48 Export Popup Annotations to XFDF intermediate
49 Import Annotations from FDF into PDF beginner
50 Add Transparent Free‑Text Annotation to PDF intermediate
... 107 more examples

Key APIs Used

Aspose.Pdf.Actions.JavascriptAction, Aspose.Pdf.Annotation, Aspose.Pdf.Annotation.PageIndex, Aspose.Pdf.AnnotationCollection, Aspose.Pdf.Annotations.Annotation, Aspose.Pdf.Annotations.Annotation.AnnotationType, Aspose.Pdf.Annotations.Annotation.ChangeAfterResize, Aspose.Pdf.Annotations.Annotation.Characteristics, Aspose.Pdf.Annotations.Annotation.GetRectangle, Aspose.Pdf.Annotations.AnnotationCollection, Aspose.Pdf.Annotations.AnnotationCollection.Add, Aspose.Pdf.Annotations.AnnotationCollection.Clear, Aspose.Pdf.Annotations.AnnotationCollection.Delete, Aspose.Pdf.Annotations.AnnotationFlags, Aspose.Pdf.Annotations.AnnotationType, Aspose.Pdf.Annotations.AppearanceDictionary, Aspose.Pdf.Annotations.Border, Aspose.Pdf.Annotations.BorderStyle, Aspose.Pdf.Annotations.ButtonAnnotation, Aspose.Pdf.Annotations.ButtonField, Aspose.Pdf.Annotations.ButtonWidgetAnnotation, Aspose.Pdf.Annotations.CommonFigureAnnotation, Aspose.Pdf.Annotations.DefaultAppearance, Aspose.Pdf.Annotations.FdfReader.ReadAnnotations, Aspose.Pdf.Annotations.FileAttachmentAnnotation, Aspose.Pdf.Annotations.FileHyperlink, Aspose.Pdf.Annotations.FileIcon, Aspose.Pdf.Annotations.FreeTextAnnotation, Aspose.Pdf.Annotations.FreeTextIntent, Aspose.Pdf.Annotations.GoToAction
(+107 more)

Tags

3d Arial Aspose Aspose.Pdf C# FDF PDF animated-gif annotation annotations appearance appearance-streams arrow artifact aspdf aspect-ratio aspnet aspose aspose-pdf aspose.pdf

Difficulty Distribution

  • advanced: 1 example(s)
  • beginner: 56 example(s)
  • intermediate: 98 example(s)

Pipeline Stages

  • Baseline (1st try): 104
  • LLM Fix: 26
  • Regen with KB: 22
  • Pattern Fix: 4
  • Final LLM Recovery: 1

Generated by Examples Generator

@fahadadeel fahadadeel merged commit 85b5775 into release/26.5.0 Jun 15, 2026
1 check passed
@fahadadeel fahadadeel deleted the examples/3c85dbb5-working-with-annotations branch June 15, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants