Click or drag to resize

Redaction Class

A redaction annotation (PDF 1.7) identifies content that is intended to be removed from the document. The intent of redaction annotations is to enable the following process: a)Content identification. A user applies redact annotations that specify the pieces or regions of content that should be removed. Up until the next step is performed, the user can see, move and redefine these annotations. b)Content removal. The user instructs the viewer application to apply the redact annotations, after which the content in the area specified by the redact annotations is removed. In the removed content’s place, some marking appears to indicate the area has been redacted. Also, the redact annotations are removed from the PDF document.

Redaction annotations provide a mechanism for the first step in the redaction process (content identification). This allows content to be marked for redaction in a non-destructive way, thus enabling a review process for evaluating potential redactions prior to removing the specified content.

Redaction annotations shall provide enough information to be used in the second phase of the redaction process (content removal). This phase is application-specific and requires the conforming reader to remove all content identified by the redaction annotation, as well as the annotation itself.

Conforming readers that support redaction annotations shall provide a mechanism for applying content removal, and they shall remove all traces of the specified content. If a portion of an image is contained in a redaction region, that portion of the image data shall be destroyed; clipping or image masks shall not be used to hide that data. Such conforming readers shall also be diligent in their consideration of all content that can exist in a PDF document, including XML Forms Architecture (XFA) content and Extensible Metadata Platform (XMP) content.

Inheritance Hierarchy
SystemObject
  pdftron.PDF.AnnotsRedaction

Namespace:  pdftron.PDF.Annots
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Redaction : IClosable, 
	IAnnot, IMarkup

The Redaction type exposes the following members.

Constructors
  NameDescription
Public methodRedaction
Creates an Redaction annotation and initialize it using given Cos/SDF object.
Top
Methods
  NameDescription
