FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
This is a built-in snapshot interaction class, and the application layer can inherit it to implement custom interaction logic. More...
Public Member Functions | |
Promise< void > | onCancel (prepareData:string|Blob) |
Called after the cancel button is clicked. More... | |
Promise< void > | onDownload (prepareData:string|Blob) |
Called after the download button is clicked. More... | |
Promise< void > | onOk (prepareData:string|Blob) |
Called after the ok button is clicked. More... | |
Promise< string|Blob > | prepare () |
Called before the snapshot tool buttons are displayed, it can be used to process the snapshot image data, and return new data after the processing is completed. The returned data can be obtained through parameters in the onOk, onCancel and onDownload methods. More... | |
Protected Member Functions | |
Promise< void > | copyToClipboard (data?:string|Blob) |
Copy image data url or blob data to clipboard. More... | |
Protected Attributes | |
readonly PDFViewer | pdfViewer |
PDFViewer object instance for further operations. More... | |
readonly Snapshot | snapshot |
Currently selected snapshot information. More... | |
This is a built-in snapshot interaction class, and the application layer can inherit it to implement custom interaction logic.
|
protected |
Copy image data url or blob data to clipboard.
Promise<void> SnapshotInteraction::onCancel | ( | prepareData:string| | Blob | ) |
Called after the cancel button is clicked.
prepareData | string|Blob - Data returned from the prepare method. |
Promise<void> SnapshotInteraction::onDownload | ( | prepareData:string| | Blob | ) |
Called after the download button is clicked.
prepareData | string|Blob - Data returned from the prepare method. |
Promise<void> SnapshotInteraction::onOk | ( | prepareData:string| | Blob | ) |
Called after the ok button is clicked.
prepareData | string|Blob - Data returned from the prepare method. |
Promise<string|Blob> SnapshotInteraction::prepare | ( | ) |
Called before the snapshot tool buttons are displayed, it can be used to process the snapshot image data, and return new data after the processing is completed. The returned data can be obtained through parameters in the onOk, onCancel and onDownload methods.
|
protected |
PDFViewer object instance for further operations.
|
protected |
Currently selected snapshot information.