Class Viewport

  • All Implemented Interfaces:
    java.io.Serializable

    public class Viewport
    extends PdfDictionary
    A ViewPort dictionary.
    Since:
    5.1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Viewport

        public Viewport()
        Creates a ViewPort dictionary.
    • 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 -
      • setPtData

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