Brendan Dahl
c2d65fc4ab
Don't traverse all pages to get a single page.
12 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Tim van der Meij
4fe1e41c35
Minor nit fixes for api.js
12 years ago
Brendan Dahl
7ebec6c5a4
Add missing jsdocs for PDFJS globals.
12 years ago
Jon Ribbens
3ddb1720d9
Fix bug in api.js whereby fake workers didn't load the worker code
...
PDFJS does not work on Windows Safari, due to the lack of support for workers passing typed arrays. At some point, the code to set up the fake worker so that things work on Safari seems to have become broken and nobody noticed - it was just calling setupFakeWorker() without actually calling loadFakeWorkerFiles(). With this patch, the PDFJS works again on Windows Safari.
12 years ago
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Brendan Dahl
5afef1874c
Fix destroy logic for when there are multiple render requests.
12 years ago
Brendan Dahl
d85e38d629
Fix intermittent blank page on fast zoom.
12 years ago
Brendan Dahl
efa8f561a5
Move chars to glyphs conversion to the worker.
12 years ago
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
12 years ago
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
12 years ago
benbro
ce218d021f
Check that the progressCallback is defined before calling it
12 years ago
Brendan Dahl
b189749b4a
Removed unneeded timeout.
12 years ago
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
12 years ago
Yury Delendik
61a7738a5d
Fixes password for range request loading
12 years ago
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
12 years ago
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago
Brendan Dahl
ec311f303b
Use white backdrop when possible.
12 years ago
Brendan Dahl
5c43565404
Hack to support automatic printing from pdf javascript.
12 years ago
j
cd42ccd439
add imageLayer
...
add optional imageLayer object to access images and there
position and size as they are rendered on the canvas.
12 years ago
Yury Delendik
d5f65f5431
Fixes text search for "secured" documents
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
vyv03354
724add2ffd
Make an effort to adhere the spec 7.6.3.2
12 years ago
Jon Buckley
c67d9d40b8
Issue #2008 - Fix lint errors for src/api.js
12 years ago
Bill Walker
12af2f9431
fix for #2219 , "provide a better error message when file= not found/accessible"
...
summary: create a new Exception class for missing PDF's, use it in place of generic
add new MissingPDFException to util.js
handle MissingPDF in api.js
handle MissingPDF in viewer.js, using new missing_file_error message
add new missing_file_error to l10n/en-US/viewer.properties
send MissingPDF from WorkerMessageHandler's loadDocument
send MissingPDF from GetDocRequest handler
12 years ago
Yury Delendik
3346c284ab
Excluding Type3 fonts from the check; removing dead code
13 years ago
Yury Delendik
5dc87a7fca
Detecting if web fonts are disable in Firefox.
13 years ago
Brendan Dahl
babd8df176
Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.
13 years ago
Yury Delendik
69b72078c0
Separate page objects/images from the fonts; does not store large images
13 years ago
Piotr Zalewa
812bc6795d
* InvalidPDFException added
...
* Act on throwing an Exception and InvalidPDFException by rejecting the worker
instead of throwing
* changed message for all builds
* alerting and closing window only for B2G builds
* invalid_file_error added to l10n (en and pl)
* UnknownErrorException added and used for every error()
13 years ago
Brendan Dahl
739ee47865
Use Blob constructor when available instead of deprecated MozBlobBuilder.
13 years ago
Yury Delendik
9fba150dd2
Move font translation to the worker
13 years ago
Brendan Dahl
76d877e48b
Strip out license for bundled version.
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Pimm Hogeling
0fbbc5a840
Syntax changed that will help minifiers/compilers (such as the Closure Compiler) in their processing. In particular, preventing said minifiers/compilers from making dangerous renames.
13 years ago
Yury Delendik
621686ca67
Fixes incorrect font type and prevents future this.objs.objs[fonts[i]] failures
13 years ago
Brendan Dahl
492fa6edb4
Add the new preprocessor.
13 years ago
Yury Delendik
af4bd10c70
Allow relative URLs in getDocument
13 years ago
Yury Delendik
7a0e91af4b
removes expandUrl(url); fixes error message
13 years ago
Yury Delendik
f199a8b19e
Fixes merge with 1849
13 years ago
Tim de Koning
17c1018eef
lint compliance
13 years ago
Tim de Koning
0c33615301
Fixing web worker feature detection for Safari
13 years ago
Yury Delendik
0b1111f368
Cleanup: removing main thread loading fallback code
13 years ago
Yury Delendik
00f1d6dbf1
Fetches pdf data in the worker
13 years ago
Brendan Dahl
3c874c9bb7
Change to priority rendering.
13 years ago
Brendan Dahl
6175e4b526
Use already downloaded data for the open with/save as dialog.
13 years ago
Brendan Dahl
034583e1a1
Add new severity log info(). Change severity of some log messages. Trigger fallback on errors and warnings for extension.
13 years ago
Jakob Miland
45d6daa853
Wrong variable name, fix
13 years ago