DynaPDF Manual - Page 596

Previous Page 595   Index   Next Page 597

Function Reference
Page 596 of 839
Destination type
Description
dtXY_Zoom
Display the page designated by 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 zero value for any of the parameters left top or zoom
specifies that the current value of that parameter is to be retained unchanged.
Example:
// The zoom factor is left unchanged
pdfPageLinkEx(pdf,150,50,150,20,2,dtXY_Zoom,50,750,0,0);
dtFit
Display the page designated by 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. This destination type has no parameters.
dtFitH_Top
Display the page designated by 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.
Example:
// The parameter a specifies the top coordinate
pdfPageLinkEx(pdf,150,50,150,20,2,dtFitH_Top,750,0,0,0);
dtFitV_Left
Display the page designated by 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 the page within the window.
Example:
// The parameter a specifies the left edge
pdfPageLinkEx(pdf,150,50,150,20,2,dtFitV_Left,50,0,0,0);
dtFitRect
Display the page designated by 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.
Example:
pdfPageLinkEx(pdf,150,50,150,20,2,dtFit_Rect,150,550,450,
700);
The destination types dtFitB, dtFitBH_Top and dtFitBV_Left use the media box of the page to fit the
page into the window. All other destination types use the crop box if any.
 

Previous topic: PageLinkEx

Next topic: ParseContent