diff --git a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png index 61e74ec2..dd1819fb 100644 Binary files a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png and b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation-with-fixedcontenteditor.png differ diff --git a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation.png b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation.png index 03ad6c9f..acdfd5da 100644 Binary files a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation.png and b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-lineannotation.png differ diff --git a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-appearance.png b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-appearance.png index 5743b137..0b8b6622 100644 Binary files a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-appearance.png and b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-appearance.png differ diff --git a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-fixedcontenteditor.png b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-fixedcontenteditor.png index 08535e73..dcb7f558 100644 Binary files a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-fixedcontenteditor.png and b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation-with-fixedcontenteditor.png differ diff --git a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation.png b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation.png index 75aa5f65..cd4ba7a1 100644 Binary files a/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation.png and b/libraries/radpdfprocessing/model/annotations/images/pdf-processing-create-stampannotation.png differ diff --git a/libraries/radpdfprocessing/model/annotations/line.md b/libraries/radpdfprocessing/model/annotations/line.md index bd332a66..24f5c7cc 100644 --- a/libraries/radpdfprocessing/model/annotations/line.md +++ b/libraries/radpdfprocessing/model/annotations/line.md @@ -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) @@ -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) diff --git a/libraries/radpdfprocessing/model/annotations/stamp.md b/libraries/radpdfprocessing/model/annotations/stamp.md index bad81ff6..a748264b 100644 --- a/libraries/radpdfprocessing/model/annotations/stamp.md +++ b/libraries/radpdfprocessing/model/annotations/stamp.md @@ -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)