| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfArray com.lowagie.text.pdf.PdfDestination
PdfDestination | public class PdfDestination extends PdfArray (Code) | | A PdfColor defines a Color (it's a PdfArray containing 3 values).
See Also: PdfDictionary |
Field Summary | |
final public static int | FIT | final public static int | FITB | final public static int | FITBH | final public static int | FITBV | final public static int | FITH | final public static int | FITR | final public static int | FITV | final public static int | XYZ |
Constructor Summary | |
public | PdfDestination(int type) Constructs a new PdfDestination .
If type equals FITB, the bounding box of a page
will fit the window of the Reader. | public | PdfDestination(int type, float parameter) Constructs a new PdfDestination .
If type equals FITBH / FITBV,
the width / height of the bounding box of a page will fit the window
of the Reader. | public | PdfDestination(int type, float left, float top, float zoom) Constructs a new 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. | public | PdfDestination(int type, float left, float bottom, float right, float top) Constructs a new 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. |
Method Summary | |
public boolean | addPage(PdfIndirectReference page) Adds the indirect reference of the destination page. | public boolean | hasPage() Checks if an indirect reference to a page has been added. |
FIT | final public static int FIT(Code) | | This is a possible destination type
|
FITB | final public static int FITB(Code) | | This is a possible destination type
|
FITBH | final public static int FITBH(Code) | | This is a possible destination type
|
FITBV | final public static int FITBV(Code) | | This is a possible destination type
|
FITH | final public static int FITH(Code) | | This is a possible destination type
|
FITR | final public static int FITR(Code) | | This is a possible destination type
|
FITV | final public static int FITV(Code) | | This is a possible destination type
|
XYZ | final public static int XYZ(Code) | | This is a possible destination type
|
PdfDestination | public PdfDestination(int type)(Code) | | Constructs a new 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 | public PdfDestination(int type, float parameter)(Code) | | Constructs a new 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 Parameters: parameter - a parameter to combined with the destination type |
PdfDestination | public PdfDestination(int type, float left, float top, float zoom)(Code) | | Constructs a new 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 Parameters: left - the left value. Negative to place a null Parameters: top - the top value. Negative to place a null Parameters: zoom - The zoom factor. A value of 0 keeps the current value |
PdfDestination | public PdfDestination(int type, float left, float bottom, float right, float top)(Code) | | Constructs a new 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 Parameters: left - a parameter Parameters: bottom - a parameter Parameters: right - a parameter Parameters: top - a parameter since: iText0.38 |
addPage | public boolean addPage(PdfIndirectReference page)(Code) | | Adds the indirect reference of the destination page.
Parameters: page - an indirect reference true if the page reference was added |
hasPage | public boolean hasPage()(Code) | | Checks if an indirect reference to a page has been added.
true or false |
|
|