Display Modes
ComPDFKit supports single-page, double-page, and book mode arrangements for documents, facilitating reading through both page flipping and scrolling methods. Additionally, it offers options to set cropping mode and split-view mode.
Set the Display Mode
This example shows how to set the display mode to single continuous:
myCPDFViewer.ChangeViewMode(ViewMode.SingleContinuous);
Explanation of Display Mode Types
The table below displays Reading Mode types, descriptions, and their corresponding parameter names.
Type | Description | Parameter Name |
---|---|---|
Single | Display one page at a time, flipping to the next when scrolling to the page edge. | ViewMode.Single |
Single Continuous | Display one page at a time, with pages arranged continuously in the vertical direction. | ViewMode.SingleContinuous |
Double | Display two pages side-by-side at a time, flipping when scrolling to the page edge. | ViewMode.Double |
Double Continuous | Display two pages side-by-side at a time, with pages arranged continuously in the vertical direction. | ViewMode.DoubleContinuous |
Book | Cover occupies a row alone, with the rest consistent with the double-page mode. | ViewMode.Book |
Book Continuous | Cover occupies a row alone, with the rest consistent with the double continuous mode. | ViewMode.BookContinuous |
Set the Crop Mode
Crop mode refers to a feature in PDF documents that allows the cropping of pages to alter their visible area or dimensions. Crop mode enables users to define the display range of a page, making it visually more aligned with specific requirements.
This example shows how to set the crop mode:
myCPDFViewer.SetCropMode(true);
Set the Split View Mode
Split View mode supports splitting the document window into two windows, allowing users to view different views or pages of the same PDF document at the same time. Supports both vertical split view and horizontal split view modes.
This example shows how to set the horizontal split view mode:
myCPDFViewer.SetSplitMode(SplitMode.Horizontal);