Skip to content

Use PDF Facade API to create redaction annotations within a specified PDF file region

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-pdf-viewer-redaction-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Use PDF Facade API to create redaction annotations within a specified PDF file region

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •