Commit Graph

1251 Commits

Author SHA1 Message Date
Yury Delendik
725195b65f Fixes compressed object entries caching 2012-11-06 12:05:59 -06:00
Yury Delendik
1f56d242ff Adds basic PDF info 2012-11-05 11:12:17 -06:00
Brendan Dahl
68cb985083 Merge pull request #2341 from yurydelendik/issue-2337
Fixes stream loading for XRefStm
2012-11-02 12:54:48 -07:00
Yury Delendik
35af48123a Fixes stream loading for XRefStm 2012-11-02 08:26:45 -05:00
Yury Delendik
37fb625e87 Fixes lineWidth/scale calculation for the fonts 2012-11-02 08:10:22 -05:00
Ben Browitt
19faf4b9eb Fix closure compiler warnings. 2012-10-31 17:31:46 +02:00
Yury Delendik
b47e4b8855 Merge pull request #2327 from brendandahl/un-inline
Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.
2012-10-29 16:43:23 -07:00
Julian Viereck
318b286da3 Fix typo in PartialEvaluator_getTextContent 2012-10-29 23:03:30 +01:00
Brendan Dahl
babd8df176 Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code. 2012-10-29 12:44:18 -07:00
Yury Delendik
1f084053e6 Merge pull request #2313 from yurydelendik/issue-1905
Fixes incomplete restore in paintFormXObject
2012-10-29 12:09:11 -07:00
Yury Delendik
3c5a9ba64b Merge pull request #2323 from waddlesplash/master
Vectorize the logo
2012-10-29 11:17:03 -07:00
waddlesplash
60e2e36ff7 Vectorize the logo. 2012-10-29 14:08:52 -04:00
Brendan Dahl
a592e02c49 Merge pull request #2317 from yurydelendik/memory-1
Refactors how page objects are stored
2012-10-29 10:44:39 -07:00
Yury Delendik
69b72078c0 Separate page objects/images from the fonts; does not store large images 2012-10-28 15:24:54 -05:00
Jean-Sebastien Legare
0cdecf007f try/catch bug. var not unset when getter length() throws error 2012-10-27 21:18:37 -07:00
Yury Delendik
4c533d065d Fixes incomplete restore in paintFormXObject 2012-10-26 23:30:01 -05:00
Yury Delendik
ee87a44c03 Merge pull request #2298 from zalun/show_alert_on_invalid_pdf_structure
Display an error on Invalid PDF
2012-10-25 19:18:26 -07:00
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()
2012-10-25 11:15:19 +02:00
Yury Delendik
4c0f9eb924 Fixes getNumber at the end of stream 2012-10-24 10:47:16 -05:00
Adil Allawi
88bd912840 Clear unused code 2012-10-23 04:31:01 -07:00
Saebekassebil
58d6974bf5 Implement NullStream, fix #1832 2012-10-22 17:53:15 +02:00
Brendan Dahl
ece9cd15d2 Merge pull request #2249 from yurydelendik/issue-2234
Reducing parameter of Mac->Win heuristic
2012-10-19 17:01:00 -07:00
Yury Delendik
13c430c6e1 Using CMYK SWOP colors 2012-10-17 10:57:51 -05:00
Brendan Dahl
c8cf4458c6 Merge pull request #2245 from yurydelendik/issue-1912
Fixes reading CFF with two .notdef in charset
2012-10-16 09:24:21 -07:00
Yury Delendik
0bc5216601 Merge pull request #2262 from waddlesplash/master
Support 'GoToR'-type links
2012-10-16 07:16:29 -07:00
waddlesplash
c111154979 Support 'GoToR' links.
Fix tabs.

Make changes as per @yurydelendik's request.

Forgot to remove 'TODO' comment.

