SetBookmarkDestination

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

SetBookmarkDestination

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Sets the destination for subsequently added bookmarks.

method void VPE.SetBookmarkDestination(

BookmarkDestination [integer] BookmarkDestination,

long Left,

long Top,

long Right,

long Bottom,

double ZoomFactor

)

BookmarkDestination [integer] BookmarkDestination

Bookmark Type, possible values are:

ActiveX / VCL

Comment

Value

Enum

VBOOKMARK_DEST_NONE

0

None

No Destination

 

VBOOKMARK_DEST_LTZ

1

LeftTopZoom

Normal Destination (left, top, zoom are used) - this is the default
Display the target page with the coordinates (left, top) positioned at the top-left corner of the window and the contents of the page magnified by the zoom_factor. A null value for any of the parameters left, top, or zoom_factor specifies that the current value of that parameter is to be retained unchanged.

 

VBOOKMARK_DEST_FIT

2

Fit

Fit the page in the window (no coordinates used)
Display the target page with its contents magnified just enough to fit the entire page 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 page within the window in the other dimension.

 

VBOOKMARK_DEST_FITH

3

FitHorizontally

Fit the page in the window horizontally (top coordinate used)
Display the target page with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window.

 

VBOOKMARK_DEST_FITV

4

FitVertically

Fit the page in the specified rectangle (all coordinates used)
Display the target 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.

 

VBOOKMARK_DEST_FITR

5

FitRectangle

Fit the page in the specified rectangle (all coordinates used)
Display the target 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.

 

VBOOKMARK_DEST_FITB

6

FitBounding

Fit the page's bounding rectangle in the window
Display the target page with its contents magnified just enough to fit its bounding box 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 bounding box within the window in the other dimension.

 

VBOOKMARK_DEST_FITBH

7

FitBoundingHorizontally

Fit the page's bounding rectangle horizontally in the window (top coordinate used)
Display the target page with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of its bounding box within the window.

 

VBOOKMARK_DEST_FITBV

8

FitBoundingVertically

Fit the page's bounding rectangle vertically in the window (left coordinate used)
Display the target page with the horizontal coordinate left positioned at the left edge of the window and the contents of the page magnified just enough to fit the entire height of its bounding box within the window.

long Left, long Top, long Right, long Bottom

position and dimensions

double ZoomFactor

zoom factor, e.g.: 0.5 = 50%; 1.0 = 100%; 2.0 = 200%; etc.

Default:

VBOOKMARK_DEST_LTZ