concept rectangle in category itext
appears as: rectangle, rectgles, rectgle, rectgles, rectgle, The rectgle

This is an excerpt from Manning's book iText in Action, Second Edition.
If you look at the poster for the movie Stand by Me, you’ll find out that it’s made up of 100 pixels x 140 pixels. These values are returned by getWidth() and getHeight(). When scaled to fit a rectangle of 1000 pixels x 72 pixels, the dimensions are changed into 51.42857 x 72—those are the values returned by getPlainWidth() and getPlainHeight().
Table 7.1. Destination types for creating a PdfDestination object
Type
Extra parameters
Description
FIT - The current page is displayed with its contents magnified just enough to fit the document window, both horizontally and vertically. FITB - The current page is displayed magnified just enough to fit the bounding box of the contents (the smallest rectangle enclosing all of its contents). FITH float top The page is displayed so that the page fits within the document window horizontally (the entire width of the page is visible). The extra parameter specifies the vertical coordinate of the top edge of the page. FITBH float top This option is almost identical to FITH, but the width of the bounding box of the page is visible. This isn’t necessarily the entire width of the page. FITV float left The page is displayed so that the page fits within the document window vertically (the entire height of the page is visible). The extra parameter specifies the horizontal coordinate of the left edge of the page. FITBV float left This option is almost identical to FITV, but the height of the bounding box of the page is visible. This isn’t necessarily the entire height of the page. XYZ float left, float top, float zoom The parameter left defines an X coordinate, top defines a Y coordinate, and zoom defines a zoom factor. If you want to keep the current X coordinate, Y coordinate, or zoom factor, you can pass negative values or 0 for the corresponding parameter. FITR float left, float bottom, float right, float top The parameters define a rectangle. The page is displayed with its contents magnified just enough to fit this rectangle. If the required zoom factors for the horizontal and the vertical magnification are different, the smaller of the two is used.