Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 2.92 KB

File metadata and controls

37 lines (24 loc) · 2.92 KB

PDF Viewer for WinForms - Add Redaction Annotations by Coordinates Obtained from the Viewer

The DevExpress WinForms PDF Viewer allows you to create redaction annotations within a specified PDF file region. In this example, a rectangle is drawn in the selection area. Click the Redact button to add a redaction annotation to the drawn rectangle.

pdf viewer for winforms redaction annotation on selection

Important

You need an active DevExpress Office File API Subscription or DevExpress Universal Subscription to use PDF Graphics and Facade API in production code.

Implementation Details

Selection area coordinates are obtained through MouseUp, MouseMove, and MouseDown event handlers. Drawing the rectangle is handled within the PdfViewerControl.Paint event handler. A PdfDocumentFacade instance of the active page is obtained in the ButtonClick event handler. A AddRedactAnnotation method call generates a redaction annotation over the rectangle. An ApplyRedactAnnotations method call applies the annotation.

Files to Review

More Examples

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)