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.
Important
You need an active DevExpress Office File API Subscription or DevExpress Universal Subscription to use PDF Graphics and Facade API in production code.
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.
(you will be redirected to DevExpress.com to submit your response)