com.itextpdf.text.pdf.spatial
Class Viewport

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.spatial.Viewport

public class Viewport
extends com.itextpdf.text.pdf.PdfDictionary

A ViewPort dictionary.

Since:
5.1.0

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
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
 
Constructor Summary
Viewport()
          Creates a ViewPort dictionary.
 
Method Summary
 void setBBox(com.itextpdf.text.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(com.itextpdf.text.pdf.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Viewport

public Viewport()
Creates a ViewPort dictionary.

Method Detail

setBBox

public void setBBox(com.itextpdf.text.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(com.itextpdf.text.pdf.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 -

setPtData

public void setPtData(PointData ptData)
PointData that shall specify the extended geospatial data that applies to the image.

Parameters:
ptData -


Copyright © 2013. All Rights Reserved.