DynaPDF Manual - Page 269

Previous Page 268   Index   Next Page 270

Function Reference
Page 269 of 839
Destination type
Description
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
pdfCreateGotoAction(pdf, dtFitH_Top, 1, 565, 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
pdfCreateGotoAction(pdf, dtFitV_Left, 1, 60, 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.
Note, the maximum zoom factor supported by Adobe's Acrobat is limited to
16 (Acrobat 4/5) or 64 if Acrobat 6 is used. It is not possible to zoom into the
rectangle if it is too small.
Example:
pdfCreateGotoAction(pdf,dtFit_Rect,1,150,550,450,700);
The destination types dtFitB, dtFitBH_Top, and dtFitBV_Left use always the media box of the page to
fit the page into the window. All other destination types use the crop box if any.
Remarks:
Actions must be added to a PDF object with AddActionToObj().
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
 

Previous topic: CreateGoToAction

Next topic: CreateGoToActionEx, CreateGoToEAction