Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146052 | Jul 17,2019 09:17 PM UTC | Jul 18,2019 04:44 PM UTC | WPF | 3 |
![]() |
Tags: PdfViewer |
RectangleF rectangle = new RectangleF(left, top, width, height);
PdfRectangleAnnotation rectangleAnnot = new PdfRectangleAnnotation(rectangle, "Rectangle annotation");
rectangleAnnot.Border.BorderWidth = 4;
rectangleAnnot.Border.BorderStyle = PdfBorderStyle.Solid;
PdfViewerControl.LoadedDocument.Pages[0].Annotations.Add(rectangleAnnot);
PdfViewerControl.LoadedDocument.Save(“output.pdf”);
PdfViewerControl.Unload(true);
PdfViewerControl.Load(“output.pdf”); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.