We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Create White Redaction

I have to add white redactions to a PDF with an image on the page to hide certain portions of the image. I’ve tried using a white highlighter annotation, but the image shows through when viewed in various PDF viewers (Acrobat Reader and Foxit Reader). I cannot use another color, such as black, it must be a white redaction. Changing opacity doesn’t help either.

How can this be done?

Here is the code I used to create the highlight annotation:

Dim pdffile As String = "D:\tmp\sample.pdf"
Dim editor As New PdfContentEditor
editor.CreateMarkup(New System.Drawing.Rectangle(50, 600, 200, 50), “”, 0, 1, System.Drawing.Color.White)

Never mind, I figured it out. I can use a PolygonAnnotation with an InteriorColor of White. Unlike the highlight annotation, the polygon obscures the image behind it. Sorry for the unnecessary post.

Hi Joseph,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We are pleased to know that you are able to resolve your issue at your end. Please feel free to contact support in case you need any further assistance.

Thank You & Best Regards,