Class Index

Classes


Class PDFNet.RedactionAnnot

PDFNet.RedactionAnnot

Class Summary
Constructor Attributes Constructor Name and Description
 
A redaction annotation (PDF 1.7) identifies content that is intended to be removed from the document.
Method Summary
Method Attributes Method Name and Description
<static>  
PDFNet.RedactionAnnot.create(doc, pos)
Creates a new Redaction annotation in the specified document.
<static>  
PDFNet.RedactionAnnot.createFromAnnot(ann)
creates an Redaction annotation and initializes it using given annotation object.
<static>  
PDFNet.RedactionAnnot.createFromObj(d)
creates a Redaction annotation and initializes it using given Cos/SDF object.
 
Returns Overlay appearance of the Redaction annotation.
 
Returns Overlay text of the Redaction annotation.
 
Returns Overlay text appearance of the Redaction annotation.
 
Returns Overlay text quadding(justification) format of the Redaction annotation.
 
Returns the QuadPoint located at a certain index of the QuadPoint array of the Redaction annotation.
 
Returns the number of QuadPoints in the QuadPoints array of the Redaction annotation.
 
Returns the option of whether to use repeat for the Redaction annotation.
 
setAppFormXO(formxo)
sets Overlay appearance of the Redaction annotation.
 
sets Overlay text of the Redaction annotation.
 
sets Overlay text appearance of the Redaction annotation.
 
sets Overlay text quadding (justification) format of the Redaction annotation.
 
setQuadPoint(idx, qp)
Set the QuadPoint to be located at a certain index of the QuadPoint array of the Redaction annotation.
 
setUseRepeat(userepeat)
sets the option of whether to use repeat for the Redaction annotation.
Class Detail
PDFNet.RedactionAnnot(id)
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: 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.
Parameters:
id
Method Detail
<static> {RedactionAnnot} PDFNet.RedactionAnnot.create(doc, pos)
Creates a new Redaction annotation in the specified document.
Parameters:
{SDFDoc} doc
A document to which the annotation is added.
{rect} pos
A rectangle specifying the annotation's bounds, in user space coordinates.
Returns:
{RedactionAnnot} A promise that resolves to a newly created blank Circle annotation.

<static> {RedactionAnnot} PDFNet.RedactionAnnot.createFromAnnot(ann)
creates an Redaction annotation and initializes it using given annotation object.
Parameters:
{Annot} ann
Annot object used to initialize the Redaction annotation.
Returns:
{RedactionAnnot} A promise that resolves to an object of type: "RedactionAnnot" (generated documentation)

<static> {RedactionAnnot} PDFNet.RedactionAnnot.createFromObj(d)
creates a Redaction annotation and initializes it using given Cos/SDF object.
Parameters:
{Obj} d
The Cos/SDF object to initialze the annotation with.
Returns:
{RedactionAnnot} A promise that resolves to an object of type: "RedactionAnnot" (generated documentation)

{Obj} getAppFormXO()
Returns Overlay appearance of the Redaction annotation.
Returns:
{Obj} A promise that resolves to an SDF object that represents the overlay appearance of the Redaction annotation.

{string} getOverlayText()
Returns Overlay text of the Redaction annotation.
Returns:
{string} A promise that resolves to a string containing the overlay text of the annotation.

{string} getOverlayTextAppearance()
Returns Overlay text appearance of the Redaction annotation.
Returns:
{string} A promise that resolves to a string containing the overlay text appearance of the annotation.

{number} getQuadForm()
Returns Overlay text quadding(justification) format of the Redaction annotation.
Return value enum:
PDFNet.RedactionAnnot.QuadForm = {
	e_LeftJustified : 0
	e_Centered : 1
	e_RightJustified : 2
	e_None : 3
}
Returns:
{number} A promise that resolves to a value of the "QuadForm" enum type, indicating the overlay text quadding(justification) format of the Redaction annotation's overlay text.

{quadpoint} getQuadPoint(idx)
Returns the QuadPoint located at a certain index of the QuadPoint array of the Redaction annotation.
Parameters:
{number} idx
The index of the QuadPoint, starts at zero and must be less than return value of GetQuadPointCount().
Returns:
{quadpoint} A promise that resolves to the QuadPoint located at a certain index of the QuadPoint array of the Redaction annotation.

{number} getQuadPointCount()
Returns the number of QuadPoints in the QuadPoints array of the Redaction annotation.
Returns:
{number} A promise that resolves to the number of QuadPoints.

{boolean} getUseRepeat()
Returns the option of whether to use repeat for the Redaction annotation.
Returns:
{boolean} A promise that resolves to a bool indicating whether to repeat for the Redaction annotation.

setAppFormXO(formxo)
sets Overlay appearance of the Redaction annotation. (Optional)
Parameters:
{Obj} formxo
An SDF object that represents the overlay appearance of the Redaction annotation.

setOverlayText(title)
sets Overlay text of the Redaction annotation.
Parameters:
{string} title
A string containing the overlay text of the annotation.

setOverlayTextAppearance(app)
sets Overlay text appearance of the Redaction annotation.
Parameters:
{string} app
A string containing the overlay text appearance of the annotation.

setQuadForm(form)
sets Overlay text quadding (justification) format of the Redaction annotation.
Parameters:
{number} form
A value of the "QuadForm" enum type, indicating the overlay text quadding(justification) format of the Redaction annotation.

setQuadPoint(idx, qp)
Set the QuadPoint to be located at a certain index of the QuadPoint array of the Redaction annotation. (Optional; PDF 1.6 )
Parameters:
{number} idx
The index position where the QuadPoint of interest is to be inserted, starting at 0.
{quadpoint} qp
The QuadPoint to be inserted at that position.

setUseRepeat(userepeat)
sets the option of whether to use repeat for the Redaction annotation.
Parameters:
{boolean} userepeat
A bool indicating whether to repeat for the Redaction annotation.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 09 2016 14:32:41 GMT-0700 (PDT)