PCCViewer
is the global namespace used for members of this API.
Classes
- AjaxResponse
- BurnRequest
- Comment
- Conversation
- ConversionRequest
- DocumentHyperlink
- Error
- Event
- ImageStamps
- LoadMarkupLayersRequest
- Mark
- MarkupLayer
- MarkupLayerCollection
- MouseTool
- ObservableCollection
- PrintRequest
- Promise
- Revision
- RevisionsRequest
- SearchRequest
- SearchResult
- SearchTask
- SearchTaskResult
- SignatureControl
- SignatureDisplay
- ThumbnailControl
- Viewer
- ViewerControl
- BurnRequest
Mixins
Namespaces
Members
(static, readonly) EventType :string
The EventType
enumeration defines event types known to PCCViewer.ViewerControl.
Note: This enumeration is for convenience for API developers. Instead of using this enumeration, you can pass string values of the eventType (enumeration values)
Type:
- string
Properties:
Name | Description |
---|---|
ViewerReady : string |
Event fired when the Viewer is ready. Augmented properties of the PCCViewer.Event object for this event:
|
PageCountReady : string |
Event is fired when the viewer has an actual page count from the server and the consumer can begin to interact with the viewer interfaces. Augmented properties of the PCCViewer.Event object for this event:
|
EstimatedPageCountReady : string |
Event is fired when the viewer has an estimated page count from the server. Augmented properties of the PCCViewer.Event object for this event:
|
PageChanged : string |
Event is fired when the viewer changed the current page. Augmented properties of the PCCViewer.Event object for this event:
|
PageLoadFailed : string |
Event is fired when the viewer changed the current page. Augmented properties of the PCCViewer.Event object for this event:
|
PageDisplayed : string |
Event is fired when the viewer has displayed a page. If the content of a page is large, for example an engineering drawing with several hundred nodes, then the browser may be busy still rendering/preparing the content when this event gets fired. Note that if the maxOutOfViewDisplay viewer parameter is greater than 0, then out-of-view pages will be displayed (the page content will be loaded in the DOM, though the page will not be visible since it is out of view). In this scenario, the PageDisplayed event will fire for out-of-view pages. Augmented Properties of the PCCViewer.Event object for this event:
|
PageRotated : string |
Event is fired when the viewer has displayed a page, not necessarily the content of a page. Augmented properties of the PCCViewer.ViewerControl.Event object for this event:
|
DocumentRotated : string |
Event is fired when the rotation of all pages in the document changes. Augmented properties of the PCCViewer.Event object for this event:
|
ScaleChanged : string |
Event is fired when the scaling of page(s) in the viewer changed. After the user actions, zoom buttons pressed, zoom api called, fit type changed, viewer mode changed and that resulted in a scale change. Augmented properties of the PCCViewer.Event object for this event:
|
DocumentPrinted : string |
Event is fired when the print button was clicked in the viewer's print dialog. We have no way to know if the page printed in the system print dialog. Augmented properties of the PCCViewer.Event object for this event:
|
TextSelected : string |
Event is fired when text is selected. Augmented properties of the PCCViewer.Event object for this event:
|
MouseToolChanged : string |
Event is fired when the mouse tool changed. This change could be initiated through the viewer's toolbar, viewer's context menu, or viewer's API. Augmented properties of the PCCViewer.Event object for this event:
|
SearchPerformed : string |
Event fired when a search is performed with a call to PCCViewer.ViewerControl#search. Augmented properties of the PCCViewer.Event object for this event:
|
PartialSearchResultsAvailable : string |
Event is fired when partial search results are available Augmented properties of the PCCViewer.Event object for this event:
|
SearchCompleted : string |
Event is fired when search is completed successfully, user cancelled, or an exception. This event will also return the searchResult object to the consumer Augmented properties of the PCCViewer.Event object for this event:
|
SearchFailed : string |
Event is fired when search failed to due to an exception. Augmented properties of the PCCViewer.Event object for this event:
|
SearchCancelled : string |
Event is fired when search is cancelled by the user. Augmented properties of the PCCViewer.Event object for this event:
|
SearchResultsAvailable : string |
Event is fired when search is completed and the results are available. This event will return the full results object to the consumer if available. Augmented properties of the PCCViewer.Event object for this event:
|
SearchCleared : string |
Event is fired when the current search is cleared. After this event, calls to PCCViewer#setSelectedSearchResult, PCCViewer#getSelectedSearchResult, and PCCViewer#getSearchRequest will no longer be valid. Augmented properties of the PCCViewer.Event object for this event:
|
SearchResultSelectionChanged : string |
Event is fired when the selected search result changes, including when the first result is selected, the selection is cleared, or the selection changes from one result to another. Augmented properties of the PCCViewer.Event object for this event:
|
RevisionsRetrievalCompleted : string |
Event is fired when the revisions retrieval has completed due to a failure or when the full set of revisions is available. Augmented properties of the PCCViewer.Event object for this event:
|
RevisionsRetrievalFailed : string |
Event is fired when the revisions retrieval has completed due to a failure. Augmented properties of the PCCViewer.Event object for this event:
|
RevisionsAvailable : string |
Event is fired when the revisions retrieval has completed because the full set of revisions is available. Augmented properties of the PCCViewer.Event object for this event:
|
PartialRevisionsAvailable : string |
Event is fired when a partial set of revisions is available. Augmented properties of the PCCViewer.Event object for this event:
|
PrintRequested : string |
Event is fired when a document print is requested through PCCViewer.ViewerControl#print. Augmented properties of the PCCViewer.Event object for this event:
|
MarkupLoaded : string |
Event is fired when markup is loaded from a file through PCCViewer.ViewerControl#loadMarkup. Event fired when annotations are loaded from a file. Augmented properties of the PCCViewer.Event object for this event:
|
MarkupSaved : string |
Event is fired when annotations save to the server. Augmented properties of the PCCViewer.Event object for this event:
|
MarkChanged : string |
Event is fired when one or more attributes changes on an annotation. Augmented properties of the PCCViewer.Event object for this event:
|
MarkCreated : string |
Event is fired when a new annotation is created. Augmented properties of the PCCViewer.Event object for this event:
|
MarkRemoved : string |
Event is fired when a annotation is removed from a page. Augmented properties of the PCCViewer.Event object for this event:
|
MarkReordered : string |
Event is fired when the annotation's stacking order has changed. Augmented properties of the PCCViewer.Event object for this event:
|
MarkSelectionChanged : string |
Event fired when the set of selected annotations has changed. Augmented properties of the PCCViewer.Event object for this event:
|
MarkMouseEnter : string |
Event is fired when the mouse enters the annotation bounding box. Augmented properties of the PCCViewer.Event object for this event:
|
MarkMouseOver : string |
Event is fired when the mouse moves over the annotation bounding box. Augmented properties of the PCCViewer.Event object for this event:
|
MarkMouseLeave : string |
Event is fired when the mouse leaves the annotation bounding box. Augmented properties of the PCCViewer.Event object for this event:
|
CommentsPanelToggled : string |
Event fired when the comments panel opens or closes. Augmented properties of the PCCViewer.Event object for this event:
|
CommentCreated : string |
Event fired when a comment is added to a Conversation in the viewer. Augmented properties of the PCCViewer.Event object for this event:
|
CommentRemoved : string |
Event fired when a comment is removed from a Conversation in the viewer. Augmented properties of the PCCViewer.Event object for this event:
|
CommentChanged : string |
Event fired when the text of a comment in the viewer has changed. Augmented properties of the PCCViewer.Event object for this event:
|
PageTextReady : string |
Event fired when the text of a page has been loaded in the viewer. Augmented properties of the PCCViewer.Event object for this event:
|
Click : string |
Event fired when a user clicks a page or comment pane in the viewer. Augmented properties of the PCCViewer.Event object for this event:
|
PageOpening : string |
Event fired when the width and height page attributes are retrieved. Note that this event will fire whenever a page opens, so if a page opens, it will fire, and if the page is scrolled out of view, disposed, and then scrolled back into view, the event will fire again. Augmented properties of the PCCViewer.Event object for this event:
|
ViewingSessionChanging : string |
Fires when the ViewerControl begins to change to a new viewing session but before the new viewing session is ready. During this time, most ViewerControl API calls will fail with an error. A subsequent Note: The viewing session is typically changed to present a different document to the end user (for example, when the navigating into an email attachment). The ViewerControl can be instructed to change to a new viewing session by a call to PCCViewer.ViewerControl#changeViewingSession. Calling this method will immediately fire this event, indicating that the current viewing session is about to change. Augmented properties of the PCCViewer.Event object for this event:
|
ViewingSessionChanged : string |
Fires when the ViewerControl has finished changing to a new viewing session and the ViewerControl API is ready to be used again (see the related A subsequent Augmented properties of the PCCViewer.Event object for this event:
|
(static, readonly) FitType :string
The FitType enumeration defines fit types known by PCCViewer.ViewerControl. The ViewerControl
uses a specified fit type to set or update the scaling of the pages displayed in the viewer.
Note: This enumeration is a convenience for API developers. Instead of using it, you can pass in the string values of the fit type (enumeration values) directly to the API.
Example
// use the enumeration
myViewerControl.fitContent(PCCViewer.FitType.FullWidth);
// or just use the string value
myViewerControl.fitContent("FullWidth");
Type:
- string
Properties:
Name | Description |
---|---|
FullWidth : string |
The viewer scales the content to fill the width of the viewer. |
ShrinkToWidth : string |
The viewer will scale down the content until it fits fully width-wise into view. The page will not be scaled up if it already fits. |
ActualSize : string |
The viewer shows the content actual size. The content is not scaled. |
FullHeight : string |
The viewer scales the content to fill the height of the viewer, based on the largest known page height. |
FullPage : string |
The viewer scales the content to best fit the largest known page in the viewer. |
(static, readonly) MarkHandleMode :string
The MarkHandleMode enumeration defines mark handle modes known by PCCViewer.ViewerControl. The ViewerControl
uses a specified mark handle mode to determine how the mark handles are shown.
Note: This enumeration is a convenience for API developers. Instead of using it, you can pass in the string values of the mode (enumeration values) directly to the API.
Example
// use the enumeration
myViewerControl.setMarkHandleMode(PCCViewer.MarkHandleMode.HideCornerHandlesWhenClose);
// or just use the string value
myViewerControl.setMarkHandleMode("HideCornerHandlesWhenClose");
Type:
- string
Properties:
Name | Description |
---|---|
HideSideHandlesWhenClose : string |
All 8 handles (top left, top, top right, left, right, bottom left, bottom, bottom right) are shown for rectangular marks, except when the handles are moved close to each other. If the left handles are close to the right handles, the top and bottom handles are not shown. If the top handles are close to the bottom handles, the left and right handles are not shown. |
HideCornerHandlesWhenClose : string |
All 8 handles (top left, top, top right, left, right, bottom left, bottom, bottom right) are shown for rectangular marks, except when the handles are moved close to each other. In that case, the corner handles (top left, top right, bottom left, bottom right) are not shown. |
(static, readonly) PageLayout :string
The PageLayout enumeration defines page layouts known by PCCViewer.ViewerControl. The ViewerControl
uses a specified page layout to set or update the placement or arrangement of the pages in the viewer.
Note: This enumeration is a convenience for API developers. Instead of using it, you can pass in the string values of the page layout (enumeration values) directly to the API.
Example
// use the enumeration
myViewerControl.setPageLayout(PCCViewer.PageLayout.Horizontal);
// or just use the string value
myViewerControl.setPageLayout("Horizontal");
Type:
- string
Properties:
Name | Description |
---|---|
Horizontal : string |
Pages are displayed as a single horizontal row and a horizontal scroll bar is displayed to bring into view the pages that are not in view. |
Vertical : string |
Pages are displayed as a single vertical column and a vertical scroll bar is displayed to bring into view the pages that are not in view. |
- See:
-
- PCCViewer.ViewerControl#pageLayout
(static, readonly) RedactionViewMode :string
The RedactionViewMode enumeration defines redaction view modes known by PCCViewer.ViewerControl. The ViewerControl
uses a specified redaction view mode to set visibility of the text underneath the redaction rectangle marks that are opaque.
Note: This enumeration is a convenience for API developers. Instead of using it, you can pass in the string values of the view mode (enumeration values) directly to the API.
Example
// use the enumeration
myViewerControl.setRedactionViewMode(PCCViewer.ViewMode.Draft);
// or just use the string value
myViewerControl.setRedactionViewMode("Draft");
Type:
- string
Properties:
Name | Description |
---|---|
Draft : string |
The viewer displays the document content underneath the redaction rectangles in the document. |
Normal : string |
The viewer hides the document content underneath the redaction rectangles. |
(static, readonly) ScaleTrigger :string
The ScaleTrigger
enumeration defines actions known to PCCViewer.ViewerControl that alter page scaling.
Note: This enumeration is for convenience for API developers. Instead of using this enumeration, you can pass string values of the eventType (enumeration values)
Example
// use the enumeration
ev.trigger === PCCViewer.ScaleTrigger.Pinch
// or just use the string value
ev.trigger === "Pinch"
Type:
- string
Properties:
Name | Description |
---|---|
Pinch : string |
|
Zoom : string |
|
Fit : string |
|
ViewMode : string |
(static, readonly) ViewMode :string
The ViewMode enumeration defines view modes known by PCCViewer.ViewerControl. The ViewerControl
uses a specified view mode to set or update how documents that contain different sized pages are displayed in the viewer.
Note: This enumeration is a convenience for API developers. Instead of using it, you can pass in the string values of the view mode (enumeration values) directly to the API.
Example
// use the enumeration
myViewerControl.setViewMode(PCCViewer.ViewMode.EqualFitPages);
// or just use the string value
myViewerControl.setViewMode("EqualFitPages");
Type:
- string
Properties:
Name | Description |
---|---|
Document : string |
The viewer maintains the relative size of each page when displaying a document. For example, if page 2 is smaller than page 1, it will appear smaller. |
EqualWidthPages : string |
Deprecated since v10.0 (use the |
SinglePage : string |
The viewer displays a single page at a time. Each page is scaled to fit within a view box, which is the initial size of the viewer and increases in size when zooming in (and decreases in size when zooming out). After the viewer initializes, the view mode may not be changed to or from SinglePage view mode (an Error will be thrown in this case). |
EqualFitPages : string |
The viewer scales each page so that their width is the same, when using vertical page layout. For example, if page 2 is smaller than page 1, it will be scaled larger so that its width is equal to the width of page 1. If using horizontal page layout, the viewer scales each page so that their height is the same. |