Class Viewport
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.spatial.Viewport
- All Implemented Interfaces:
Serializable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(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.voidsetMeasure(Measure measure) A measure dictionary that specifies the scale and units that shall apply to measurements taken on the contents within the viewport.void(Optional) A descriptive text string or title of the viewport, intended for use in a user interface.voidPointDatathat shall specify the extended geospatial data that applies to the image.Methods inherited from class 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, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
Viewport
public Viewport()Creates a ViewPort dictionary.
-
-
Method Details
-
setBBox
(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
(Optional) A descriptive text string or title of the viewport, intended for use in a user interface.- Parameters:
value-
-
setMeasure
A measure dictionary that specifies the scale and units that shall apply to measurements taken on the contents within the viewport.- Parameters:
measure-
-
setPtData
-