Class Reference
Classes:
Viewer |
Document
vuzit. Document
Document data class.
Summary
Document data class. | |
The error message returned by the processing service. | |
The file size in bytes. | |
The file type as a string (‘doc’, ‘pdf’, ‘xls’). | |
The page height in pixels at the passed in zoom level. | |
The height of the thumbnail in pixels. | |
The document ID. | |
The image type extension returned as a string (‘jpg’, ‘png’, etc). | |
The last date the document was modified. | |
The length of the document in number of pages. | |
The document subject metadata. | |
The title of the document. | |
The URL of the document. | |
The URL of the image at the specified page and zoom level. | |
The URL of the thumbnail image at the specified zoom level. | |
The page width in pixels at the passed in zoom level. | |
The width of the thumbnail in pixels. | |
The number of zoom levels available. | |
True if the document is done processing | |
True if the document converted successfully. | |
Reprocesses the document. |
getUrlImage
getUrlImage: function( idPage, idZoom )
The URL of the image at the specified page and zoom level.
Parameters
| idPage | The page number. The first page is 0, and the last page is getPageCount()-1. |
| idZoom | The zoom level. The smallest zoom level is 0, and the largest is getZoomCount()-1. |
Returns
string
Example
var url = viewer.getDocument().getUrlImage(0, 1);
The error message returned by the processing service.
getErrorMessage: function()
The file size in bytes.
getFileSize: function()
The file type as a string (‘doc’, ‘pdf’, ‘xls’).
getFileType: function()
The page height in pixels at the passed in zoom level.
getHeight: function( idZoom )
The height of the thumbnail in pixels.
getHeightThumb: function()
The document ID.
getId: function()
The image type extension returned as a string (‘jpg’, ‘png’, etc).
getImageType: function()
The last date the document was modified.
getModifiedAt: function()
The length of the document in number of pages.
getPageCount: function()
The document subject metadata.
getSubject: function()
The title of the document.
getTitle: function()
The URL of the document.
getUrl: function()
The URL of the image at the specified page and zoom level.
getUrlImage: function( idPage, idZoom )
The URL of the thumbnail image at the specified zoom level.
getUrlImageThumb: function( idPage )
The page width in pixels at the passed in zoom level.
getWidth: function( idZoom )
The width of the thumbnail in pixels.
getWidthThumb: function()
The number of zoom levels available.
getZoomCount: function()
True if the document is done processing
isProcessingComplete: function()
True if the document converted successfully.
isProcessingSuccess: function()
Reprocesses the document.
reprocess: function( options )
