Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions libraries/radpdfprocessing/model/annotations/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ The **LineAnnotation** class is a derivative of the **MarkupAnnotation** (descen
RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();

LineAnnotation annotation = page.Annotations.AddLine(new Point(10, 10), new Point(300, 300));
LineAnnotation annotation = page.Annotations.AddLine(new Point(50, 50), new Point(300, 300));
annotation.StartLineEndingType = LineEndingType.None;
annotation.EndLineEndingType = LineEndingType.OpenArrow;
annotation.Color = new RgbColor(255, 0, 0); //Default RgbColor(255, 255, 255)
annotation.Contents = "This is a LineAnnotation";
annotation.Opacity = 0.5;
annotation.RecalculateContent();
```

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

editor.Position.Translate(50, 50);
editor.DrawText("Line starts here.");
editor.DrawLineAnnotation(300, 400);
editor.DrawLineAnnotation(100, 200);
```

![Create LineAnnotation with FixedContentEditor](images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png)
Expand Down
43 changes: 7 additions & 36 deletions libraries/radpdfprocessing/model/annotations/stamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,49 +25,20 @@ The **StampAnnotation** class is a derivative of the **MarkupAnnotation** (desce
### Creating a StampAnnotation

```csharp
RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();

RadFixedDocument fixedDocument = new RadFixedDocument();
RadFixedPage page = fixedDocument.Pages.AddPage();

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

StampAnnotation annotation3 = page.Annotations.AddStamp(new Rect(50, 100, 300, 50));
annotation3.Name = StampAnnotationPredefinedNames.SBCompleted;

StampAnnotation annotation4 = page.Annotations.AddStamp(new Rect(50, 150, 300, 50));
annotation4.Name = StampAnnotationPredefinedNames.SBConfidential;

StampAnnotation annotation5 = page.Annotations.AddStamp(new Rect(50, 200, 300, 50));
annotation5.Name = StampAnnotationPredefinedNames.SBDraft;

StampAnnotation annotation6 = page.Annotations.AddStamp(new Rect(50, 250, 300, 50));
annotation6.Name = StampAnnotationPredefinedNames.SBFinal;

StampAnnotation annotation7 = page.Annotations.AddStamp(new Rect(50, 300, 300, 50));
annotation7.Name = StampAnnotationPredefinedNames.SBForComment;

StampAnnotation annotation8 = page.Annotations.AddStamp(new Rect(50, 350, 300, 50));
annotation8.Name = StampAnnotationPredefinedNames.SBForPublicRelease;

StampAnnotation annotation9 = page.Annotations.AddStamp(new Rect(50, 400, 300, 50));
annotation9.Name = StampAnnotationPredefinedNames.SBInformationOnly;

StampAnnotation annotation10 = page.Annotations.AddStamp(new Rect(50, 450, 300, 50));
annotation10.Name = StampAnnotationPredefinedNames.SBNotApproved;

StampAnnotation annotation11 = page.Annotations.AddStamp(new Rect(50, 500, 300, 50));
annotation11.Name = StampAnnotationPredefinedNames.SBNotForPublicRelease;

StampAnnotation annotation13 = page.Annotations.AddStamp(new Rect(50, 550, 300, 50));
annotation13.Name = StampAnnotationPredefinedNames.SBPreliminaryResults;
StampAnnotation annotation2 = page.Annotations.AddStamp(new Rect(50, 100, 300, 50));
annotation2.Name = StampAnnotationPredefinedNames.SBPreliminaryResults;

StampAnnotation annotation15 = page.Annotations.AddStamp(new Rect(50, 600, 300, 50));
annotation15.Name = StampAnnotationPredefinedNames.SBRejected;
StampAnnotation annotation3 = page.Annotations.AddStamp(new Rect(50, 150, 300, 50));
annotation3.Name = StampAnnotationPredefinedNames.SBRejected;

StampAnnotation annotation16 = page.Annotations.AddStamp(new Rect(50, 650, 300, 50));
annotation16.Name = StampAnnotationPredefinedNames.SBVoid;
StampAnnotation annotation4 = page.Annotations.AddStamp(new Rect(50, 200, 300, 50));
annotation4.Name = StampAnnotationPredefinedNames.SBVoid;
```

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