com.itextpdf.text.pdf.richmedia
Class RichMediaDeactivation

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.richmedia.RichMediaDeactivation

public class RichMediaDeactivation
extends PdfDictionary

The RichMediaActivation dictionary specifies the condition that causes deactivation of the annotation. See ExtensionLevel 3 p80

Since:
5.0.0

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
RichMediaDeactivation()
          Creates a RichMediaActivation dictionary.
 
Method Summary
 void setCondition(PdfName condition)
          Sets the activation condition.
 
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
 
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RichMediaDeactivation

public RichMediaDeactivation()
Creates a RichMediaActivation dictionary.

Method Detail

setCondition

public void setCondition(PdfName condition)
Sets the activation condition. Set it to XD, and the annotation is explicitly deactivated by a user action or script. To PC, and the annotation is deactivated as soon as the page that contains the annotation loses focus as the current page. To PI, abd the annotation is deactivated as soon as the entire page that contains the annotation is no longer visible.

Parameters:
condition - possible values are: PdfName.XD, PdfName.PC, or PdfName.PI

Hosted by Hostbasket