Support 'GoToR'-type links.
2012-10-16 09:54:08 -04:00
Brendan Dahl
336d5041dd Merge pull request #2243 from yurydelendik/issue-1233
Removes useless font tables for PDF rendering
2012-10-15 17:04:28 -07:00
Brendan Dahl
d76f4d735f Merge pull request #2244 from yurydelendik/issue-2074
Fixes cmap when 0xFFFF character is included
2012-10-15 16:27:37 -07:00
Brendan Dahl
c31c79761c Merge pull request #2240 from yurydelendik/fix-text-clipping
Fixes text clipping
2012-10-15 15:27:44 -07:00
waddlesplash
1ed1de10a5 More descriptive link types warning. 2012-10-15 17:23:17 -04:00
Brendan Dahl
c67cc874e8 Merge pull request #2215 from yurydelendik/issue-1836
Falls back to ErrorFont when font object is not available or corrupted
2012-10-15 11:51:09 -07:00
Yury Delendik
ab058dbe75 Fixes text clipping 2012-10-15 12:52:37 -05:00
Brendan Dahl
846038991c Merge pull request #2214 from yurydelendik/issue-1859
Adds Type1 sbw command support for horizontal fonts
2012-10-15 10:07:36 -07:00
Yury Delendik
8c3a82ff4d Falls back to ErrorFont when font object is not available or corrupted 2012-10-15 11:48:45 -05:00
Yury Delendik
b09f0ccbaa Adds Type1 sbw command support for horizontal fonts 2012-10-15 11:40:55 -05:00
Brendan Dahl
8c3fdd069a Merge pull request #2254 from yurydelendik/no-glyphs
Fixes font processing when no glyphs are found
2012-10-15 09:09:46 -07:00
Yury Delendik
b6ad7fd103 Defines at least one glyph if none was found 2012-10-15 11:08:50 -05:00
Brendan Dahl
565d13f670 Merge pull request #2213 from yurydelendik/bug762657
Removes PutBinaryImageData compatibility check (re:bug 762657)
2012-10-15 08:58:24 -07:00
Yury Delendik
c129ecea8a Partially reverts #2239 due to reftest fails 2012-10-15 09:20:52 -05:00
Yury Delendik
19002cc8a3 Merge pull request #2239 from yurydelendik/no-glyphs-message
Stops font processing when valid glyphs are absent in the font
2012-10-15 07:06:27 -07:00
Yury Delendik
3ed6db69d0 Reducing parameter of Mac->Win heuristic 2012-10-14 17:52:14 -05:00
Yury Delendik
31b5f566d6 Fixes reading CFF with two .notdef in charset 2012-10-13 15:35:23 -05:00
Yury Delendik
7ea87c875e Fixes cmap when 0xFFFF character is included 2012-10-13 14:21:15 -05:00
Yury Delendik
e4c8121ed4 Suppresses useless for PDF rendering font tables 2012-10-13 11:41:44 -05:00
Yury Delendik
62b2c5a030 Stops font processing when valid glyphs are absent in the font 2012-10-12 17:54:20 -05:00
Clement Skau
5edd6d253f Fixes Viewport rotation above 360 2012-10-11 00:27:35 +09:00
Yury Delendik
b5f952a63a Fixes font debugger; text builder api refactoring 2012-10-09 08:25:41 -05:00
Yury Delendik
ee133197ee Removes PutBinaryImageData compatibility check (re:bug 762657) 2012-10-07 21:09:00 -05:00
Yury Delendik
bc19b5581e Removes usage of print as log 2012-10-04 10:01:53 -05:00
Julian Viereck
47809fe316 Address yury's review comments 2012-09-26 19:46:06 +02:00
Julian Viereck
658c6936fc Tune whitespace insertion 2012-09-25 16:07:59 +02:00
Julian Viereck
e98eba1b11 Merge pull request #2127 from jviereck/text-algo-3
Use the text extracted in the getTextContent function for the divs of the textLayer.
2012-09-25 05:52:46 -07:00
Yury Delendik
574d626f04 Merge pull request #1906 from brendandahl/use-plain-blob
Use Blob constructor when available instead of deprecated MozBlobBuilder.
2012-09-24 17:11:32 -07:00
Brendan Dahl
739ee47865 Use Blob constructor when available instead of deprecated MozBlobBuilder. 2012-09-22 09:44:49 -07:00
Julian Viereck
f1e0edbaa9 Address Yurys review comments 2012-09-22 11:18:26 +02:00
Adil Allawi
5bc2934014 Handle normalization of Arabic Unicode Presentation Forms A to Arabic Unicode 2012-09-22 08:10:53 +01:00
Adil Allawi
c04b4c1679 Handle normalization of Arabic Unicode Presentation Forms B to Arabic Unicode 2012-09-21 18:36:59 +01:00
Brendan Dahl
47340d557c Merge pull request #2145 from yurydelendik/fix-export-keyword
Renaming export to exportData
2012-09-20 21:30:40 -07:00
Julian Viereck
e48530d391 Fix AppendText after API changes 2012-09-20 22:09:03 +02:00
Yury Delendik
75e928c102 Merge pull request #2058 from Pimm/master
Small fixes for normal and potential post-compilation bugs
2012-09-20 11:36:55 -07:00
Yury Delendik
59eca230fa Merge pull request #2131 from saebekassebil/metadata2
Metadata optimization
2012-09-20 10:31:19 -07:00
Julian Viereck
a33ba145bf Don't compute the string for the TextLayer in the canvas backend anymore and change the syntax of appendText 2012-09-20 17:15:55 +02:00
Julian Viereck
3d0e6da2ff Move some more font conversion into loadFont function to make type3 fonts work for now 2012-09-20 17:12:36 +02:00
Julian Viereck
36d358fff8 Don't use shadow() for spaceWidth as otherwise sendering the font over to the mainthread causes issues if the worker used the property and the main thread tries to assign the spaceWidth to the getter function 2012-09-20 17:10:52 +02:00
Julian Viereck
fdb6a013c9 Fix unitialized text/dirs array 2012-09-20 17:10:52 +02:00
Julian Viereck
a525492f65 Make lint happy 2012-09-20 17:10:51 +02:00
Julian Viereck
6bc2a0b84a Remove spaces that don't make sense when using the text in divs 2012-09-20 17:10:51 +02:00
Julian Viereck
e22fc80d3e Add handling for gs in getTextContent 2012-09-20 17:10:51 +02:00
Julian Viereck
bd4434a7ea Apply bidi algorithm to the text in the worker 2012-09-20 17:10:51 +02:00
Julian Viereck
8d6565d1a8 Change the format of the BidiResult object. 2012-09-20 17:10:51 +02:00
Julian Viereck
897b99500e Fix typos that prevent space insertion for showSpaced in getTextContent 2012-09-20 17:10:51 +02:00
Julian Viereck
7432e596a1 Improve the space detection for the getTextContent function 2012-09-20 17:08:43 +02:00
Julian Viereck
9b9de87ac4 Undo some changes for now until there is support for font.spacedWidth 2012-09-20 17:08:43 +02:00
Julian Viereck
3a8426e179 Fix typo in new return value of bidi function 2012-09-20 17:08:42 +02:00
Julian Viereck
83c499595c Change the PDFJS.bidi function calls slightly to avoid creating a seperate object to pass to PDF.JS bidi and just pass in a string 2012-09-20 17:08:42 +02:00
Julian Viereck
668c2867d4 Change the format of textContent to be an array 2012-09-20 17:01:16 +02:00
Julian Viereck
a38c4bc729 Make getTextContent return offset array and improve the algorithm. Make
parts in viewer.js work again.
2012-09-20 17:01:15 +02:00
Yury Delendik
3d78ccd570 Renaming export to exportData 2012-09-20 09:38:59 -05:00
Julian Viereck
43f2db30b3 Fix current.x for type3 font word break 2012-09-19 22:19:21 +02:00
Brendan Dahl
81e708bf0f Merge pull request #2118 from yurydelendik/disable-font-hack
Removing font loading hack from MOZCENTRAL
2012-09-18 09:17:05 -07:00
Brendan Dahl
8dc49a3c9b Merge pull request #2124 from yurydelendik/fallback-font
Provides right fallback fonts for text layer
2012-09-17 10:06:42 -07:00
Yury Delendik
8d506212a8 Adds heuristic for monospace font detection 2012-09-16 14:38:30 -05:00
Saebekassebil
c88924f411 Optimize metadata parsing 2012-09-15 18:54:08 +02:00
Yury Delendik
ac7b6aeff4 Provides right fallback fonts for text layer 2012-09-14 11:17:35 -07:00
Yury Delendik
45741c33a5 Fixes RTL text extraction 2012-09-14 10:26:46 -07:00
Yury Delendik
38bb3b4880 Removing font loading hack from MOZCENTRAL 2012-09-13 16:45:56 -07:00
Yury Delendik
e086cf36f4 Refactor text extraction / font loading logic 2012-09-13 15:12:42 -07:00
Yury Delendik
9fba150dd2 Move font translation to the worker 2012-09-12 17:31:04 -07:00
Yury Delendik
40eb44eae4 Merge pull request #1809 from brendandahl/shading-extend
Adds support for the extend option for linear and radial shadings.
2012-09-11 05:24:53 -07:00
Brendan Dahl
164931d2fc Adds background support for gradient.
Warns on case when we don't handle radial gradients correctly.
Fixes chrome extend gradients.
2012-09-10 13:23:07 -07:00
Julian Viereck
bd0e42220b Merge pull request #2089 from yurydelendik/remove-currenttransf
Removes unnecessary ctx.mozCurrentTransformInverse transforms
2012-09-08 08:59:21 -07:00
Brendan Dahl
455bb6d98c Merge pull request #2076 from kkujala/dev
Add initial TilingType support.
2012-09-07 15:39:28 -07:00
Yury Delendik
954ea97158 Removes unnecessary ctx.mozCurrentTransformInverse transforms 2012-09-07 11:00:05 -05:00
Brendan Dahl
59016bcf59 Merge pull request #2082 from yurydelendik/chrome-fontload
Workaround for chrome's issue 145227
2012-09-07 08:50:55 -07:00
Kalervo Kujala
5f202e1596 Add initial TilingType support. 2012-09-05 22:36:20 +03:00
Brendan Dahl
76d877e48b Strip out license for bundled version. 2012-09-04 10:22:32 -07:00
Brendan Dahl
332ae4ce41 Change to the Apache v2 license. 2012-08-31 15:48:21 -07:00
Pimm Hogeling
080ab94a0d Lint syntax fixes. 2012-08-31 15:51:31 +02:00
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. 2012-08-31 13:40:37 +02:00
Pimm Hogeling
438e3c8f6d Fixes for subtile bugs that were introduced in 59283bdf6d and 99440ab691, among others. 2012-08-31 13:37:44 +02:00
Yury Delendik
deedb0a911 Workaround for chrome's issue 145227 2012-08-29 19:16:57 -05:00
Artur Adib
8e50da78ee Merge pull request #2050 from yurydelendik/issue-2040
Fixes incorrect font type and prevents future this.objs.objs[fonts[i]] ...
2012-08-29 14:47:32 -07:00
Yury Delendik
621686ca67 Fixes incorrect font type and prevents future this.objs.objs[fonts[i]] failures 2012-08-29 16:11:56 -05:00
Brendan Dahl
33f7e86171 Merge pull request #2047 from yurydelendik/font-linux
Fixes fonts on linux
2012-08-29 12:35:25 -07:00
Yury Delendik
e32ecc44d3 Fixes CFF test and CFF int16 parsing 2012-08-29 12:58:12 -05:00
Yury Delendik
93f9efde39 Fixes ascent and descent values for windows gdi 2012-08-29 12:19:09 -05:00
Brendan Dahl
d26ecff294 Reduce math for color key mask. 2012-08-29 09:36:12 -07:00
Yury Delendik
4550ffe14e Fixes fonts on linux 2012-08-29 10:31:59 -05:00
Brendan Dahl
19fa6a5260 Adds support for color key mask. 2012-08-28 17:19:31 -07:00
Brendan Dahl
d77bafa678 Merge pull request #1997 from yurydelendik/font-refact-1
Rectoring font loading concurency
2012-08-27 09:15:56 -07:00
Yury Delendik
a89cb5dd7a Disables symbolic encoding for non-standard fonts 2012-08-24 08:05:06 -05:00
Yury Delendik
296b98f977 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into progress-indeterminate
Conflicts:
	extensions/firefox/components/PdfStreamConverter.js
