com.lowagie.text.pdf
public class PdfDestination extends PdfArray
Field Summary | |
---|---|
static int | FIT This is a possible destination type |
static int | FITB This is a possible destination type |
static int | FITBH This is a possible destination type |
static int | FITBV This is a possible destination type |
static int | FITH This is a possible destination type |
static int | FITR This is a possible destination type |
static int | FITV This is a possible destination type |
boolean | status Is the indirect reference to a page already added? |
static int | XYZ This is a possible destination type |
Constructor Summary | |
---|---|
PdfDestination(int type)
Constructs a new PdfDestination .
| |
PdfDestination(int type, float parameter)
Constructs a new PdfDestination .
| |
PdfDestination(int type, float left, float top, float zoom) Constructs a new PdfDestination .
| |
PdfDestination(int type, float left, float bottom, float right, float top) Constructs a new PdfDestination .
|
Method Summary | |
---|---|
boolean | addPage(PdfIndirectReference page) Adds the indirect reference of the destination page.
|
boolean | hasPage()
Checks if an indirect reference to a page has been added.
|
PdfDestination
.
If type equals FITB, the bounding box of a page will fit the window of the Reader. Otherwise the type will be set to FIT so that the entire page will fit to the window.
Parameters: type The destination type
PdfDestination
.
If type equals FITBH / FITBV, the width / height of the bounding box of a page will fit the window of the Reader. The parameter will specify the y / x coordinate of the top / left edge of the window. If the type equals FITH or FITV the width / height of the entire page will fit the window and the parameter will specify the y / x coordinate of the top / left edge. In all other cases the type will be set to FITH.
Parameters: type the destination type parameter a parameter to combined with the destination type
PdfDestination
.
Display the page, with the coordinates (left, top) positioned at the top-left corner of the window and the contents of the page magnified by the factor zoom. A negative value for any of the parameters left or top, or a zoom value of 0 specifies that the current value of that parameter is to be retained unchanged.
Parameters: type must be a PdfDestination.XYZ left the left value. Negative to place a null top the top value. Negative to place a null zoom The zoom factor. A value of 0 keeps the current value
PdfDestination
.
Display the page, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension.
Parameters: type must be PdfDestination.FITR left a parameter bottom a parameter right a parameter top a parameter
Since: iText0.38
Parameters: page an indirect reference
Returns: true if the page reference was added
Returns: true
or false