PDFViewCtrl Class |
Namespace: pdftron.PDF
public sealed class PDFViewCtrl : ContentControl, IClosable
The PDFViewCtrl type exposes the following members.
Name | Description | |
---|---|---|
PDFViewCtrl | Default PDFViewCtrl constructor.
|
Name | Description | |
---|---|---|
AccessKey | (Inherited from UIElement.) | |
AccessKeyScopeOwner | (Inherited from UIElement.) | |
ActualHeight | (Inherited from FrameworkElement.) | |
ActualOffset | (Inherited from UIElement.) | |
ActualSize | (Inherited from UIElement.) | |
ActualTheme | (Inherited from FrameworkElement.) | |
ActualWidth | (Inherited from FrameworkElement.) | |
AllowDrop | (Inherited from UIElement.) | |
AllowFocusOnInteraction | (Inherited from FrameworkElement.) | |
AllowFocusWhenDisabled | (Inherited from FrameworkElement.) | |
AnimateAllPageFlipping | Gets or sets whether to use animations when flipping pages using non-touch
| |
AnimateAllPageFlippingProperty | Dependency property to animate page flipping when not using touch
| |
Background | (Inherited from Control.) | |
BackgroundSizing | (Inherited from Control.) | |
BaseUri | (Inherited from FrameworkElement.) | |
BorderBrush | (Inherited from Control.) | |
BorderThickness | (Inherited from Control.) | |
CacheMode | (Inherited from UIElement.) | |
CanBeScrollAnchor | (Inherited from UIElement.) | |
CanDrag | (Inherited from UIElement.) | |
CanFlipPages | Gets or sets whether flipping pages in non-continuous modes
using a finger is possible | |
CanFlipPagesProperty | Dependency property to enable or disable flipping pages in non-continuous modes
using a finger | |
CenterPoint | (Inherited from UIElement.) | |
CharacterSpacing | (Inherited from Control.) | |
Clip | (Inherited from UIElement.) | |
CompositeMode | (Inherited from UIElement.) | |
Content | (Inherited from ContentControl.) | |
ContentTemplate | (Inherited from ContentControl.) | |
ContentTemplateRoot | (Inherited from ContentControl.) | |
ContentTemplateSelector | (Inherited from ContentControl.) | |
ContentTransitions | (Inherited from ContentControl.) | |
ContextFlyout | (Inherited from UIElement.) | |
ConvertedPages | Gets the number of pages that have been converted since starting the conversion with
OpenUniversalDocument | |
CornerRadius | (Inherited from Control.) | |
DataContext | (Inherited from FrameworkElement.) | |
DefaultStyleResourceUri | (Inherited from Control.) | |
DesiredSize | (Inherited from UIElement.) | |
Dispatcher | (Inherited from DependencyObject.) | |
ElementSoundMode | (Inherited from Control.) | |
ExitDisplayModeOnAccessKeyInvoked | (Inherited from UIElement.) | |
FlowDirection | (Inherited from FrameworkElement.) | |
FocusState | (Inherited from Control.) | |
FocusVisualMargin | (Inherited from FrameworkElement.) | |
FocusVisualPrimaryBrush | (Inherited from FrameworkElement.) | |
FocusVisualPrimaryThickness | (Inherited from FrameworkElement.) | |
FocusVisualSecondaryBrush | (Inherited from FrameworkElement.) | |
FocusVisualSecondaryThickness | (Inherited from FrameworkElement.) | |
FontFamily | (Inherited from Control.) | |
FontSize | (Inherited from Control.) | |
FontStretch | (Inherited from Control.) | |
FontStyle | (Inherited from Control.) | |
FontWeight | (Inherited from Control.) | |
Foreground | (Inherited from Control.) | |
HasDocument |
Gets whether or not the PDFViewCtrl has a document.
Useful as a first stop when marshaling the UI thread to interact with the PDFViewCtrl
| |
Height | (Inherited from FrameworkElement.) | |
HighContrastAdjustment | (Inherited from UIElement.) | |
HorizontalAlignment | (Inherited from FrameworkElement.) | |
HorizontalContentAlignment | (Inherited from Control.) | |
IsAccessKeyScope | (Inherited from UIElement.) | |
IsConverting | Gets whether or not the PDFViewCtrl is currently converting
a document to PDF.
Use the OnConversionChanged event to detect changes to this property | |
IsCurrentlyFlipping |
Gets whether the PDFViewCtrl is currently in motion flipping pages in a non-continuous mode
| |
IsCurrentlyZooming |
Gets whether the PDFViewCtrl is currently going through a zoom motion,
for example through pinch or smart zoom animation
During this time, many functions will not work as expected
| |
IsDoubleTapEnabled | (Inherited from UIElement.) | |
IsEnabled | (Inherited from Control.) | |
IsFocusEngaged | (Inherited from Control.) | |
IsFocusEngagementEnabled | (Inherited from Control.) | |
IsHitTestVisible | (Inherited from UIElement.) | |
IsHoldingEnabled | (Inherited from UIElement.) | |
IsLoaded | (Inherited from FrameworkElement.) | |
IsRightTapEnabled | (Inherited from UIElement.) | |
IsTabStop | (Inherited from Control.) | |
IsTapEnabled | (Inherited from UIElement.) | |
IsTextScaleFactorEnabled | (Inherited from Control.) | |
KeyboardAcceleratorPlacementMode | (Inherited from UIElement.) | |
KeyboardAcceleratorPlacementTarget | (Inherited from UIElement.) | |
KeyboardAccelerators | (Inherited from UIElement.) | |
KeyTipHorizontalOffset | (Inherited from UIElement.) | |
KeyTipPlacementMode | (Inherited from UIElement.) | |
KeyTipTarget | (Inherited from UIElement.) | |
KeyTipVerticalOffset | (Inherited from UIElement.) | |
Language | (Inherited from FrameworkElement.) | |
Lights | (Inherited from UIElement.) | |
ManipulationMode | (Inherited from UIElement.) | |
Margin | (Inherited from FrameworkElement.) | |
MaxHeight | (Inherited from FrameworkElement.) | |
MaxWidth | (Inherited from FrameworkElement.) | |
MinHeight | (Inherited from FrameworkElement.) | |
MinWidth | (Inherited from FrameworkElement.) | |
Name | (Inherited from FrameworkElement.) | |
Opacity | (Inherited from UIElement.) | |
OpacityTransition | (Inherited from UIElement.) | |
Padding | (Inherited from Control.) | |
Parent | (Inherited from FrameworkElement.) | |
PointerCaptures | (Inherited from UIElement.) | |
PreviousAndNextButtonVisibility | Gets or sets whether to show the previous and next buttons when using a mouse
| |
PreviousAndNextButtonVisibilityProperty | Dependency property to show the previous and next buttons when using a mouse
| |
Projection | (Inherited from UIElement.) | |
RenderSize | (Inherited from UIElement.) | |
RenderTransform | (Inherited from UIElement.) | |
RenderTransformOrigin | (Inherited from UIElement.) | |
RequestedTheme | (Inherited from FrameworkElement.) | |
RequiresPointer | (Inherited from Control.) | |
Resources | (Inherited from FrameworkElement.) | |
Rotation | (Inherited from UIElement.) | |
RotationAxis | (Inherited from UIElement.) | |
RotationTransition | (Inherited from UIElement.) | |
Scale | (Inherited from UIElement.) | |
ScaleTransition | (Inherited from UIElement.) | |
Shadow | (Inherited from UIElement.) | |
Style | (Inherited from FrameworkElement.) | |
TabFocusNavigation | (Inherited from UIElement.) | |
TabIndex | (Inherited from Control.) | |
TabNavigation | (Inherited from Control.) | |
Tag | (Inherited from FrameworkElement.) | |
Template | (Inherited from Control.) | |
ThumbnailResponseHandler | Gets a PDFViewCtrlThumbnailRequestHandler that can be used to receive
Thumbnails from the PDFViewCtrl in a background thread.
| |
Transform3D | (Inherited from UIElement.) | |
TransformMatrix | (Inherited from UIElement.) | |
Transitions | (Inherited from UIElement.) | |
Translation | (Inherited from UIElement.) | |
TranslationTransition | (Inherited from UIElement.) | |
Triggers | (Inherited from FrameworkElement.) | |
UIContext | (Inherited from UIElement.) | |
UseLayoutRounding | (Inherited from UIElement.) | |
UseSystemFocusVisuals | (Inherited from Control.) | |
VerticalAlignment | (Inherited from FrameworkElement.) | |
VerticalContentAlignment | (Inherited from Control.) | |
Visibility | (Inherited from UIElement.) | |
Width | (Inherited from FrameworkElement.) | |
XamlRoot | (Inherited from UIElement.) | |
XYFocusDown | (Inherited from Control.) | |
XYFocusDownNavigationStrategy | (Inherited from UIElement.) | |
XYFocusKeyboardNavigation | (Inherited from UIElement.) | |
XYFocusLeft | (Inherited from Control.) | |
XYFocusLeftNavigationStrategy | (Inherited from UIElement.) | |
XYFocusRight | (Inherited from Control.) | |
XYFocusRightNavigationStrategy | (Inherited from UIElement.) | |
XYFocusUp | (Inherited from Control.) | |
XYFocusUpNavigationStrategy | (Inherited from UIElement.) |
Name | Description | |
---|---|---|
Activate | Reactivates the PDFViewCtrl after a call to Deactivate.
Rendering, FindText, thumbnail requests, etc, will not work until the PDFViewWPF has been reactivated.
| |
AddHandler | (Inherited from UIElement.) | |
AllowScrollOnKeyPresses | Tells PDFViewCtrl whether or not it should handle Scrolling when for example an arrow key is pressed
| |
ApplyTemplate | (Inherited from Control.) | |
Arrange | (Inherited from UIElement.) | |
CancelAllThumbRequests | Cancels all thumbnail requests initiated by GetThumbAsync(int pageNum).
See GetThumbAsync(int pageNum) for more information.
| |
CancelDirectManipulations | (Inherited from UIElement.) | |
CancelFindText | ||
CancelRendering | Cancels rendering in progress. If PDFViewCtrl is not busy rendering the page, the function has no side effects.
| |
CanRedo |
Checks if redo operation is available
| |
CanUndo |
Checks if undo operation is available
| |
CapturePointer | (Inherited from UIElement.) | |
ClearSelection | Remove any text selection.
| |
ClearThumbCache |
Remove all thumbnails from the persistent disk cache.
| |
ClearValue | (Inherited from DependencyObject.) | |
Close | ||
CloseDoc | Closes the document currently opened in PDFViewCtrl.
| |
ConnectDocAndResume |
This will load a document and start rendering it again without affecting the visual layout of the PDFViewCtrl.
Use this after the app resumes after being suspended.
| |
ConvAnnotationCanvasPtToScreenPt | Converts a point expressed in AnnotationCanvas (GetAnnotationCanvas()) space to a point in screen space.
| |
ConvCanvasPtToPagePt | Converts a point expressed in canvas space to a point on a page space.
| |
ConvCanvasPtToScreenPt(DoubleRef, DoubleRef) | Converts a point expressed in canvas space to a point in sceen space.
| |
ConvCanvasPtToScreenPt(DoubleRef, DoubleRef, Int32) | Converts a point expressed in canvas space to a point in sceen space.
| |
ConvPagePtToCanvasPt | Converts a point expressed in a page space to a point in canvas space.
| |
ConvPagePtToScreenPt | Converts a point in a page space to a point in screen space.
| |
ConvScreenPtToAnnotationCanvasPt(DoubleRef, DoubleRef) | Converts a point expressed in screen space to a point in AnnotationCanvas (GetAnnotationCanvas()) space.
| |
ConvScreenPtToAnnotationCanvasPt(DoubleRef, DoubleRef, Int32) | Converts a point expressed in screen space to a point in AnnotationCanvas (GetAnnotationCanvas()) space.
| |
ConvScreenPtToCanvasPt(DoubleRef, DoubleRef) | Converts a point expressed in screen space to a point in canvas space.
| |
ConvScreenPtToCanvasPt(DoubleRef, DoubleRef, Int32) | Converts a point expressed in screen space to a point in canvas space.
| |
ConvScreenPtToPagePt | Converts a point in screen space to a point in a page space.
| |
CopySelectedTextToClipboardAsUnicode | Copys the text current selected text to clipboard as unicode. | |
Deactivate | This will stop rendering and then remove any content that is not visible on the screen.
Use Activate to reactivate the PDFViewCtrl.
| |
DocLock | Locks the PDFDoc instance used by PDFViewCtrl.
Simultaneous access to a PDFDoc instance is not allowed. Since
PDFViewCtrl renders a PDFDoc in a rendering thread, UI access to the same
PDFDOc instance should lock the document first and then unlock it with
DocUnlock afterwards.
| |
DocLockRead |
Locks the PDFDoc instance used by PDFViewCtrl to prevent competing write threads
(using Lock()) from accessing the document at the same time. Other reader threads
however, will be allowed to access the document.
Threads attempting to obtain write access to the document will wait in
suspended state until the thread that owns the lock calls doc.UnlockRead().
| |
DocTryLock |
Tries to lock the PDFDoc instance used by PDFViewCtrl in non-blocking manner.
| |
DocTryLock(Int32) |
Tries to lock the PDFDoc instance used by PDFViewCtrl in non-blocking manner.
| |
DocTryLockRead |
Tries to obtain a read lock for the PDFDoc instance used by PDFViewCtrl
for reading in non-blocking manner.
| |
DocTryLockRead(Int32) |
Tries to obtain a read lock for the PDFDoc instance used by PDFViewCtrl
for reading in non-blocking manner.
| |
DocUnlock | Unlocks the PDFDoc instance used by PDFViewCtrl and restarts the
rendering thread if it was canceled by calling DocLock.
| |
DocUnlockRead |
Removes the read lock from the PDFDoc instance used by PDFViewCtrl
| |
EnableExternalAnnotManager(String) | ||
EnableExternalAnnotManager(String, ExternalAnnotManagerMode) | ||
EnableUndoRedo |
Enables Undo/Redo on the document.
| |
Equals | (Inherited from Object.) | |
ExecuteAction(Action) |
Requests action object to be executed by PDFViewCtrl. Action must belong to the document
currently displayed in PDFViewCtrl.
| |
ExecuteAction(ActionParameter) |
Requests action object to be executed by PDFViewCtrl. Action must belong to the document
currently displayed in PDFViewCtrl.
| |
FindName | (Inherited from FrameworkElement.) | |
FindTextAsync(String, Boolean, Boolean, Boolean, Boolean) | Selects text by searching for a given string of text.
Note that to cancel the text search, use PDFViewCtrl.CancelFindText, as opposed to canceling the operation that is returned.
| |
FindTextAsync(String, Boolean, Boolean, Boolean, Boolean, Int32) | Selects text by searching for a given string of text.
Note that to cancel the text search, use PDFViewCtrl.CancelFindText, as opposed to canceling the operation that is returned.
| |
Focus | (Inherited from Control.) | |
FreeResources | This will clean up all native resources, as well as file handles and similar.
However, managed resources will remain until cleaned up by the garbage collector.
| |
GetAnimationBaseValue | (Inherited from DependencyObject.) | |
GetAnnotAt(Int32, Int32) | Gets the annotation at the (x, y) position expressed in screen coordinates.
| |
GetAnnotAt(Int32, Int32, Double, Double) | Gets the annotation at the (x, y) position expressed in screen coordinates.
| |
GetAnnotationCanvas | Gets the canvas that floats above the PDF for use in drawing temporary annotations.
| |
GetAnnotationCanvasHorizontalOffset | Gets the current horizontal scroll position of the AnnotationCanvas.
Note: Due to a problem with the ScrollViewer, content at offsets greater than 2^21 are not shown inside the ScrollViewer
Therefore, we have had to change the structure a little, while preserving the visual appearance of the ScrollViewer, the actual
visual tree might look different. Therefore, when adding UI elements to the AnnotationCanvas, use this instead of GetHSrollPos()
to calculate the position when, for example, converting from screen space to the Annotation canvas's space.
| |
GetAnnotationCanvasTopLeftCorner | Gets the offset of the AnnotationCanvas from the top left of the PDFViewCtrl
(Relevant if zoomed out far).
| |
GetAnnotationCanvasVerticalOffset | Gets the current vertical scroll position of the AnnotationCanvas.
Note: Due to a problem with the ScrollViewer, content at offsets greater than 2^21 are not shown inside the ScrollViewer
Therefore, we have had to change the structure a little, while preserving the visual appearance of the ScrollViewer, the actual
visual tree might look different. Therefore, when adding UI elements to the AnnotationCanvas, use this instead of GetVSrollPos()
to calculate the position when, for example, converting from screen space to the Annotation canvas's space.
| |
GetAnnotationListAt | Gets the list of annotations at line (x1, y1, x2, y2) expressed in screen coordinates
| |
GetBindingExpression | (Inherited from FrameworkElement.) | |
GetCanvasHeight | Gets the height of the scrollable space.
| |
GetCanvasWidth | Gets the width of the scrollable space.
| |
GetColorPostProcessMode | ||
GetContentBoundingBox |
Gets a tight bounding box around all the pages on the current canvas.
| |
GetCurrentPage | Gets the current page displayed in the view.
| |
GetDeviceTransform | Gets device transformation matrix from current page
| |
GetDeviceTransform(Int32) | Gets device transformation matrix from current page
| |
GetDoc | Gets Currently associated document with this PDFViewCtrl.
| |
GetExternalAnnotManager | ||
GetFindTextProgress | Returns the progress of the FindTextAsync
| |
GetFindTextProgressAsFactor | Returns the progress of the FindTextAsync
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHScrollPos | Gets the current horizontal scroll position in scrollable space.
| |
GetLinkAt | Gets the link info at a given point, specified in client space.
| |
GetNextRedoInfo |
Obtains the meta info associated with the next Redo state.
| |
GetNextUndoInfo |
Obtains the meta info associated with the next Undo state.
| |
GetOCGContext | ||
GetPageBox |
Gets the box used by PDFViewCtrl for rasterizing.
| |
GetPageCount | Gets the total number of pages in the document.
| |
GetPageNumberFromScreenPoint | Gets the number of the page located under the given screen coordinate. A positive number indicates a valid page, whereas
a number less than 1 indicates no page was found.
| |
GetPagePresentationMode | Gets the current page presentation mode.
| |
GetPageRectForAnnot | Return the annotation rect in screen points
| |
GetPageRefViewMode | Gets the reference page view mode. See more details about reference page view mode in SetPageRefViewMode(int).
| |
GetPageViewMode | Gets the current page view mode.
Note: It is possible for the view to appear to have a specifiv view mode, while it is in e_zoom.
If this is a concern, use GetZoomForViewMode and comapre it to the current zoom.
| |
GetPostProcessedColor |
Returns the resulting color of post processing colorPoint as specified through
SetColorPostProcessMode or SetColorPostProcessColors
| |
GetProgressiveRendering | Gets whether the control will render progressively or will just draw once the entire view has been rendered.
| |
GetRightToLeftLanguage |
Returns true if the PDFViewCtrl is currently in right to left reading mode.
false otherwise.
| |
GetRotation | Gets the current rotation of this PDFViewCtrl.
| |
GetScreenRectForAnnot | Return the annotation rect in screen points
| |
GetScrollBarVisibility |
Gets the visibility settings for the PDFViewCtrl's ScrollBars.
| |
GetScrollEnabled | Gets if scroll is currently enabled or disabled.
| |
GetScrollViewer | Gets the internal PDFViewCtrl ScrollViewer used to scroll the PDF pages.
| |
GetSelection | Gets Current text selection for a given page. If there is only selection on one page, then page number does not need to be provided.
| |
GetSelection(Int32) | Gets the selection on the given page number
| |
GetSelectionBeginPage | Gets the first page number that has text selection on it. Useful when there are selections on multiple pages at the same time.
| |
GetSelectionEndPage | Gets the last page number that has text selection on it. Useful when there are selections on multiple pages at the same time.
| |
GetThumbAsync |
This will request a thumbnail for the page given by pageNum.
When the thumbnail is ready, the OnThumbnailGenerated event will be raised with the finished thumbnail.
If multiple requests are made, the thumbnail requests will be processed starting with the last request.
The exception is that the current thumbnail being rendered will always finish.
It is recommended to cancel all thumbnail requests once they are not needed any more, using PDFViewCtrl.CancelAllThumbRequests();
If caching is enabled, this request will be much faster once the thumb has been rendered once.
You can enable caching by using pdftron.PDFNet.SetViewerCache and pdftron.PDFNet.SetDefaultDiskCachingEnabled(true);
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | (Inherited from DependencyObject.) | |
GetViewHeight | Gets the width of the main view in pixels.
| |
GetViewWidth | Gets the width of the main view in pixels.
| |
GetVisiblePages | Gets the pages that are currently visible on the screen
| |
GetVScrollPos | Gets the current vertical scroll position in scrollable space.
| |
GetZoom | Gets current zoom (or scaling) component used to display the page content.
| |
GetZoomAnimationTarget | If IsAnimatingZoom returns true, then this function will return the zoom factor
that is the target for the animation.
| |
GetZoomEnabled | Gets if zoom is currently enabled or disabled.
| |
GetZoomForViewMode | Calculates the zoom the current view would get if mode was used in SetPageViewMode
| |
GotoFirstPage | Sets the current page to the first page in the document.
| |
GotoLastPage | Sets the current page to the last page in the document.
| |
GotoNextPage | Sets the current page to the next page in the document.
| |
GotoPreviousPage | Sets the current page to the previous page in the document.
| |
HasSelection | checks if there is selection
| |
HasSelectionOnPage | checks if given page number has any text selection on it. Useful when there are selections on multiple pages at the same time.
| |
HideAnnotation | Disable rendering of a particular annotation. This does not change the annotation itself, just how it is displayed in this viewer instance.
| |
InvalidateArrange | (Inherited from UIElement.) | |
InvalidateMeasure | (Inherited from UIElement.) | |
IsAnimatingZoom | Returns true if the PDFViewCtrl is currently animating to a new positon throught
SmartZoom, SetPageViewMode, or SetZoom, when the 'animate' flag is set to true.
| |
IsFinishedRendering | checks if the rendering thread has finished.
| |
IsFinishedRendering(Boolean) | checks if the rendering thread has finished or the current visible region has been fully rendered.
| |
Measure | (Inherited from UIElement.) | |
OpenUniversalDocument | Sets the PDF document to be displayed.
| |
OpenURLAsync(String) | Open a PDF file at the given url. This works best with PDF's that
are linearized, as pages can be downloaded and viewed in random access order,
without the need to download the entire document.
| |
OpenURLAsync(String, String, String) | Open a PDF file at the given url. This works best with PDF's that
are linearized, as pages can be downloaded and viewed in random access order,
without the need to download the entire document. A viewing session can also be
persisted across multiple viewing/application sessions to remove redundant downloads
and improve overall performance by using the optional cache_pdf parameter.
| |
OpenURLAsync(String, String, String, HTTPRequestOptions) | Open a PDF file at the given url. This works best with PDF's that
are linearized, as pages can be downloaded and viewed in random access order,
without the need to download the entire document. A viewing session can also be
persisted across multiple viewing/application sessions to remove redundant downloads
and improve overall performance by using the optional cache_pdf parameter.
| |
PauseAndDisconnectDoc |
This will close the document, but leave the visual appearance of the PDFViewCtrl intact.
This can be used when the App is being suspended so that the Stream associated with the document can be released.
Use this in conjunction with ConnectDocAndResume to repopulate the PDFViewCtrl when the app gets resumed.
| |
PopulatePropertyInfo | (Inherited from UIElement.) | |
ReadLocalValue | (Inherited from DependencyObject.) | |
Redo |
Performs Redo.
| |
RefreshAndUpdate |
Helper function that will refresh annotation and/or field appearance if needed, and then
render modified page areas, all based on the content of the view_change parameter.
| |
RegisterDependencyProperties | Occurs when the pointer device initiates a Press action within this element. (Inherited from UIElement)
| |
RegisterPropertyChangedCallback | (Inherited from DependencyObject.) | |
ReleasePointerCapture | (Inherited from UIElement.) | |
ReleasePointerCaptures | (Inherited from UIElement.) | |
RemoveFocusEngagement | (Inherited from Control.) | |
RemoveHandler | (Inherited from UIElement.) | |
RequestRendering | Requests that PDFViewCtrl start rendering, if necessary.
| |
RevertAllChanges |
Discards all changes.
| |
RotateClockwise | Rotates all pages in the document 90 degrees clockwise.
| |
RotateCounterClockwise | Rotates all pages in the document 90 degrees counter-clockwise.
| |
Select(Highlights) | Selects texts identified by Highlights.
| |
Select(PDFViewCtrlSelection) | Selects a region according to a PDFViewSelection object.
| |
Select(Double, Double, Double, Double) | Selects text within the given region using the current text selection mode.
| |
Select(Double, Double, Int32, Double, Double, Int32) | Selects text using structural mode given two points on two pages.
| |
SelectAll | Selects all text on the page.
| |
SelectWithSmartSnapping | ||
SelectWithSnapping | ||
SetAntiAliasing | Enable or disable anti-aliasing.
Anti-Aliasing is a technique used to improve the visual quality of images when displaying them on low resolution devices (for example, low DPI computer monitors).
| |
SetBackgroundColor | Sets the default background color used to paint the area surrounding each page.
| |
SetBinding | (Inherited from FrameworkElement.) | |
SetCaching | Enables of disables caching of images, fonts, and other resources. Disabling caching can lower memory requirements at the expense of rendering speed.
| |
SetColorPostProcessColors |
Set the color post processing transformation.
This transform is applied to the rasterized bitmap as the final step
in the rasterization process, and is applied directly to the resulting
bitmap(disregarding any color space information). Color post
processing only supported for RGBA output.
This mode will map the brightness of the original rasterized bitmap to a gradient
between whiteColor and blackColor
| |
SetColorPostProcessMode |
Set the color post processing transformation.
This transform is applied to the rasterized bitmap as the final step
in the rasterization process, and is applied directly to the resulting
bitmap (disregarding any color space information). Color post
processing only supported for RGBA output.
| |
SetCurrentPage | Sets the current page to the given page.
| |
SetDefaultPageColor | Sets the default 'paper' color used to draw background of each page.
| |
SetDoc | Associates this PDFViewCtrl with a given PDF document.
| |
SetDrawAnnotations | Enable or disable annotation and forms rendering. By default, all annotations and form fields are rendered.
| |
SetGamma | Sets the gamma factor used for anti-aliased rendering. Gamma correction can be used to improve the quality of anti-aliased image output and can (to some extent) decrease the appearance common anti-aliasing artifacts (such as pixel width lines between polygons).
| |
SetHighlightFields | Enable or disable highlighting form fields. Default is disabled.
| |
SetHorizontalAlign | Sets the horizontal alignment used for rendering pages within the view.
| |
SetHScrollPos | Sets the horizontal scroll position in scrollable space.
| |
SetImageSmoothing | Enable or disable image smoothing. The rasterizer allows a trade-off between rendering quality and rendering speed. This function can be used to indicate the preference between rendering speed and quality.
| |
SetOCGContext | ||
SetOverprint | Enable or disable support for overprint. Overprint is a device dependent feature and the results will vary depending on the output color space and supported colorants (i.e. CMYK, CMYK+spot, RGB, etc). By default overprint is enabled for only PDF/X files.
| |
SetPageBorderVisibility | Enables or disables drawing of a thin border around each page.
| |
SetPageBox |
Selects the PageBox to rasterize. PDFViewCtrl will clip pages according to their
PageBox as selected here.
| |
SetPagePresentationMode | Sets the current page presentation mode.
| |
SetPageRefViewMode | Sets the reference page view mode. In a non-continous page presentation mode,
the reference page view mode is used to determine the page view mode upon a page change event.
For example, if the reference page view mode is set to e_fit_width, the new page coming in will be
displayed with width-fit mode.
If the reference view mode is set to e_zoom, it means that zoom will be maintained between pages.
| |
SetPageSpacing | Sets the vertical and horizontal padding and column spacing between adjacent pages in the view.
| |
SetPageTransparencyGrid | Enables or disables the transparency grid (check board pattern) to reflect page transparency.
| |
SetPageViewMode(PDFViewCtrlPageViewMode) | Sets the new page viewing mode. The default PageView mode is e_fit_width.
| |
SetPageViewMode(PDFViewCtrlPageViewMode, Double, Double, Boolean) | Sets the new page viewing mode. The default PageView mode is e_fit_width.
Will maintain the position of x, y
| |
SetPathHinting | Enable or disable path hinting. Path hinting is used to slightly adjust paths in order to avoid or alleviate artifacts of hair line cracks between
certain graphical elements. This option is turned on by default.
| |
SetProgressiveRendering | Sets whether the control will render progressively or will just draw once the entire view has been rendered.
Progressive rendering is useful when a PDF page contain lots of elements
(e.g. many vector paths, text, or many little images). When progressive rendering
is enabled PDFNet will use painter algorithm to draw the page. This way user may
be able to see partially rendered page. If a page contains only a single large
image, there would be no visible benefit from progressive rendering.
| |
SetProgressiveRenderingInterval | Sets the interval at which the rendering will be updated
| |
SetRelativeZoomLimits |
Sets the minimum and maximum zoom bounds of PDFViewCtrl relative to referenceViewMode
min_zoom and max_zoom are relative to the zoom level when the
current page is displayed in referenceViewMod.
For instance, if referenceViewMode is e_fit_page, min_zoom = 1.0, and max_zoom = 3,
it means that the minimum zoom allowed by PDFViewCtrl is the same as the zoom when a
page is fit and the maximum zoom allowed is three times that of when the page is fit.
| |
SetRenderedContentCacheSize | Sets the suggested memory size of rendered content.
PDFViewCtrl keeps invisible content in order to achieve smoother viewing experience; however, this increases memory usage.
Based on the memory footprint of your app, you may want to customize it.
Note that the built in controls (FlipView and ScrollView) will likely cache some content as well,
meaning that the PDFViewCtrl will use more memory than this number suggests.
Setting this size to 0 will cause only rendering of directly visible content.
| |
SetRequiredFieldBorderColor | Set the border color for required fields
This option only has an effect if field highlighting is turned on using
`SetHighlightFields(true)`.
| |
SetRightToLeftLanguage |
Tells PDFViewCtrl the content in the viewed PDF document reads from right to left.
| |
SetScrollBarVisibility |
Sets how ScrollBars in the PDFViewCtrl should be shown.
This affects both the horizontal and vertical ScrollBars. The default is Auto.
| |
SetScrollEnabled | Sets if scroll is enabled or disabled.
| |
SetSnappingMode | Set the snapping mode for the SnapToNearestInDoc method. The default is snap to line endpint, midpoints and intersections
| |
SetTextSelectionMode | Selects all words that intersect the given selection rectangle.
| |
SetThinLineAdjustment | Set thin line adjustment parameters.
| |
SetupThumbnails |
Enables or disables thumbnail view features.
Thumbnail view is used before a PDF page is fully rendered. If runtime
thumb view generation is enabled, PDFViewCtrl generates thumbnail views
at runtime. If a PDF file already contains the thumbnail views, runtime
thumb view generation can be turned off, which is more efficient.
If runtime thumb view generation is enabled, the thumbMaxSideLength
will be used as a reference to calculate the thumbnail resolution.
| |
SetUrlExtraction | Enables or disables URL extraction. Default is disabled.
| |
SetValue | (Inherited from DependencyObject.) | |
SetVerticalAlign | Sets the vertical alignment used for rendering pages within the view.
| |
SetVScrollPos | Sets the vertical scroll position in scrollable space.
| |
SetZoom(Double) | Sets the zoom factor to a new value. The function zooms to a point at the center of the rendering buffer.
| |
SetZoom(Int32, Int32, Double) | Sets the zoom factor to a new value using the given pixel coordinate (x,y) as a zoom center, which will stay fixed on the screen.
The zoom point (x,y) is represented in the screen coordinate system, which starts in the upper-left corner of the client window.
Should you want to move (x, y) to the center of the client window, you can use the OnScroll() subsequently:
| |
SetZoom(Int32, Int32, Double, Boolean) | Sets the zoom factor to a new value using the given pixel coordinate (x,y) as a zoom center, which will stay fixed on the screen.
The zoom point (x,y) is represented in the screen coordinate system, which starts in the upper-left corner of the client window.
Should you want to move (x, y) to the center of the client window, you can use the OnScroll() subsequently:
| |
SetZoomEnabled | Sets if zoom is enabled or disabled.
| |
SetZoomLimits |
Sets the minimum and maximum zoom bounds of PDFViewCtrl.
| |
ShowAnnotation | Enable rendering of a particular annotation. Only has an effect if HideAnnotation() has previously been called on the same annot.
| |
ShowRect | Changes the viewing area to fit a rectangle rect on page page_num. Rectangle must be specified in page coordinates. This will adjust current page and zoom appropriately.
| |
SmartZoom(Int32, Int32) | Sets the zoom factor to a new value using the given pixel coordinate (x,y) to find an intersecting paragraph.
The width of the paragraph helps to determine the zoom value, center of the paragraph is used as a zoom center.
Paragraph has to contain more than one line and be wider than 1/5th of a page width.
When performing a smart zoom would not significantly change the zoom level, it will be ignored.
Note: This call should not be made while any pointer is interacting with the PDFViewCtrl, as that might cause some issues.
If this is done on a tap, or click, you can add a delay by marshaling a callback for the UI thread.
| |
SmartZoom(Int32, Int32, Boolean) | Sets the zoom factor to a new value using the given pixel coordinate (x,y) to find an intersecting paragraph.
The width of the paragraph helps to determine the zoom value, center of the paragraph is used as a zoom center.
Paragraph has to contain more than one line and be wider than 1/5th of a page width.
When performing a smart zoom would not significantly change the zoom level, it will be ignored.
Note: This call should not be made while any pointer is interacting with the PDFViewCtrl, as that might cause some issues.
If this is done on a tap, or click, you can add a delay by marshaling a callback for the UI thread.
| |
SnapToNearestInDoc | ||
StartAnimation | (Inherited from UIElement.) | |
StartBringIntoView | (Inherited from UIElement.) | |
StartBringIntoView(BringIntoViewOptions) | (Inherited from UIElement.) | |
StartDragAsync | (Inherited from UIElement.) | |
StopAnimation | (Inherited from UIElement.) | |
TakeSnapshot |
Takes snapshot of the current document state for Undo/Redo.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TransformToVisual | (Inherited from UIElement.) | |
TryInvokeKeyboardAccelerator | (Inherited from UIElement.) | |
Undo |
Performs Undo.
| |
UnregisterPropertyChangedCallback | (Inherited from DependencyObject.) | |
Update | Redraws the contents in the visible region.
| |
Update(Boolean) | Redraws the contents.
| |
Update(Field) | Redraws the areas covered by all Form annotations associated with the field
| |
Update(Rect) | Redraws the given area in the buffer.
| |
UpdateLayout | (Inherited from UIElement.) | |
UpdateOCGContext | Deprecated: PDFViewCtrl does this automatically now.
| |
UpdatePageLayout | Updates the page layout withing the view. This function must be called after document page sequence is modified (such as when a page is being added to or removed from a document) or after changes to page dimensions (e.g. after a page is rotated or resized).
| |
UpdateWithAnnot | Redraws the area covered with the provided annotation.
|
Name | Description | |
---|---|---|
AccessKeyDisplayDismissed | (Inherited from UIElement.) | |
AccessKeyDisplayRequested | (Inherited from UIElement.) | |
AccessKeyInvoked | (Inherited from UIElement.) | |
ActualThemeChanged | (Inherited from FrameworkElement.) | |
BringIntoViewRequested | (Inherited from UIElement.) | |
CharacterReceived | (Inherited from UIElement.) | |
ContextCanceled | (Inherited from UIElement.) | |
ContextRequested | (Inherited from UIElement.) | |
DataContextChanged | (Inherited from FrameworkElement.) | |
DoubleTapped | (Inherited from UIElement.) | |
DragEnter | (Inherited from UIElement.) | |
DragLeave | (Inherited from UIElement.) | |
DragOver | (Inherited from UIElement.) | |
DragStarting | (Inherited from UIElement.) | |
Drop | (Inherited from UIElement.) | |
DropCompleted | (Inherited from UIElement.) | |
EffectiveViewportChanged | (Inherited from FrameworkElement.) | |
FocusDisengaged | (Inherited from Control.) | |
FocusEngaged | (Inherited from Control.) | |
GettingFocus | (Inherited from UIElement.) | |
GotFocus | (Inherited from UIElement.) | |
Holding | (Inherited from UIElement.) | |
IsEnabledChanged | (Inherited from Control.) | |
KeyDown | (Inherited from UIElement.) | |
KeyUp | (Inherited from UIElement.) | |
LayoutUpdated | (Inherited from FrameworkElement.) | |
Loaded | (Inherited from FrameworkElement.) | |
Loading | (Inherited from FrameworkElement.) | |
LosingFocus | (Inherited from UIElement.) | |
LostFocus | (Inherited from UIElement.) | |
ManipulationCompleted | (Inherited from UIElement.) | |
ManipulationDelta | (Inherited from UIElement.) | |
ManipulationInertiaStarting | (Inherited from UIElement.) | |
ManipulationStarted | (Inherited from UIElement.) | |
ManipulationStarting | (Inherited from UIElement.) | |
NoFocusCandidateFound | (Inherited from UIElement.) | |
OnAction | Occurs when the PDFViewCtrl is about to execute an action.
In order to prevent the viewer from executing the action internally, you can set
ActionEventArgs.Handled to true;
| |
OnConversionChanged | Called when an update is available.
Note that the DocumentConversion passed in as a parameter might be ahead of the
PDFViewCtrl in terms of how many pages are converted. This event reports how many
pages the PDFViewCtrl is currently aware of.
| |
OnDownloadChanged | Occurs after using OpenURLAsync and contains the latest information regarding the
state of downloading. The exact information provided in the event depends on the
event enum type.
| |
OnLayoutChanged | Occurs when the document currently shown by PDFViewCtrl changes its page sequence(e.g. when a page is inserted)
or after changes to page dimensions (e.g. after a page is rotated or resized).
| |
OnPageFlipFinished | Occur when the PDFViewCtrl settles after flipping pages using touch in a non-continuous mode.
| |
OnPageNumberChanged | Occurs when the current page has changed.
| |
OnRenderFinished | Tells the delegate that a render job is complete.
| |
OnScale | Occurs when zoom factor of the document has changed.
Note that this event does not fire during zooming, but only after the zooming motion has finished.
| |
OnSetDoc | Occurs after PDFViewCtrl.SetDoc(PDFDoc) is called and the document is set within PDFViewCtrl.
When this callback occurs, the document is ready for actions such as SetHScrollPos or GoToPage.
| |
OnSize | Occurs when PDFViewCtrl has changed size, such as after a rotation of the tablet.
| |
OnThumbnailGenerated | Occurs when a thumbnail that was requested though GetThumbAsync(int pageNum) is ready.
See GetThumbAsync(int pageNum) for more information.
| |
OnViewChanged | Occurs when the scrollable content is being manipulated.
Note that this event is raised repeatedly during manipulation of the scrollable content.
| |
PointerCanceled | (Inherited from UIElement.) | |
PointerCaptureLost | (Inherited from UIElement.) | |
PointerEntered | (Inherited from UIElement.) | |
PointerExited | (Inherited from UIElement.) | |
PointerMoved | (Inherited from UIElement.) | |
PointerPressed | (Inherited from UIElement.) | |
PointerReleased | (Inherited from UIElement.) | |
PointerWheelChanged | (Inherited from UIElement.) | |
PreviewKeyDown | (Inherited from UIElement.) | |
PreviewKeyUp | (Inherited from UIElement.) | |
ProcessKeyboardAccelerators | (Inherited from UIElement.) | |
RightTapped | (Inherited from UIElement.) | |
SizeChanged | (Inherited from FrameworkElement.) | |
Tapped | (Inherited from UIElement.) | |
Unloaded | (Inherited from FrameworkElement.) |