Public methodClose
Public methodStatic memberCreate
Creates a new Redaction annotation, in the specified document.
Public methodDeleteCustomData
Deletes custom data associated with the given key.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFlatten
Flatten/Merge the existing annotation appearances with the page content and delete this annotation from a given page. Annotation 'flattening' refers to the operation that changes active annotations (such as markup, widgets, 3D models, etc.) into a static area that is part of the PDF document, just like the other text and images in the document.
Public methodGetAnnotType
Gets the type.
Public methodGetAppearance
Gets the annotation’s appearance for the given combination of annotation and appearance states.
Public methodGetAppearance(AnnotAnnotationState)
Gets the annotation’s appearance for the given combination of annotation and appearance states.
Public methodGetAppearance(AnnotAnnotationState, String)
Gets the annotation’s appearance for the given combination of annotation and appearance states.
Public methodGetAppFormXO
Gets Overlay appearance of the Redaction annotation.
Public methodGetBorderEffect
Gets the Border Effect of the Markup Annotation.
Public methodGetBorderEffectIntensity
Sets the Border Effect of the Markup Annotation. (Optional; PDF 1.5 )
Public methodGetBorderStyle
Gets the border style for the annotation. Typically used for Link annotations.
Public methodGetColorAsCMYK
Gets an annotation's color.
Public methodGetColorAsGray
Gets an annotation's color.
Public methodGetColorAsRGB
Gets the annotation’s active appearance state.
Public methodGetColorCompNum
Gets the color space the annotation's color is represented in.
Public methodGetContentRect
Gets the inner bounding rectangle of the Square. (Optional; PDF 1.5)
Public methodGetContents
Gets the contents.
Public methodGetCreationDates
Gets the creation date of the Markup Annotation
Public methodGetCustomData
Returns custom data associated with the given key.
Public methodGetDate
Gets an annotation's last modified date.
Public methodGetFlag
Gets the flag.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInteriorColor
Sets the interior color of the Square. (Optional; PDF 1.4 )
Public methodGetInteriorColorCompNum
Gets the number indicating interior color space of the Square.
Public methodGetOpacity
Gets the contant opacity value corresponding to the annotation.
Public methodGetOptionalContent
Gets optional content of an annotation.
Public methodGetOverlayText
Gets Overlay text of the Redaction annotation.
Public methodGetOverlayTextAppearance
Gets Overlay text appearance of the Redaction annotation.
Public methodGetPadding
Gets the rectangle difference of the Square. (Optional; PDF 1.5)
Public methodGetPage
Gets the page the annotation is associated with.
Public methodGetPopup
Gets the Popup object associated with this Markup annotation.
Public methodGetQuadForm
Gets Overlay text quadding(justification) format of the Redaction annotation.
Public methodGetQuadPoint
Gets the QuadPoint located at a certain index of the QuadPoint Array of the Redaction annotation.
Public methodGetQuadPointCount
Gets the number of QuadPoints in the QuadPoints Array of the Redaction annotation.
Public methodGetRect
Gets the rect.
Public methodGetRotation
Gets the rotation value of the annotation.The Rotation specifies the number of degrees by which the annotation shall be rotated counterclockwise relative to the page. The value shall be a multiple of 90.
Public methodGetSDFObj
Gets the SDFObj.
Public methodGetStructParent
Gets the struct parent of an annotation. (Required if the annotation is a structural content item; PDF 1.3)
Public methodGetSubject
Gets subject of the Markup Annotation.
Public methodGetTitle
Gets the title of the Markup Annotation.
Public methodGetTriggerAction
Get the Action associated with the selected Annot Trigger event
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniqueID
Gets the unique ID.
Public methodGetUseRepeat
Gets the option of whether to use repeat for the Redaction annotation.
Public methodIsMarkup
Checks if is markup.
Public methodIsValid
Checks if is valid.
Public methodRefreshAppearance
Regenerates the appearance stream for the annotation. This method can be used to auto-generate the annotation appearance after creating or modifying the annotation without providing an explicit appearance or setting the "NeedAppearances" flag in the AcroForm dictionary.
Public methodRefreshAppearance(RefreshOptions)
A version of RefreshAppearance allowing custom options to make slight tweaks in behaviour.
Public methodRemoveAppearance
Removes the annotation's appearance
Public methodRemoveAppearance(AnnotAnnotationState)
Removes the annotation's appearance for the given combination of annotation and appearance states.
Public methodRemoveAppearance(AnnotAnnotationState, String)
Removes the annotation's appearance for the given combination of annotation and appearance states.
Public methodResize
Resize.
Public methodSetAppearance(Obj)
Sets the annotation’s appearance for the given combination of annotation and appearance states. (Optional; PDF 1.2)
Public methodSetAppearance(Obj, AnnotAnnotationState)
Removes the annotation's appearance for the given combination of annotation and appearance states.
Public methodSetAppearance(Obj, AnnotAnnotationState, String)
Sets the annotation’s appearance for the given combination of annotation and appearance states. (Optional; PDF 1.2)
Public methodSetAppFormXO
Sets Overlay appearance of the Redaction annotation. (Optional)
Public methodSetBorderEffectIntensity
Sets the Border Effect Intensity of the Markup Annotation. (Optional; valid only if Border effect is Cloudy)
Public methodSetBorderStyle
Sets the border style for the annotation. Typically used for Link annotations.
Public methodSetColor(ColorPt)
Sets an annotation's color. (Optional; PDF 1.1)
Public methodSetColor(ColorPt, Int32)
Sets an annotation's color. (Optional; PDF 1.1)
Public methodSetContentRect
Sets the inner bounding rectangle of the Square. (Optional; PDF 1.5)
Public methodSetContents
Sets the contents.
Public methodSetCreationDates
Sets the creation date of the Markup Annotation. (Optional; PDF 1.5 )
Public methodSetCustomData
Sets the custom data associated with the specified key.
Public methodSetDate
Sets an annotation's last modified date.
Public methodSetDateToNow
Sets an annotation's modification date and time to the current time. This corresponds to the value of the "M" field of annotation dictionary(PDF 1.1)
Public methodSetFlag
Sets the value of given Flag.
Public methodSetInteriorColor
Gets the interior color of the Square.
Public methodSetOpacity
Sets the contant opacity value corresponding to the annotation. (Optional; PDF 1.4 )
Public methodSetOptionalContent
Sets optional content of an annotation. (Optional, PDF1.5).
Public methodSetOverlayText
Sets Overlay text of the Redaction annotation.
Public methodSetOverlayTextAppearance
Sets Overlay text appearance of the Redaction annotation.
Public methodSetPadding
Sets the rectangle difference of the Square. (Optional; PDF 1.5)
Public methodSetPage
Sets the reference to a page the annotation is associated with. (Optional PDF 1.3; not used in FDF files)
Public methodSetPopup
Sets the Popup object associated with this Markup annotation. (Optional; PDF 1.3 )
Public methodSetQuadForm
Public methodSetQuadForm(RedactionQuadForm)
Creates an Redaction annotation and initialize it using given annotation object.
Public methodSetQuadPoint
Set the QuadPoint to be located at a certain index of the QuadPoint Array of the Redaction annotation. (Optional; PDF 1.6 )
Public methodSetRect
Sets the size and location of an annotation on its page.
Public methodSetRotation
Sets the rotation value of the annotation.The Rotation specifies the number of degrees by which the annotation shall be rotated counterclockwise relative to the page. The value shall be a multiple of 90. (Optional)
Public methodSetStructParent
Sets the struct parent of an annotation. (Required if the annotation is a structural content item; PDF 1.3)
Public methodSetSubject
Sets subject of the Markup Annotation. (Optional; PDF 1.5 )
Public methodSetTitle
Sets the title of the Markup Annotation. (Optional; PDF 1.1)
Public methodSetUniqueID
Sets the unique identifier for this annotation.
Public methodSetUseRepeat
Public methodSetUseRepeat(Boolean)
Sets the option of whether to use repeat for the Redaction annotation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also