Package com.itextpdf.text.pdf.richmedia
Class RichMediaPosition
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.richmedia.RichMediaPosition
- All Implemented Interfaces:
Serializable
The position of the window in the reader presentation area is described
by the RichMediaPosition dictionary. The position of the window remains
fixed, regardless of the page translation.
See ExtensionLevel 3 p84
- Since:
- 5.0.0
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the horizontal alignment.void
setHOffset
(float hOffset) Sets the offset from the alignment point specified by the HAlign key.void
Set the horizontal alignment.void
setVOffset
(float vOffset) Sets the offset from the alignment point specified by the VAlign key.Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, 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
-
Constructor Details
-
RichMediaPosition
public RichMediaPosition()Constructs a RichMediaPosition dictionary.
-
-
Method Details
-
setHAlign
Set the horizontal alignment.- Parameters:
hAlign
- possible values are PdfName.NEAR, PdfName.CENTER, or PdfName.FAR
-
setVAlign
Set the horizontal alignment.- Parameters:
vAlign
- possible values are PdfName.NEAR, PdfName.CENTER, or PdfName.FAR
-
setHOffset
public void setHOffset(float hOffset) Sets the offset from the alignment point specified by the HAlign key. A positive value for HOffset, when HAlign is either Near or Center, offsets the position towards the Far direction. A positive value for HOffset, when HAlign is Far, offsets the position towards the Near direction.- Parameters:
hOffset
- an offset
-
setVOffset
public void setVOffset(float vOffset) Sets the offset from the alignment point specified by the VAlign key. A positive value for VOffset, when VAlign is either Near or Center, offsets the position towards the Far direction. A positive value for VOffset, when VAlign is Far, offsets the position towards the Near direction.- Parameters:
vOffset
- an offset
-