2012-08-23 15:23:44 -05:00
Yury Delendik
cd1a645881 Adds support of the indeterminate loading progress 2012-08-22 10:48:56 -05:00
Tom Schuster
fad38f8286 Update src/fonts.js
One simple thing that came up while looking at the new Octane benchmark.
2012-08-22 07:22:47 -05:00
Yury Delendik
51b2587340 Copy decoded image data and keeps non-decoded pixes as transparent 2012-08-20 15:57:21 -05:00
Yury Delendik
4f20f5f1bb Verify the request id parameter 2012-08-17 16:56:47 -05:00
Yury Delendik
52d229761a Removing sum of the iframe times, browser does it for us 2012-08-17 16:08:42 -05:00
Yury Delendik
8459fef6c3 Cleanup: remove iframe and message handler 2012-08-17 14:00:35 -05:00
Yury Delendik
3c1d63055d Invoking callback via setTimeout 2012-08-17 11:32:34 -05:00
Yury Delendik
c414c76461 Fixes font loading concurency 2012-08-17 11:05:51 -05:00
Brendan Dahl
fd416d3788 Stop streams from being sent from worker for indexed color spaces. 2012-08-16 15:22:28 -07:00
Artur Adib
c9c5ae32d9 Merge pull request #1979 from yurydelendik/issue-1685
Discards invalid values for Blues
2012-08-16 09:58:10 -07:00
Brendan Dahl
590c6c413e Merge pull request #1978 from yurydelendik/issue-1655
Fixes bias calculation for type2 subr
2012-08-14 14:50:32 -07:00
Brendan Dahl
7acbe15061 Merge pull request #1977 from yurydelendik/callothersubr
Adds callothersubr support
2012-08-14 09:46:19 -07:00
Yury Delendik
972d08209a Discards invalid values for Blues 2012-08-11 23:05:41 -05:00
Yury Delendik
6277e6eda7 Fixes bias calculation for type2 subr 2012-08-11 20:10:31 -05:00
Yury Delendik
b4d75ca83b Adds callothersubr support 2012-08-11 11:57:42 -05:00
Yury Delendik
3093427480 Marks xref entries with offset 0 as free 2012-08-10 21:31:33 -05:00
Artur Adib
6ccf711966 Merge pull request #1971 from yurydelendik/issue-1970
Using fast pixels copy in putBinaryImageData
2012-08-10 11:40:12 -07:00
Yury Delendik
5e3882ab69 Changing cubic spline interpolation error to TODO 2012-08-10 08:30:20 -05:00
Yury Delendik
55b3b005b8 Using createImageData when available 2012-08-09 13:40:40 -05:00
Yury Delendik
65bc78d870 Using fast pixels copy in putBinaryImageData 2012-08-09 10:41:18 -05:00
Brendan Dahl
2ca8c0d999 Cleanup references to dom elements. 2012-08-08 09:07:31 -07:00
Yury Delendik
70beb11a50 Merge pull request #1953 from brendandahl/b2g
Add B2G build and new preprocessor.
2012-08-08 08:37:26 -07:00
Yury Delendik
5d95782ea1 Merge pull request #1957 from brendandahl/fix-doc-info
Sanitize the document info.
2012-08-06 15:18:55 -07:00
Brendan Dahl
70e415900c Address review comments. 2012-08-06 14:32:54 -07:00
Brendan Dahl
69eca3c50f Use timeout for font ready callback to avoid intermittent chrome failures. 2012-08-06 08:51:20 -07:00
Brendan Dahl
29263836c2 Sanitize the document info. 2012-08-03 16:11:43 -07:00
Brendan Dahl
9ddbe1fac7 Merge pull request #1947 from yurydelendik/issue-1944
Fix loading of the font widths
2012-08-02 11:54:58 -07:00
Yury Delendik
41a4272463 Implement textRise; reduce ref test to one page 2012-08-01 15:10:48 -05:00
Brendan Dahl
492fa6edb4 Add the new preprocessor. 2012-08-01 11:55:39 -07:00
Brendan Dahl
6d35073a9c Initial build for b2g. 2012-08-01 11:55:39 -07:00
Yury Delendik
f947b3bb4c Fixes Shading.Dummy return type 2012-08-01 10:59:21 -05:00
Yury Delendik
8aab1a7a7b Fix loading of the font widths 2012-07-31 17:58:28 -05:00
Yury Delendik
af4bd10c70 Allow relative URLs in getDocument 2012-07-26 12:11:28 -05:00
Brendan Dahl
b3a603c199 Merge pull request #1840 from yurydelendik/loadpdf-1
Moves loading of the binary PDF data to the worker
2012-07-23 16:27:55 -07:00
Brendan Dahl
7fff630e87 Merge pull request #1892 from brendandahl/seac
Add support for type 1 seac charstring command.
2012-07-20 17:27:18 -07:00
Brendan Dahl
792ef1b14d Support div number format for seac operator. 2012-07-20 15:53:39 -07:00
Brendan Dahl
377a96dda7 Merge pull request #1909 from benbro/master
Prevent the error callback from being called twice when getPdf fails because of a cross domain request.
2012-07-20 15:46:39 -07:00
Brendan Dahl
6ed639e4d8 Merge branch 'master' of github.com:mozilla/pdf.js into seac 2012-07-20 15:12:09 -07:00
Brendan Dahl
a667a874db Merge pull request #1910 from brendandahl/fix-hsbw
Support more type 1 font hsbw formats.
2012-07-20 15:10:45 -07:00
benbro
97e72d5864 Add missing bracket 2012-07-21 00:51:36 +03:00
Brendan Dahl
34eb537160 Add another warning for malformed stack. Fix/add variable names. 2012-07-20 13:48:48 -07:00
Brendan Dahl
24a3e0c8cc Don't trigger TODO on marked content. 2012-07-20 09:09:48 -07:00
Brendan Dahl
8fccd19948 Leave div commands on stack and change evaluation. 2012-07-19 18:06:37 -07:00
Yury Delendik
7a0e91af4b removes expandUrl(url); fixes error message 2012-07-19 16:10:26 -05:00
Brendan Dahl
ac005ed359 Support more type 1 font hsbw formats. 2012-07-18 16:23:51 -07:00
benbro
f60d7c564f Moved the check for calledErrorBack inside the xhr.onerror function 2012-07-18 22:05:55 +03:00
benbro
813b5e78b0 Prevent the error callback from being called twice 2012-07-18 21:41:36 +03:00
Brendan Dahl
e6b75f4a56 Also check abbreviation for colorspace in jpegs. 2012-07-17 13:42:49 -07:00
benbro
a63814e2b9 Changed warning 2012-07-13 18:09:20 +03:00
benbro
278dc81a54 Move the try/catch block deeper 2012-07-13 18:00:55 +03:00
benbro
9de94991e9 Catch errors when parsing the linearization header so we can display corrupted docs 2012-07-13 17:41:20 +03:00
Brendan Dahl
c98b905e0d Add support for type 1 seac charstring command. 2012-07-11 16:29:07 -07:00
Alex Kwiatkowski & Daniel Yankowsky
00dbce612f Skip properties inherited from array.prototype 2012-07-11 11:45:28 -04:00
Brendan Dahl
f4c16aab9e Merge pull request #1882 from yurydelendik/jpx-segsymbol
Segmentation symbol check for JPX
2012-07-09 14:38:14 -07:00
Yury Delendik
48e115cf30 Implements segmentation symbol check for JPX 2012-07-09 13:59:50 -05:00
Yury Delendik
f9f715b656 Adds lossless segment types; fixes generic region prediction flag 2012-07-09 12:13:03 -05:00
Yury Delendik
07a24c5589 Warn instead of fail for CID fonts 2012-06-28 07:51:18 -05:00
Yury Delendik
f199a8b19e Fixes merge with 1849 2012-06-28 05:33:32 -05:00
Yury Delendik
eb863b2298 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into loadpdf-1
Conflicts:
	src/api.js
