Skip to content

Commit 6dd23ff

Browse files
authored
Merge pull request #450 from telerik/yoan/release-changes
Release Changes
2 parents ede1fae + 181c01c commit 6dd23ff

7 files changed

+9
-39
lines changed
-4.33 KB
Loading
-3.81 KB
Loading
-1.71 KB
Loading
-11.3 KB
Loading
-43.5 KB
Loading

libraries/radpdfprocessing/model/annotations/line.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ The **LineAnnotation** class is a derivative of the **MarkupAnnotation** (descen
3131
RadFixedDocument document = new RadFixedDocument();
3232
RadFixedPage page = document.Pages.AddPage();
3333

34-
LineAnnotation annotation = page.Annotations.AddLine(new Point(10, 10), new Point(300, 300));
34+
LineAnnotation annotation = page.Annotations.AddLine(new Point(50, 50), new Point(300, 300));
3535
annotation.StartLineEndingType = LineEndingType.None;
3636
annotation.EndLineEndingType = LineEndingType.OpenArrow;
3737
annotation.Color = new RgbColor(255, 0, 0); //Default RgbColor(255, 255, 255)
3838
annotation.Contents = "This is a LineAnnotation";
3939
annotation.Opacity = 0.5;
40-
annotation.RecalculateContent();
4140
```
4241

4342
![Create LineAnnotation](images/pdf-processing-create-lineannotation.png)
@@ -52,7 +51,7 @@ The [FixedContentEditor]({%slug radpdfprocessing-editing-fixedcontenteditor%}) o
5251

5352
editor.Position.Translate(50, 50);
5453
editor.DrawText("Line starts here.");
55-
editor.DrawLineAnnotation(300, 400);
54+
editor.DrawLineAnnotation(100, 200);
5655
```
5756

5857
![Create LineAnnotation with FixedContentEditor](images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png)

libraries/radpdfprocessing/model/annotations/stamp.md

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -25,49 +25,20 @@ The **StampAnnotation** class is a derivative of the **MarkupAnnotation** (desce
2525
### Creating a StampAnnotation
2626

2727
```csharp
28-
RadFixedDocument document = new RadFixedDocument();
29-
RadFixedPage page = document.Pages.AddPage();
30-
28+
RadFixedDocument fixedDocument = new RadFixedDocument();
3129
RadFixedPage page = fixedDocument.Pages.AddPage();
3230

3331
StampAnnotation annotation1 = page.Annotations.AddStamp(new Rect(50, 50, 300, 50));
3432
annotation1.Name = StampAnnotationPredefinedNames.SBApproved;
3533

36-
StampAnnotation annotation3 = page.Annotations.AddStamp(new Rect(50, 100, 300, 50));
37-
annotation3.Name = StampAnnotationPredefinedNames.SBCompleted;
38-
39-
StampAnnotation annotation4 = page.Annotations.AddStamp(new Rect(50, 150, 300, 50));
40-
annotation4.Name = StampAnnotationPredefinedNames.SBConfidential;
41-
42-
StampAnnotation annotation5 = page.Annotations.AddStamp(new Rect(50, 200, 300, 50));
43-
annotation5.Name = StampAnnotationPredefinedNames.SBDraft;
44-
45-
StampAnnotation annotation6 = page.Annotations.AddStamp(new Rect(50, 250, 300, 50));
46-
annotation6.Name = StampAnnotationPredefinedNames.SBFinal;
47-
48-
StampAnnotation annotation7 = page.Annotations.AddStamp(new Rect(50, 300, 300, 50));
49-
annotation7.Name = StampAnnotationPredefinedNames.SBForComment;
50-
51-
StampAnnotation annotation8 = page.Annotations.AddStamp(new Rect(50, 350, 300, 50));
52-
annotation8.Name = StampAnnotationPredefinedNames.SBForPublicRelease;
53-
54-
StampAnnotation annotation9 = page.Annotations.AddStamp(new Rect(50, 400, 300, 50));
55-
annotation9.Name = StampAnnotationPredefinedNames.SBInformationOnly;
56-
57-
StampAnnotation annotation10 = page.Annotations.AddStamp(new Rect(50, 450, 300, 50));
58-
annotation10.Name = StampAnnotationPredefinedNames.SBNotApproved;
59-
60-
StampAnnotation annotation11 = page.Annotations.AddStamp(new Rect(50, 500, 300, 50));
61-
annotation11.Name = StampAnnotationPredefinedNames.SBNotForPublicRelease;
62-
63-
StampAnnotation annotation13 = page.Annotations.AddStamp(new Rect(50, 550, 300, 50));
64-
annotation13.Name = StampAnnotationPredefinedNames.SBPreliminaryResults;
34+
StampAnnotation annotation2 = page.Annotations.AddStamp(new Rect(50, 100, 300, 50));
35+
annotation2.Name = StampAnnotationPredefinedNames.SBPreliminaryResults;
6536

66-
StampAnnotation annotation15 = page.Annotations.AddStamp(new Rect(50, 600, 300, 50));
67-
annotation15.Name = StampAnnotationPredefinedNames.SBRejected;
37+
StampAnnotation annotation3 = page.Annotations.AddStamp(new Rect(50, 150, 300, 50));
38+
annotation3.Name = StampAnnotationPredefinedNames.SBRejected;
6839

69-
StampAnnotation annotation16 = page.Annotations.AddStamp(new Rect(50, 650, 300, 50));
70-
annotation16.Name = StampAnnotationPredefinedNames.SBVoid;
40+
StampAnnotation annotation4 = page.Annotations.AddStamp(new Rect(50, 200, 300, 50));
41+
annotation4.Name = StampAnnotationPredefinedNames.SBVoid;
7142
```
7243

7344
![Create StampAnnotation](images/pdf-processing-create-stampannotation.png)

0 commit comments

Comments
 (0)