Skip to content

Commit

Permalink
In src/display/api.js, add documentation for the |progressCallback| p…
Browse files Browse the repository at this point in the history
…arameter in |PDFJS.getDocument|
  • Loading branch information
Snuffleupagus committed Aug 28, 2014
1 parent 4fcd502 commit 64d95be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ PDFJS.maxCanvasPixels = (PDFJS.maxCanvasPixels === undefined ?
* parameters: function that needs to be called with new password and reason
* (see {PasswordResponses}).
*
* @param {function} progressCallback is optional. It is used to be able to
* monitor the loading progress of the PDF file (necessary to implement e.g.
* a loading bar). The callback receives an {Object} with the properties:
* {number} loaded and {number} total.
*
* @return {Promise} A promise that is resolved with {@link PDFDocumentProxy}
* object.
*/
Expand Down

0 comments on commit 64d95be

Please sign in to comment.