2012-06-28 05:26:16 -05:00
Yury Delendik
665ff0d36f Merge pull request #1849 from kingsquare/master
Fix for web worker test in Safari
2012-06-28 03:05:04 -07:00
Yury Delendik
54db7489bd Merge pull request #1831 from brendandahl/priority-rendering
Change to priority/pausible rendering.
2012-06-27 12:44:58 -07:00
Tim de Koning
17c1018eef lint compliance 2012-06-27 11:14:14 +02:00
Tim de Koning
4845bb586e Merge branch 'master' of github.com:kingsquare/pdf.js 2012-06-27 09:28:53 +02:00
Brendan Dahl
f90a05f5f8 Merge pull request #1837 from yurydelendik/jbig2-1
JBIG2 implementation
2012-06-26 16:00:32 -07:00
Tim de Koning
0c33615301 Fixing web worker feature detection for Safari 2012-06-26 23:07:37 +02:00
Tim de Koning
c131715a2f Make web workers debuggable! This way an error can be caught in the browser when the web worker throws an error.
See http://www.nczonline.net/blog/2009/08/25/web-workers-errors-and-debugging/
2012-06-26 10:12:10 +02:00
Yury Delendik
25d4467fa3 Fixes .length and capitalization nits 2012-06-26 00:32:59 -05:00
Yury Delendik
0b1111f368 Cleanup: removing main thread loading fallback code 2012-06-23 15:49:17 -05:00
Yury Delendik
0dd445bf18 Fixes unit tests and adds few for util.js 2012-06-23 15:35:59 -05:00
Yury Delendik
00f1d6dbf1 Fetches pdf data in the worker 2012-06-23 14:48:33 -05:00
Yury Delendik
f014481149 Replaces throw to error() and uses shadow() 2012-06-22 05:55:19 -05:00
Yury Delendik
699abbd4f2 Removing huffman tables; decoding context refactoring 2012-06-22 05:36:56 -05:00
Yury Delendik
2e5414cd18 Fixes template 2; implements end of stripe 2012-06-22 00:50:04 -05:00
Yury Delendik
aa877e1d40 Implements refinement 2012-06-21 17:26:24 -05:00
Brendan Dahl
8b0ec4b2b0 Merge pull request #1693 from benbro/master
Use a reusable style sheet instead of creating a new tag for each rule.
2012-06-18 13:06:45 -07:00
Yury Delendik
e09eb529d9 Adds basic symbol dictionary and text region. 2012-06-18 15:03:20 -05:00
benbro
76a296cac4 Remove space at end of line. 2012-06-18 23:02:23 +03:00
Brendan Dahl
ffc27bca1e Fix missing charset for iframe. 2012-06-18 10:49:00 -07:00
Brendan Dahl
3c874c9bb7 Change to priority rendering. 2012-06-18 09:48:47 -07:00
Yury Delendik
95bc99f698 Initial JBIG2 code 2012-06-16 15:15:42 -05:00
sbarman
5cbe3a517e Undo removal of Mode line 2012-06-13 16:09:57 -07:00
sbarman
7c48297794 Adding call to resolve unfulfilled promise 2012-06-11 15:05:06 -07:00
sbarman
c900dfeced Updated lint errors 2012-06-11 14:57:58 -07:00
sbarman
dd14b3051e Fix for issue #1796 2012-06-08 22:42:56 -07:00
Brendan Dahl
5d8f463162 Adds support for the extend option for linear and radial shadings. 2012-06-07 16:00:07 -07:00
Brendan Dahl
1c1447e599 Merge pull request #1763 from yurydelendik/type3-1
Type3 smoothing: pre-scale image in the paintImageMaskXObject
2012-06-06 09:26:38 -07:00
Yury Delendik
d5da15e001 Fixes brackets 2012-06-05 17:56:18 -05:00
Brendan Dahl
6175e4b526 Use already downloaded data for the open with/save as dialog. 2012-06-01 14:17:09 -07:00
benbro
6de284acc9 Set the style element ID. 2012-05-31 12:05:06 +03:00
benbro
4e39685753 Use a style tag with an ID instead of keeping a reference to it. 2012-05-31 12:01:15 +03:00
Brendan Dahl
d9764ab468 Merge pull request #1674 from mozilla/textsearch
Text search with new API, new UI
2012-05-29 10:16:18 -07:00
Brendan Dahl
2ba7cbc4fa Merge pull request #1766 from yurydelendik/encryptmeta
Suppress metadata decryption
2012-05-29 09:44:24 -07:00
Yury Delendik
1fb02300a4 Removing log 2012-05-29 11:01:46 -05:00
Artur Adib
9597efb3f4 merge upstream 2012-05-29 11:54:11 -04:00
Yury Delendik
50b86ff480 Move putImageData 2012-05-28 15:10:44 -05:00
Yury Delendik
48811f362b Skipping incorrectly encoded metadata 2012-05-27 19:00:13 -05:00
Yury Delendik
413e5357b9 Suppress metadata decryption 2012-05-27 18:03:04 -05:00
Nils Maier
40b9be137f Decode XML metadata as UTF-8
XML uses UTF-8 by default, which needs to be decoded to a Javascript
String prior to feeding it to the DOMParser.
In an ideal world, the XML would actually be analyzed and the specified
charset would be used, however that does not seem feasible unless JS
engines get iconv bindings.

Fixes GH-1692
2012-05-27 22:56:49 +02:00
Yury Delendik
81681e7914 Pre-scale image in the paintImageMaskXObject 2012-05-27 13:50:46 -05:00
Brendan Dahl
5416b92392 Add todo comment. 2012-05-25 13:07:07 -07:00
Brendan Dahl
2da12930a6 Merge branch 'master' of github.com:mozilla/pdf.js into fallback-ui
Conflicts:
	extensions/firefox/components/PdfStreamConverter.js
