Table of Contents

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 int

The 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

type int

the destination type

parameter float

a parameter to combined with the destination type

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 int

must be a PdfDestination.XYZ

left float

the left value. Negative to place a null

top float

the top value. Negative to place a null

zoom float

The 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 int

must be PdfDestination.FITR

left float

a parameter

bottom float

a parameter

right float

a parameter

top float

a parameter

Fields

FIT

public static member-variables

public const int FIT = 1

Field Value

int

FITB

This is a possible destination type

public const int FITB = 5

Field Value

int

FITBH

This is a possible destination type

public const int FITBH = 6

Field Value

int

FITBV

This is a possible destination type

public const int FITBV = 7

Field Value

int

FITH

This is a possible destination type

public const int FITH = 2

Field Value

int

FITR

This is a possible destination type

public const int FITR = 4

Field Value

int

FITV

This is a possible destination type

public const int FITV = 3

Field Value

int

XYZ

This is a possible destination type

public const int XYZ = 0

Field Value

int

Methods

AddPage(PdfIndirectReference)

methods

public bool AddPage(PdfIndirectReference page)

Parameters

page PdfIndirectReference

Returns

bool

true or false

HasPage()

public bool HasPage()

Returns

bool