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
public class RichMediaPosition
- extends PdfDictionary
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
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 |
Method Summary |
void |
setHAlign(PdfName hAlign)
Set the horizontal alignment. |
void |
setHOffset(float hOffset)
Sets the offset from the alignment point specified by the HAlign key. |
void |
setVAlign(PdfName vAlign)
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 |
RichMediaPosition
public RichMediaPosition()
- Constructs a RichMediaPosition dictionary.
setHAlign
public void setHAlign(PdfName hAlign)
- Set the horizontal alignment.
- Parameters:
hAlign
- possible values are
PdfName.NEAR, PdfName.CENTER, or PdfName.FAR
setVAlign
public void setVAlign(PdfName vAlign)
- 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
Copyright © 2015. All Rights Reserved.