Class PdfDestination
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
A PdfColor defines a Color (it's a PdfArray containing 3 values). @see PdfDictionary
public class PdfDestination : PdfArray
- Inheritance
-
PdfDestination
- Inherited Members
Constructors
PdfDestination(int)
constructors
public PdfDestination(int type)
Parameters
type
intThe destination type
PdfDestination(int, float)
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.
public PdfDestination(int type, float parameter)
Parameters
PdfDestination(int, float, float, float)
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.
public PdfDestination(int type, float left, float top, float zoom)
Parameters
type
intmust be a PdfDestination.XYZ
left
floatthe left value. Negative to place a null
top
floatthe top value. Negative to place a null
zoom
floatThe zoom factor. A value of 0 keeps the current value
PdfDestination(int, float, float, float, float)
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. @since iText0.38
public PdfDestination(int type, float left, float bottom, float right, float top)
Parameters
type
intmust be PdfDestination.FITR
left
floata parameter
bottom
floata parameter
right
floata parameter
top
floata parameter
Fields
FIT
public static member-variables
public const int FIT = 1
Field Value
FITB
This is a possible destination type
public const int FITB = 5
Field Value
FITBH
This is a possible destination type
public const int FITBH = 6
Field Value
FITBV
This is a possible destination type
public const int FITBV = 7
Field Value
FITH
This is a possible destination type
public const int FITH = 2
Field Value
FITR
This is a possible destination type
public const int FITR = 4
Field Value
FITV
This is a possible destination type
public const int FITV = 3
Field Value
XYZ
This is a possible destination type
public const int XYZ = 0
Field Value
Methods
AddPage(PdfIndirectReference)
methods
public bool AddPage(PdfIndirectReference page)
Parameters
page
PdfIndirectReference
Returns
- bool
true or false
HasPage()
public bool HasPage()