java.lang.Object | |
↳ | com.pdftron.pdf.Redactor.Appearance |
Class used to customize the appearance of the optional redaction overlay.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public boolean | border | Border specifies if the overlay will be surrounded by a border. | |||||||||
public Font | font | Specifies the font used to represent the text in the overlay. | |||||||||
public int | horizTextAlignment | Specifies the horizontal text alignment in the overlay: align%lt;0 -> text will be left aligned. | |||||||||
public double | maxFontSize | Specifies the maximum font size used to represent the text in the overlay. | |||||||||
public double | minFontSize | Specifies the minimum font size used to represent the text in the overlay. | |||||||||
public ColorPt | negativeOverlayColor | NegativeOverlayColor defines the overlay background color in RGB color space for negative redactions. | |||||||||
public ColorPt | positiveOverlayColor | PositiveOverlayColor defines the overlay background color in RGB color space for positive redactions. | |||||||||
public ColorPt | redactedContentColor | Specifies the color used to paint the regions where content was removed. | |||||||||
public boolean | redactionOverlay | If RedactionOverlay is set to true, Redactor will draw an overlay covering all redacted regions. | |||||||||
public boolean | showRedactedContentRegions | Specifies whether an overlay should be drawn in place of the redacted content. | |||||||||
public ColorPt | textColor | Specifies the color used to paint the text in the overlay (in RGB). | |||||||||
public boolean | useOverlayText | Specifies if the text (e.g. | |||||||||
public int | vertTextAlignment | Specifies the vertical text alignment in the overlay: align<0 -> text will be top aligned. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Appearance() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Border specifies if the overlay will be surrounded by a border.
Specifies the horizontal text alignment in the overlay: align%lt;0 -> text will be left aligned. align==0 -> text will be center aligned. align>0 -> text will be right aligned.
Specifies the maximum font size used to represent the text in the overlay.
Specifies the minimum font size used to represent the text in the overlay.
NegativeOverlayColor defines the overlay background color in RGB color space for negative redactions.
PositiveOverlayColor defines the overlay background color in RGB color space for positive redactions.
Specifies the color used to paint the regions where content was removed. Default value is Gray color.
If RedactionOverlay is set to true, Redactor will draw an overlay covering all redacted regions. The rest of properties in the Appearance class defines visual properties of the overlay. If false the overlay region will not be drawn.
Specifies whether an overlay should be drawn in place of the redacted content. This option can be used to indicate the areas where the content was removed from without revealing the content itself. Default value is False.
Note: The overlay region used redactedContentColor as a fill color.
Specifies if the text (e.g. "Redacted" etc.) should be placed on top of the overlay. The remaining properties relate to the positioning, and styling of the overlay text.
Specifies the vertical text alignment in the overlay: align<0 -> text will be top aligned. align==0 -> text will be center aligned. align>0 -> text will be bottom aligned.