1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Make authentication work

This commit is contained in:
beat 2012-05-07 09:17:00 +02:00
parent 315071ca28
commit 7786e4fefb
2 changed files with 9 additions and 4 deletions

View file

@ -9,6 +9,8 @@
*
* @param {string|TypedAray} source Either a url to a PDF is located or a
* typed array (Uint8Array) already populated with data.
* @param {Object} headers An object containing the http headers like this:
* { Authorization: "BASIC XXX" }
* @return {Promise} A promise that is resolved with {PDFDocumentProxy} object.
*/
PDFJS.getDocument = function getDocument(source, headers) {