Class RichMediaDeactivation

java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaDeactivation
All Implemented Interfaces:
Serializable

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
See Also:
  • Constructor Details

    • RichMediaDeactivation

      public RichMediaDeactivation()
      Creates a RichMediaActivation dictionary.
  • Method Details

    • 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