Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
The overlay.
Gets or sets a form XObject specifying the overlay appearance for this redaction annotation.
After this redaction is applied and the affected content has been removed, the overlay appearance
should be drawn such that its origin lines up with the lower-left corner of the annotation rectangle.
This form XObject is not necessarily related to other annotation appearances, and may or may not be
present in the APdictionary.
This entry takes precedence over the IC, OverlayText, DA, and Q entries.
Namespace: Apitron.PDF.Kit.Interactive.Annotations
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
Property Value
Type: FixedContentThe overlay.
Examples
C#
RedactionAnnotation redactionAnnotation = new RedactionAnnotation(new Boundary(100, 20, 400, 40)); redactionAnnotation.OverlayText = "This is redaction"; redactionAnnotation.QuaddingJustification = QuaddingJustification.Centered; redactionAnnotation.Repeat = true; FixedContent overlay = new FixedContent("Overlay", new Boundary( 0, 0, 300, 20)); TextObject overlayText = new TextObject(StandardFonts.Helvetica, 16); overlayText.AppendText("This is overlay XObject"); overlay.Content.AppendText(overlayText); redactionAnnotation.Overlay = overlay; FixedContent content = new FixedContent("NormalText", new Boundary(0, 0, 300, 20)); TextObject textObject = new TextObject(StandardFonts.Helvetica, 16); textObject.AppendText("This is the text for a redaction"); content.Content.AppendText(textObject); fixedDocument.ResourceManager.RegisterResource(content); page.Content.ModifyCurrentTransformationMatrix(1, 0, 0, 1, 100, 20); page.Content.AppendXObject("NormalText"); page.Annotations.Add(redactionAnnotation);
See Also