PDF Viewer Component - Go to Page
Posted by office viewer on October 20th, 2007Function: boolean GotoPage(long n);
Description: Goes to the page n of the PDF document.
Function: boolean GotoPage(long n);
Description: Goes to the page n of the PDF document.
Function: boolean GoForwardStack ();
Description: Forwards to the next viewing step.
Function: boolean GoBackwardStack();
Description: Retraces to previous viewing step.
Function: boolean ApplyPageMode (BSTR pageMode);
Description: Sets the page mode according to the specified string.
Params:
Possible values: “none”: displays the document, but does not display bookmarks or thumbnails (default) “bookmarks”: displays the document and bookmarks “thumbs”: displays the document and thumbnails.
Function: boolean ApplyLayoutMode (BSTR layoutMode);
Description: Sets the layout mode for a page view according to the specified string.
Params:
Possible values: “DontCare”: use the current user preference “SinglePage”: use single page mode (as it would have appeared in pre-Acrobat 3.0 viewers) “OneColumn”: use one-column continuous mode “TwoColumnLeft”: use two-column continuous mode with the first page on the left “TwoColumnRight”: use two-column continuous mode with the first page on the right.
Function: boolean ApplyNamedDest (BSTR nameDest);
Description: Changes the page view to the named destination in the specified string.
Params: The named destination to which the viewer will go.
Function: boolean PrintWithDialog ();
Description: Prints the document according to the options selected in a user dialog box. The options include embedded printing (printing within a bounding rectangle on a given page), as well as interactive printing to a specified printer. This method returns immediately, even if the printing has not completed. NOTE: If security settings do not allow printing, this method will be ignored.
Function: boolean ApplyZoom (float percent);
Description: Set the zoom factor for document page view.
Params: Specify the zoom factor in %.
Function: boolean ApplyZoomScroll (float percent, float left, float top);
Description: Sets the zoom and scroll factors, using float or integer values. For example, a scale value of 100 indicates a zoom value of 100%.
Scroll values left and top are in a coordinate system where 0,0 represents the top left corner of the visible page, regardless of document rotation.
Function: boolean ApplyView (BSTR viewMode);
Description: Sets the view of a page according to the specified string.
Params: Possible values: “Fit”: fits the entire page within the window both vertically and horizontally. “FitH”: fits the entire width of the page within the window. “FitV”: fits the entire height of the page within the window. “FitB”: fits the bounding box within the window both vertically and horizontally. “FitBH”: fits the entire width of the bounding box within the window. “FitBV”: fits the entire height of the bounding box within the window.
Recent Comments