Package com.itextpdf.text.pdf.spatial
Class Viewport
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.spatial.Viewport
-
- All Implemented Interfaces:
java.io.Serializable
public class Viewport extends PdfDictionary
A ViewPort dictionary.- Since:
- 5.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Viewport()
Creates a ViewPort dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBBox(Rectangle bbox)
(Required) A rectangle in default user space coordinates specifying the location of the viewport on the page.
The two coordinate pairs of the rectangle shall be specified in normalized form; that is, lower-left followed by upper-right, relative to the measuring coordinate system.void
setMeasure(Measure measure)
A measure dictionary that specifies the scale and units that shall apply to measurements taken on the contents within the viewport.void
setName(PdfString value)
(Optional) A descriptive text string or title of the viewport, intended for use in a user interface.void
setPtData(PointData ptData)
PointData
that shall specify the extended geospatial data that applies to the image.-
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
-
-
-
-
Method Detail
-
setBBox
public void setBBox(Rectangle bbox)
(Required) A rectangle in default user space coordinates specifying the location of the viewport on the page.
The two coordinate pairs of the rectangle shall be specified in normalized form; that is, lower-left followed by upper-right, relative to the measuring coordinate system. This ordering shall determine the orientation of the measuring coordinate system (that is, the direction of the positive x and y-axes) in this viewport, which may have a different rotation from the page.
The coordinates of this rectangle are independent of the origin of the measuring coordinate system, specified in the Origin entry of the measurement dictionary specified by Measure.- Parameters:
bbox
-
-
setName
public void setName(PdfString value)
(Optional) A descriptive text string or title of the viewport, intended for use in a user interface.- Parameters:
value
-
-
setMeasure
public void setMeasure(Measure measure)
A measure dictionary that specifies the scale and units that shall apply to measurements taken on the contents within the viewport.- Parameters:
measure
-
-
-