2012-05-24 14:01:10 -07:00
Brendan Dahl
e16a5c81d4 Merge pull request #1734 from yurydelendik/issue-1721
Adjust heuristic to properly handle unicode characters
2012-05-24 09:44:29 -07:00
Brendan Dahl
139200e772 Merge pull request #1716 from yurydelendik/issue-1709
Adjusts MacRoman switch heuristics threshold
2012-05-22 18:09:51 -07:00
Yury Delendik
6971aec9f3 Adjust heuristic to properly handle unicode characters 2012-05-21 22:15:09 -05:00
Artur Adib
5ac7513fa3 Merge pull request #1728 from yurydelendik/lexer-1
Allow parsing of the "glued" commands
2012-05-21 13:55:29 -07:00
Brendan Dahl
a9136d9f0f Merge pull request #1720 from yurydelendik/remove-cid-1
Removes the CID data from the CFF font
2012-05-21 13:48:51 -07:00
Yury Delendik
874357aac1 Comment for knownCommands 2012-05-21 15:23:49 -05:00
Artur Adib
1e41f65735 Merge pull request #1712 from yurydelendik/winfont-1
Moves Subrs to Private tail in CFF top dict
2012-05-21 11:25:47 -07:00
Yury Delendik
43f1946c7a Add prefixes for literals 2012-05-20 14:05:23 -05:00
Yury Delendik
ec6c185cf5 Allow parsing of the "glued" commands 2012-05-20 13:44:03 -05:00
Yury Delendik
ed02be8352 Removes the CID data from the CFF font 2012-05-18 16:51:55 -05:00
Yury Delendik
84b4f53ed6 Adjusts MacRoman switch heuristics threshold 2012-05-18 11:15:44 -05:00
Yury Delendik
45ae175d0b Fixes CFF: moves Subrs to Private tail 2012-05-17 18:15:11 -05:00
Jakob Miland
b655b414d8 PasswordException in closure 2012-05-17 21:34:39 +02:00
Jakob Miland
3ddf9b5dfd Merge branch 'fixpassword', remote-tracking branch 'origin/master' into fixpassword 2012-05-16 21:03:09 +02:00
Artur Adib
0bac4abcb5 Merge branch 'master' of github.com:mozilla/pdf.js into textsearch 2012-05-16 12:51:19 -04:00
Brendan Dahl
e962d93946 Change to info for most gstate settings. 2012-05-15 16:05:45 -07:00
Brendan Dahl
60dd0e08e4 Merge pull request #1694 from yurydelendik/owner-password
Fixes user and owner passwords logic
2012-05-15 11:52:56 -07:00
Brendan Dahl
080c3e79fc Merge upstream. Use new l10n. 2012-05-15 10:33:01 -07:00
Brendan Dahl
034583e1a1 Add new severity log info(). Change severity of some log messages. Trigger fallback on errors and warnings for extension. 2012-05-14 17:19:09 -07:00
Jakob Miland
45d6daa853 Wrong variable name, fix 2012-05-14 20:58:56 +02:00
Jakob Miland
0a30d3961b Support password and add the relevant l10n strings 2012-05-14 20:45:07 +02:00
Brendan Dahl
3586b7579f Merge pull request #1686 from yurydelendik/evaluator-tests
Evaluator tests
2012-05-14 09:06:41 -07:00
Jakob Miland
b7ea788b0c Merge remote-tracking branch 'origin/master' into fixpassword 2012-05-14 17:58:10 +02:00
Yury Delendik
910ba0b91f Fixes user and owner passwords logic 2012-05-12 21:34:32 -05:00
benbro
b6077c7398 IE9 breaks when adding to many style elements to the page. 2012-05-12 03:40:40 +03:00
Dmitry Kataev
6acdf1791c Two or more operations can be combined together like qqBT 2012-05-09 21:29:50 +04:00
Artur Adib
2d3ed7fc78 Merge branch 'refs/heads/master' into textsearch
Conflicts:
	web/viewer.css
	web/viewer.html
	web/viewer.js
2012-05-08 17:22:48 -04:00
beat
e1146b64ad fix 4 lint errors 2012-05-08 16:34:46 +02:00
beat
e11cad884c code style fixes 2012-05-08 14:17:51 +02:00
beat
7786e4fefb Make authentication work 2012-05-07 09:17:00 +02:00
asraniel
315071ca28 Add stub for the last piece of the puzzle 2012-05-06 21:32:30 +02:00
asraniel
353a43cb46 Add first API change, not working yet 2012-05-06 21:24:42 +02:00
Yury Delendik
3f2adc04ac Merge pull request #1620 from merkste/opera-jpg.js-issue
Opera, Mac: exception on importScript jpg.js locally (clean pull)
2012-05-01 17:50:31 -07:00
Kalervo Kujala
117256ce78 Correct PDFDocumentProxyClosure name. 2012-05-01 20:54:16 +03:00
Kalervo Kujala
889b3d3168 Correct class method names. 2012-05-01 20:48:07 +03:00
Brendan Dahl
f8ed7bb31a Fix object id counter. 2012-04-26 09:38:58 -07:00
Steffen Märcker
2b81f3c2e9 changed load order to fix viewer in Opera locally 2012-04-26 13:28:38 +02:00
Brendan Dahl
92e355dc35 Address review comments. 2012-04-25 18:44:28 -07:00
Brendan Dahl
ba9c828117 Merge pull request #1600 from yurydelendik/issue-1586
Don't check gen number for free entry; don't index objects twice
2012-04-25 17:04:11 -07:00
Saebekassebil
9287ab12e7 Add mailto protocol, to whitelist 2012-04-25 20:17:26 +02:00
Brendan Dahl
0cb6d62089 Merge pull request #1599 from yurydelendik/issue-1597
Guessing pdf char size based on the CMap numbers
2012-04-24 13:49:30 -07:00
Brendan Dahl
2db0ee6ba3 Add next line operators for text collection. 2012-04-24 12:29:23 -07:00
Yury Delendik
fcabd176a0 Don't check gen number for free entry; don't index objects twice 2012-04-23 22:14:58 -05:00
Yury Delendik
78213e826e Guessing pdf char size based on the CMap numbers 2012-04-23 17:44:51 -05:00
Yury Delendik
f7ccb291f4 Fix broken metadata 2012-04-23 16:43:20 -05:00
Brendan Dahl
8eaf0cdb18 Remove cache of page text content in core. 2012-04-23 13:16:57 -07:00
Brendan Dahl
92d0d1d694 Merge new API and text search. 2012-04-20 16:49:08 -07:00
Yury Delendik
cf19de8fcd Merge pull request #1573 from brendandahl/issue-1516
Handle junk at the end of postscript functions.
2012-04-18 14:00:58 -07:00
Brendan Dahl
cec7a92a99 Merge pull request #1568 from yurydelendik/issue-1557
Fixes annotations; adds text annotation icon
2012-04-18 10:51:13 -07:00
Brendan Dahl
56079d77bc Merge pull request #1504 from yurydelendik/issue-1502
Rebuilding invalid OS/2 table
2012-04-18 10:32:55 -07:00
Brendan Dahl
6ab7584ba4 Fix to lowercase. 2012-04-18 09:50:47 -07:00
Brendan Dahl
e5732f489d Handle junk at the end of postscript functions. 2012-04-18 09:48:28 -07:00
Yury Delendik
237e1d941d Fix annotations; add text annotation icon 2012-04-17 15:33:15 -05:00
Brendan Dahl
9b0224b5cf Merge pull request #1551 from yurydelendik/issue-1549
Fix the operator list deallocation
2012-04-17 09:02:47 -07:00
Yury Delendik
cff6c8db08 skip cached objects and has consistent font ids 2012-04-16 21:42:05 -05:00
Yury Delendik
b6edbb38c1 Fixes content stream reset; terminating rendering when destroyed 2012-04-16 16:46:26 -05:00
Yury Delendik
32684fe324 Change render status logic 2012-04-16 16:19:45 -05:00
Yury Delendik
0380d408e0 Fixes comment 2012-04-16 15:28:34 -05:00
Yury Delendik
f701a1427a Remove operatorList cache from the backend 2012-04-16 15:23:24 -05:00
Yury Delendik
357805696b Fixing concurrency and test driver 2012-04-16 14:49:55 -05:00
Yury Delendik
1e96c73207 Fixing concurent draw page requests for de-allocation 2012-04-16 14:13:41 -05:00
Yury Delendik
08830731c0 Fix the operator list deallocation 2012-04-16 13:38:27 -05:00
Brendan Dahl
32b7eba6de Add RL abbreviation for run length decode. 2012-04-16 11:35:42 -07:00
Brendan Dahl
4616ee0ee8 Show error on JBIG2 images. 2012-04-16 11:34:00 -07:00
Brendan Dahl
04c8d1454d Add Util functions to PDFJS. 2012-04-16 09:45:49 -07:00
Yury Delendik
12b0282836 Remove debug code 2012-04-14 17:57:14 -05:00
Yury Delendik
6bf640260f Fix jsdoc comment; remove resources dict from type3 properties 2012-04-14 17:52:49 -07:00
Yury Delendik
4953e0fecc Merge branch 'api' of git://github.com/mozilla/pdf.js.git into api 2012-04-14 13:56:57 -07:00
Yury Delendik
42911f1fc9 Async getAnnotations(); hide map and xref for Dict 2012-04-14 13:54:31 -07:00
Brendan Dahl
c207d4a7d6 Add docs to API. 2012-04-13 09:25:08 -07:00
Yury Delendik
dee158d80c Fix title info for PDF document 2012-04-12 15:56:17 -07:00
Yury Delendik
f955befc4b Merge pull request #1532 from brendandahl/api
Fix page error handling.
2012-04-12 15:17:33 -07:00
Yury Delendik
eba8f5a22c Fix finger print, remove unused code 2012-04-12 15:14:18 -07:00
Brendan Dahl
23df48bf0e Fix page error handling. 2012-04-12 15:14:18 -07:00
Brendan Dahl
c02b18b5e8 Merge upstream. 2012-04-12 14:11:22 -07:00
Brendan Dahl
07fc34551d Minor clean up. 2012-04-12 14:07:11 -07:00
Yury Delendik
494fd1ccf9 Fixes make files, removes stats from backend, stepper 2012-04-12 14:02:47 -07:00
Brendan Dahl
7c35f10af8 Fix thumbnail view. 2012-04-12 13:04:03 -07:00
Brendan Dahl
2c49cab3a1 Fixing names. 2012-04-12 12:11:22 -07:00
Yury Delendik
f0687c4d50 Refactor pageNumber/pageIndex concept 2012-04-12 10:01:07 -07:00
Yury Delendik
b312719d7e Fixes test driver and examples 2012-04-12 08:23:38 -07:00
Brendan Dahl
5608f8e445 Test refactoring for async api. 2012-04-11 18:05:43 -07:00
Yury Delendik
3b83a42a91 Outline fix, destroy, and linting 2012-04-11 17:09:55 -07:00
Brendan Dahl
fd58f04117 Refactor API to be async. 2012-04-11 16:47:42 -07:00
Yury Delendik
73cab9c302 Initial API refectoring 2012-04-11 15:52:15 -07:00
Yury Delendik
d61c4f07f8 Initial view bug and rename viewport function 2012-04-11 10:18:29 -07:00
Yury Delendik
2f4423cffb Fixing zoom and rotate issues 2012-04-11 09:42:41 -07:00
Yury Delendik
82dd32e807 Merge branch 'api' of git://github.com/mozilla/pdf.js.git into remove-rotatept 2012-04-11 08:30:24 -07:00
Yury Delendik
47c43b5779 Removing the rotatePoint, width, height from the API 2012-04-11 08:29:44 -07:00
Brendan Dahl
fbd9fcd8fb Fix fingerprint name. 2012-04-10 12:17:43 -07:00
Yury Delendik
737ed84174 Initial API implementation 2012-04-09 22:20:57 -07:00
Julian Viereck
c9fb5637c3 Extract one page after the other and not all pages at once 2012-04-08 16:18:43 -07:00
Julian Viereck
3c77291013 Merge text search with current master 2012-04-08 08:57:55 -07:00
Yury Delendik
be6ccdca34 Rebuilding invalid OS/2 table 2012-04-06 15:52:57 -07:00
Brendan Dahl
2e92c0ea08 Merge pull request #1494 from yurydelendik/convert-docinfo
Convert Unicode strings in the document info
2012-04-05 16:15:31 -07:00
Yury Delendik
b10d7fceb8 Merge pull request #1443 from brendandahl/gradientfix
Fix gradients for fill and stroke.
2012-04-05 16:14:55 -07:00
Brendan Dahl
449d7105c6 Merge pull request #1486 from yurydelendik/issue-1466
Improving invalid operations syntax recovery (#1466)
2012-04-05 15:39:47 -07:00
Brendan Dahl
4984ca9894 Fix lint. 2012-04-05 15:33:00 -07:00
Brendan Dahl
dd319995e1 Merge pull request #1484 from yurydelendik/issue-1462
Removing double-entry for 'space' for standard encodings
2012-04-05 15:28:30 -07:00
Brendan Dahl
fece736b8a Merge upstream. 2012-04-05 12:46:23 -07:00
Yury Delendik
5dd4c0278d Merge remote-tracking branch 'mozilla/master' into convert-docinfo
Conflicts:
	src/core.js
2012-04-05 11:34:55 -05:00
Yury Delendik
08a241fc4b Convert Unicode strings in the document info (#1458) 2012-04-05 10:40:37 -05:00
Yury Delendik
8ee1f96b19 Fix the merge 2012-04-05 10:12:48 -05:00
Yury Delendik
cea388201d Merge remote-tracking branch 'mozilla/master' into mergexref-1
Conflicts:
	src/core.js
	src/evaluator.js
	src/obj.js
2012-04-05 10:03:49 -05:00
Kalervo Kujala
5083774a8c Fix lint warnings in fonts.js. 2012-04-05 07:37:04 +03:00
Brendan Dahl
cee2f73ca9 Fix table of contents. 2012-04-04 15:29:50 -07:00
Kalervo Kujala
8fd04e7daa Correct Type1 class method names. 2012-04-05 00:14:47 +03:00
Kalervo Kujala
99440ab691 Refactor class method names.
Also move functionality to more logical place in canvas.js and jpx.js.
2012-04-04 23:43:26 +03:00
Brendan Dahl
82a95d8bde Merge branch 'master' of https://github.com/mozilla/pdf.js into xrefdict 2012-04-04 11:45:04 -07:00
Brendan Dahl
8a45177be0 Make Dict handle all the fetching of Refs. 2012-04-04 11:43:04 -07:00
Yury Delendik
0ca4ca6077 Improving invalid operations syntax recovery (#1466) (see also #589) 2012-04-04 11:50:20 -05:00
Yury Delendik
b3bcd7370c Removing double-entry for 'space' for standard encodings 2012-04-04 09:48:33 -05:00
notmasteryet
512997a5af Merge pull request #1457 from gigaherz/closure-compiler
Fixes to allow compiling with Closure Compiler
2012-03-31 14:42:15 -07:00
notmasteryet
fed4cb194e Merge pull request #1448 from brendandahl/fdselectorder
Fix cff regression.
2012-03-31 07:55:01 -07:00
gigaherz
9abbce021f Undo comment changes. 2012-03-30 23:28:11 +02:00
gigaherz
c6d7e654ee Replace variables named 'char'=>'character', 'byte'=>'octet' and field '.private'=>'.privateData'. This allows pdf.js to compile with Google's Closure Compiler. 2012-03-30 23:17:04 +02:00
Brendan Dahl
c7bd123bab Merge pull request #1417 from notmasteryet/issue-1395
Don't print missing symbols in the font
2012-03-30 12:25:36 -07:00
Brendan Dahl
8c5d33c86b Fix cff regression. 2012-03-29 15:37:40 -07:00
Brendan Dahl
7008d07fde Fix gradients for fill and stroke. 2012-03-29 08:53:51 -07:00
Brendan Dahl
afebc33142 Merge pull request #1413 from saebekassebil/metadata
Metadata Parsing - Setting proper document title
2012-03-28 12:02:16 -07:00
Saebekassebil
e9b5205612 File header 2012-03-28 20:09:03 +02:00
Saebekassebil
10fb0dc383 Use strict and expose in build version 2012-03-28 20:07:37 +02:00
Saebekassebil
1181ef2778 Fix throwing errors 2012-03-28 19:15:59 +02:00
Saebekassebil
89c1873fd8 more one-line fixes 2012-03-27 22:37:02 +02:00
Saebekassebil
e6277784f1 fix to follow syntax style guidelines 2012-03-27 22:32:35 +02:00
Kalervo Kujala
a84fbb9eb2 Fix a couple of closure names. 2012-03-27 14:27:49 +03:00
notmasteryet
19bc96a617 Merge pull request #1406 from 'bdahl/string_fontname'
Fix string font names.
2012-03-26 21:17:16 -05:00
Brendan Dahl
d9bb76d54c Merge pull request #1418 from notmasteryet/truetype-enc-2
Checking if it's a true symbolic truetype font
2012-03-26 17:12:16 -07:00
Saebekassebil
e283a60d7b return and shadow for getDocumentInfo 2012-03-27 00:16:16 +02:00
Saebekassebil
4703a6cfcd refactor getFingerprint 2012-03-27 00:14:59 +02:00
Saebekassebil
94a1558843 refactor and shadow 2012-03-27 00:05:14 +02:00
Saebekassebil
edc1694620 Now also fetch 'Document Info Dictionary', and expose 'raw' metadata attributes 2012-03-26 23:48:04 +02:00
notmasteryet
851220074d Checking if it's a true symbolic truetype font 2012-03-25 16:30:44 -05:00
notmasteryet
bcdf7b46c5 Fixing advance after disabled symbols 2012-03-25 14:31:28 -05:00
notmasteryet
72355121a0 Don't print missing symbols in the font 2012-03-25 14:15:40 -05:00
Saebekassebil
efa89ba41a Fix issue #1302 2012-03-25 13:00:43 +02:00
Saebekassebil
ab198e89cc Typo from git'ing around 2012-03-24 23:39:03 +01:00
Saebekassebil
9dbcc74d41 lint.. 2012-03-24 20:02:20 +01:00
Saebekassebil
20dd225e40 Metadata parsing/serialization 2012-03-24 19:59:51 +01:00
notmasteryet
32eb64389e Merge pull request #1382 from kkujala/master
Use [] instead of new Array(...).
2012-03-24 10:00:46 -07:00
Brendan Dahl
25c0bfaa79 Merge pull request #1361 from notmasteryet/truetype-enc-1
Fixes TrueType cmap re-encoding
2012-03-22 11:49:16 -07:00
Kalervo Kujala
8e060bdbca Use [] instead of new Array(...). 2012-03-22 15:15:27 +02:00
Brendan Dahl
2d7e1d6346 Merge upstream. 2012-03-21 16:13:24 -07:00
Brendan Dahl
37fef69e5e Remove slice. 2012-03-21 16:03:17 -07:00
Kalervo Kujala
ed2bcf0ffa Add protection against malicious code in font loader. 2012-03-20 17:57:38 +02:00
Kalervo Kujala
eb4ec7899a Remove unreachable logic after error(...) is called.
The function error(...) always throws so there is no need to return separately
or have an else branch.
2012-03-20 14:16:48 +02:00
Brendan Dahl
52a4bcbd4f Merge upstream. 2012-03-19 10:45:53 -07:00
Brendan Dahl
6f5baaa60b Fix names, remove debug function. 2012-03-19 10:41:13 -07:00
Brendan Dahl
cdbbd76594 Merge pull request #1359 from notmasteryet/issue-1357
Add 'Indexed' colorspace abbreviation
2012-03-19 09:34:28 -07:00
Artur Adib
0c258ae7a8 Merge pull request #1259 from jviereck/worker_cleanup
Worker cleanup
2012-03-19 09:10:21 -07:00
Brendan Dahl
c0b9b8928b Merge branch 'master' of https://github.com/mozilla/pdf.js into string_fontname 2012-03-18 19:57:28 -07:00
Kalervo Kujala
2fb6e413db Separate return statement from function for clarity in bidi.js.
This fixes also JSlint warning.
2012-03-18 22:56:03 +02:00
notmasteryet
73c9f8797b Add missing .link files; minor fix 2012-03-17 23:22:42 -05:00
notmasteryet
a66b1a7ad3 Fix unicode re-assignment; MacRomanEncoding detection 2012-03-17 23:05:22 -05:00
notmasteryet
29fb446a38 Merge pull request #1351 from jviereck/canvas_draw_time
Change the kExecutionTime value to 15.
2012-03-17 15:48:16 -07:00
notmasteryet
1f0af7c476 Add 'Indexed' cs abbreviation 2012-03-17 17:35:04 -05:00
Brendan Dahl
c4c923bdcf Fix string font names. 2012-03-16 11:58:23 -07:00
Brendan Dahl
2c5de00ef3 Merge pull request #1346 from notmasteryet/verifyname-2
Verify the names parameter in fontLoaderPrepareFontLoadEvent
2012-03-16 10:48:57 -07:00
Julian Viereck
25cfebfd71 Change the kExecutionTime value to 15. In theory, this should give 60FPS rendering. 2012-03-16 15:08:50 +01:00
Julian Viereck
b22bfad5ec Fix after rebase 2012-03-16 15:02:17 +01:00
Julian Viereck
7ddce7f586 Use singular form for charProcOperatorList - hopefully fixes breakage 2012-03-16 14:58:53 +01:00
Julian Viereck
fd2ab059d3 Rename IRQueue and codeIR -> operatorList 2012-03-16 14:58:53 +01:00
Julian Viereck
f80fd13fe5 new ScratchCanvas -> createScratchCanvas and fix linting 2012-03-16 14:56:43 +01:00
Julian Viereck
261ff39f6d Remove suffix _IR 2012-03-16 14:56:43 +01:00
Julian Viereck
8325d37f9d No need to store ScratchCanvas on CanvasGraphics 2012-03-16 14:56:43 +01:00
Julian Viereck
1c87b63124 Cleanup the way getIRQueue is called (no need to pass in a queue object in most cases anymore) 2012-03-16 14:56:43 +01:00
Julian Viereck
c57349a927 Remove TODO on PDFDocModel and rename pdf to pdfModel 2012-03-16 14:54:10 +01:00
Julian Viereck
889d6d100a Cleanup font loading. 2012-03-16 14:54:10 +01:00
Bernerd Schaefer
31839d8c78 Change bidi.js file format to unix
This gets rid of all the `^M` control characters when viewed with vim.
2012-03-16 11:27:09 +01:00
notmasteryet
2508d2c12b Verify the names parameter 2012-03-15 21:25:19 -05:00
notmasteryet
6051720ecb Merge pull request #1335 from mrqzzz/master
Re-Fixed code (Lint friendly)
2012-03-15 16:26:07 -07:00
theredspatula
6f61b52943 Line 405 : 'errorback' should have been 'errback' 2012-03-15 11:59:32 -07:00
Marcus Oblak
7ec282cbb0 Re-Fixed Formatting (Lint friendly) 2012-03-14 21:58:22 +01:00
notmasteryet
19b670458e Remove empty gryphs; improve glyph unicode movements 2012-03-13 18:59:16 -05:00
Marcus Oblak
2fbfed476e Fixed code formatting. 2012-03-13 22:25:39 +01:00
mrqzzz
d6cb3cbbd7 Handled case where var "outlineDict" was null (in certain PDFs). Handled
case where var "e" was null in "function xRefGetEntry" (in certain PDFs)
2012-03-13 16:52:55 +01:00
Artur Adib
6833f64db3 Merge pull request #1067 from brendandahl/stats
Start of the benchmark recording framework.
2012-03-13 06:04:48 -07:00
Brendan Dahl
084a8bca03 Add function for checking url. 2012-03-12 16:31:49 -07:00
Brendan Dahl
41557d62c0 Merge branch 'master' of https://github.com/mozilla/pdf.js into stats 2012-03-12 13:23:33 -07:00
Brendan Dahl
387a56fd2c Sanitize pdf link urls. 2012-03-12 12:00:30 -07:00
Brendan Dahl
adee28b2ec Fix font matrix. 2012-03-11 18:21:38 -07:00
Brendan Dahl
cca0241532 Slight rename. 2012-03-10 19:37:22 -08:00
Brendan Dahl
4a50e06e85 Merge branch 'master' of https://github.com/mozilla/pdf.js into cff 2012-03-10 19:22:02 -08:00
Brendan Dahl
ce53b1b018 CFF Parser and Compiler. 2012-03-10 19:12:33 -08:00
Brendan Dahl
35c9a9ac47 Merge pull request #1296 from notmasteryet/issue-1284
Move CustomStyle object
2012-03-05 13:01:16 -08:00
notmasteryet
b870cbad0f Move custom style 2012-03-02 07:11:24 -06:00
notmasteryet
ab3107e8e0 Optimization 2012-03-01 22:01:39 -06:00
notmasteryet
38e3f32557 Add and fix pdfkit_compressed.pdf 2012-03-01 21:23:36 -06:00
notmasteryet
83860bf281 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into tree-84 2012-03-01 18:36:03 -06:00
notmasteryet
8cb8de3092 Lint error 2012-02-29 22:57:54 -06:00
notmasteryet
a6b9efc06b Re-encode cmap based on post table or current encoding; fix GlyphsUnicode table entries 2012-02-29 22:11:32 -06:00
Artur Adib
5e5522e808 Merge pull request #1289 from notmasteryet/cap1
Fixes cap1 statement
2012-02-29 18:38:27 -08:00
notmasteryet
2cc89735ae Fixing cap1 statement 2012-02-29 18:31:03 -06:00
Artur Adib
d09c0fbfd3 Merge pull request #1252 from notmasteryet/issue-1249
Check if glyphs are stored outside the glyf table
2012-02-29 10:43:45 -08:00
Brendan Dahl
d0143cc289 Fix missing bidi for extension. 2012-02-23 09:21:35 -08:00
Artur Adib
676e575a52 Merge pull request #1218 from mozilla/bidi
bidi characters algorithm; separation of the toFontChar and toUnicode
2012-02-23 07:00:48 -08:00
notmasteryet
3b29736882 create bidi closure 2012-02-22 18:26:43 -06:00
notmasteryet
e8ca7b44d9 Fixing review nits; moving small functions inside bidi 2012-02-22 17:56:47 -06:00
Artur Adib
92e2723cbc Merge pull request #1199 from notmasteryet/tree-72
Remove lazy encoding initialization
2012-02-22 13:52:06 -08:00
notmasteryet
31d8d13ba2 Fix merge with symbol font fix (part 2) 2012-02-21 19:56:35 -06:00
Brendan Dahl
1703e33cfe Merge pull request #1246 from notmasteryet/issue-1222
Relax EI search for inline images
2012-02-21 17:56:25 -08:00
notmasteryet
7cad586e63 Fix merge with symbol font fix 2012-02-21 18:27:31 -06:00
notmasteryet
a8cdbcf315 Merge remote-tracking branch 'mozilla/master' into bidi
Conflicts:
	src/fonts.js
2012-02-21 18:23:00 -06:00
Brendan Dahl
f45f87b70b Merge pull request #1242 from notmasteryet/bad-jpx-1
Recovering from the bad JPX images (#1145)
2012-02-21 11:39:58 -08:00
Brendan Dahl
884ea5f028 Merge pull request #1244 from notmasteryet/issue-1243
Sets proper unicode range for symbols; sanitize no-glyphs fonts
2012-02-21 11:37:56 -08:00
Brendan Dahl
e07505ff8d Update stats to use the new pdfBug panel. 2012-02-21 09:52:09 -08:00
Brendan Dahl
de18d1623b Merge branch 'master' of https://github.com/mozilla/pdf.js into stats 2012-02-20 19:37:18 -08:00
Brendan Dahl
b9cd526a35 Remove bad chars instead of replaces all. 2012-02-20 15:49:45 -08:00
notmasteryet
a46a684935 Moving all symbolic font glyphs into 0xF000 - 0xF0FF range 2012-02-20 17:19:12 -06:00
notmasteryet
26b58c0e4f Properly build toFontChar 2012-02-20 14:26:30 -06:00
notmasteryet
b4e3554af2 Remove debug code 2012-02-20 13:00:45 -06:00
notmasteryet
28b4dac2d8 Merge remote-tracking branch 'mozilla/master' into bidi
Conflicts:
	web/viewer.html
2012-02-20 12:41:19 -06:00
Brendan Dahl
b6e4fc771f Fix bad chars in Type2CFF font names. 2012-02-19 22:12:22 -08:00
notmasteryet
8f3b198c23 Check if glyph are stored outside the glyf table 2012-02-19 20:12:57 -06:00
notmasteryet
c68dbd777e Relax EI search for inline images 2012-02-18 20:20:25 -06:00
notmasteryet
2703f3f692 Fixing first glyph index 2012-02-18 19:18:54 -06:00
notmasteryet
5efccea2af Using the first glyph code to detect the base glyph offset. 2012-02-18 16:45:47 -06:00
notmasteryet
321750bba6 Sets proper unicode range for symbols; sanitize no-glyphs fonts 2012-02-18 15:01:53 -06:00
notmasteryet
2fa6e025f2 Recovering from the bad JPX images (#1145) 2012-02-18 10:50:02 -06:00
notmasteryet
fcffbc3804 Fix Line 648, E:0001: Extra space after "]" 2012-02-17 17:35:48 -06:00
Artur Adib
dd53edffad Merge pull request #1226 from notmasteryet/tree-80
Rewrite predictor code to avoid writing into subarrays.
2012-02-17 07:56:02 -08:00
Brendan Dahl
5e818ce04f Merge branch 'master' of https://github.com/mozilla/pdf.js into stats 2012-02-16 18:47:00 -08:00
Artur Adib
1b0bf24322 Merge pull request #1211 from brendandahl/debugger2
Debugging Tools
2012-02-16 11:14:05 -08:00
notmasteryet
4e967b201d Merge pull request #1212 from arturadib/issue-1155
Fixes #1155: intersection of CropBox and MediaBox
2012-02-16 09:04:21 -08:00
Artur Adib
9cf9c36227 Addressing reviewer comments 2012-02-16 12:02:18 -05:00
notmasteryet
b73cf1b3c2 Rewrite predictor code to avoid writing into subarrays. 2012-02-15 18:40:41 -06:00
Brendan Dahl
f17a1679eb Move debugger to the web folder. 2012-02-15 14:55:16 -08:00
Brendan Dahl
45e3db77f2 Fix the font inspector. 2012-02-15 14:38:18 -08:00
Brendan Dahl
c04ab5fe45 Change name of debugger to stepper. 2012-02-15 14:12:58 -08:00
Brendan Dahl
f54486d8c8 Change how the tools are enabled. 2012-02-15 13:13:07 -08:00
Brendan Dahl
0175f53637 Merge upstream. 2012-02-15 12:56:05 -08:00
Brendan Dahl
c440dfeee0 Merge pull request #1203 from notmasteryet/glyf-sanitize
Sanitizing the font glyphs to avoid OTS rejections
2012-02-15 12:08:05 -08:00
notmasteryet
6c7e7df6da linting 2012-02-14 23:06:16 -06:00
notmasteryet
16bd59edf0 Separating fontChar and unicode 2012-02-14 23:00:09 -06:00
notmasteryet
2f98d18dc1 Not relying on the xref in the parser 2012-02-14 20:19:43 -06:00
notmasteryet
8c727860dd Fixing getting of the "Filter" attribute 2012-02-14 18:38:56 -06:00
Artur Adib
048e40b869 Fixes #1155 2012-02-14 14:48:58 -05:00