Brendan Dahl
18d8557abd
Merge pull request #3875 from yurydelendik/issue3025
...
Removes duplicate entries after reading cmap table
2013-11-07 12:29:25 -08:00
Brendan Dahl
90fb92d1fc
Merge pull request #3869 from yurydelendik/symbolenc
...
Renames Symbol encoding name.
2013-11-06 11:15:08 -08:00
Brendan Dahl
c8e021dfa6
Merge pull request #3867 from yurydelendik/pfb
...
Workaround for some bad Type1 data
2013-11-06 11:14:42 -08:00
Jonas Jenwald
4ae3802484
Fix undefined group bounding box
2013-11-04 18:16:33 +01:00
Yury Delendik
175341cb0d
Resizes loca table when needed
2013-11-03 07:29:29 -06:00
Yury Delendik
cf55d69c38
Fixes invalid maxZones value
2013-11-02 18:16:24 -05:00
Yury Delendik
93076ced03
Ignoring glyphs without points
2013-11-02 17:07:13 -05:00
Yury Delendik
bbda42110b
Skipping empty font tables
2013-11-01 19:05:17 -05:00
Yury Delendik
bb2570c9c1
Removes duplicate entries after reading cmap table
2013-11-01 16:30:28 -05:00
Yury Delendik
cd44093891
Workaround for some bad Type1 data
2013-11-01 13:58:33 -05:00
Yury Delendik
95d9107d8b
Fixes reading Type1 FontBBox data for usWin values
2013-11-01 11:33:30 -05:00
Brendan Dahl
b34c6a4e02
Merge pull request #3861 from yurydelendik/pc-undef
...
Avoiding 'pc is undefined' failures
2013-10-31 16:23:35 -07:00
Yury Delendik
104d89856d
Renames Symbol encoding name.
2013-10-31 10:33:23 -05:00
Brendan Dahl
f7b2b2e1f2
Merge pull request #3760 from jribbens/patch-1
...
Fix bug in api.js whereby fake workers didn't load the worker code
2013-10-30 10:47:38 -07:00
Brendan Dahl
f72fad9a1a
Merge pull request #3744 from Snuffleupagus/enable-www-links
...
Enable links beginning with 'www.' even if no protocol is specified
2013-10-30 10:32:22 -07:00
Yury Delendik
83e17c2953
Avoiding 'pc is undefined' failures
2013-10-30 11:14:13 -05:00
Yury Delendik
19485c34c8
Merge pull request #3798 from brendandahl/intersect-bbox
...
Intersect group bounding box with the current canvas dimensions.
2013-10-25 13:42:56 -07:00
Brendan Dahl
d86c7e3ebf
Merge pull request #3577 from kkujala/calgray
...
Implement initial CalGray support
2013-10-16 14:00:41 -07:00
Brendan Dahl
29269748c3
Merge pull request #3554 from fkaelberer/FasterJPXdecoding
...
Speed up JPX decoding on Firefox
2013-10-16 11:37:47 -07:00
Tim van der Meij
4fe1e41c35
Minor nit fixes for api.js
2013-10-16 12:07:27 +02:00
fkaelberer
f6841d1720
extract code to own method for faster JPX decoding
2013-10-16 09:47:03 +02:00
Jonas Jenwald
fb52144cfb
Enable links beginning with 'www.' even if no protocol is specified
2013-10-16 00:12:23 +02:00
Brendan Dahl
7ebec6c5a4
Add missing jsdocs for PDFJS globals.
2013-10-15 13:41:49 -07:00
Kalervo Kujala
a5bf02573d
Implement initial CalGray support
...
Gamma and Whitepoint are supported in this patch for CalGray.
Blackpoint is not supported.
2013-10-13 19:55:42 +03:00
Tim van der Meij
b9bceb4c4b
Merge pull request #3764 from saebekassebil/fingerprint
...
Simplify get fingerprint() method
2013-10-11 11:55:37 -07:00
Brendan Dahl
29b89f1f1e
Intersect group bounding box with the current canvas dimensions.
2013-10-10 12:41:11 -07:00
Brendan Dahl
6d1533293e
Merge pull request #3416 from peerlibrary/noHTMLElement
...
instanceof HTMLElement does not work in jsdom node.js module.
2013-10-08 10:15:00 -07:00
Jakob Miland
c341dd57e5
Simplify get fingerprint() method
2013-10-03 10:09:06 +02:00
Yury Delendik
e97e0032df
Merge pull request #3750 from brendandahl/cidfonttype0c
...
Proper glyph selection for CIDFontType0C fonts.
2013-10-02 15:49:52 -07:00
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.
2013-10-02 17:22:33 +01:00
Brendan Dahl
f79c182314
Proper glyph selection for CIDFontType0C fonts.
2013-09-30 21:40:28 -07:00
Sriram
f6eee819e2
Transposed feature for text decoding in jbig2
2013-09-26 20:49:02 +02:00
Yury Delendik
1c7f1cee00
Merge pull request #3674 from brendandahl/cmap-squash
...
Read multi-byte character codes based on codespace ranges.
2013-09-25 18:04:49 -07:00
biggert
fb957f5c6e
Prevent undefined error on null object when calling .destroy on a
...
document initialized with LocalPdfManager.
Per @brendandahl's recommendation, moved the terminate function out of worker
and into the PdfManager
2013-09-25 16:25:41 -05:00
Brendan Dahl
f32e65b19f
Read multi-byte character codes based on codespace ranges.
2013-09-25 10:32:04 -07:00
Manas
de179e3d9b
Trying to fix #3611
2013-09-24 22:54:27 +05:30
Srishti
3808d02a53
implementing transform matrix to getTextContent
2013-09-20 06:37:08 +05:30
Mitar
940c77f6c9
instanceof HTMLElement does not work in jsdom node.js module.
2013-09-10 19:50:06 -07:00
Tim van der Meij
48a24a48c1
Fixing annotation icon issues
2013-09-06 21:00:02 +02:00
Tim van der Meij
14912b5a03
Annotation selection
2013-09-05 23:19:04 +02:00
Yury Delendik
8a4a6f498f
Merge pull request #3553 from yurydelendik/reduce-scratch-canvases
...
Reduce max size for pattern and limit group canvases
2013-08-30 18:02:15 -07:00
Yury Delendik
0fc8bac7c0
Merge pull request #3570 from brendandahl/encoding-wip
...
Fix handling of multiply-encoded glyphs.
2013-08-28 13:51:39 -07:00
biggert
88f1506ef8
Added support for JBIG2 extension segment
2013-08-26 15:39:30 -05:00
Brendan Dahl
547a7aa862
Merge pull request #3615 from yurydelendik/stopindexing
...
Stops objects indexing at the end
2013-08-26 10:33:54 -07:00
Yury Delendik
1de48f1805
Merge pull request #3595 from brendandahl/fix-clip
...
Move the creation of canvas path fonts to the worker.
2013-08-26 06:48:05 -07:00
Yury Delendik
1f232ded90
Stops objects indexing at the end
2013-08-23 13:03:30 -05:00
Brendan Dahl
60586e3101
Ensure there's data to build path.
2013-08-22 12:55:43 -07:00
Brendan Dahl
feafb394d6
Use text widget annotation appearance stream if it is available.
2013-08-22 12:29:06 -07:00
Brendan Dahl
db591769a4
Fix handling of multiply-encoded glyphs.
2013-08-22 10:12:16 -07:00
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
2013-08-19 16:33:20 -07:00
Brendan Dahl
695e92cc00
Merge pull request #3532 from yurydelendik/telem-1
...
Adds initial telemetry probes
2013-08-19 12:34:27 -07:00
Brendan Dahl
88557041e0
Merge pull request #3583 from yurydelendik/workerSrc
...
Specifies default workerSrc
2013-08-16 13:27:58 -07:00
Yury Delendik
b1c2c6b8c1
Merge pull request #3576 from Snuffleupagus/undefined-stream-length
...
Enable loading of PDFs with undefined or missing stream lengths
2013-08-16 11:14:35 -07:00
Yury Delendik
3f530c43a9
Specifies default workerSrc (if possible)
2013-08-16 11:33:54 -05:00
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
2013-08-16 09:53:05 -05:00
Yury Delendik
b8143b394c
Reduce max size for pattern and limit group canvases
2013-08-16 09:50:48 -05:00
Jonas
628f4aaf81
Enable loading of PDFs with undefined or missing stream lengths
2013-08-16 16:32:40 +02:00
Yury Delendik
cb59b31927
IE9 does not need onreadystatechange
2013-08-16 09:19:42 -05:00
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
2013-08-12 10:48:06 -07:00
Yury Delendik
e5cd027dce
Merge pull request #3557 from timvandermeij/named-actions
...
Named actions implementation
2013-08-11 19:06:31 -07:00
Tim van der Meij
b2b922b866
Support for CMap GBKp-EUC-H
2013-08-11 10:35:56 +02:00
Tim van der Meij
75035a2970
Named actions implementation
2013-08-08 21:59:59 +02:00
Jonas
d90ad429f6
Enable loading of PDFs with invalid document information dictionaries
2013-08-08 19:40:54 +02:00
Yury Delendik
99db7a8dbc
Merge pull request #3520 from brendandahl/single-cs
...
Create only one instance of each device colorspace.
2013-08-07 11:37:49 -07:00
Yury Delendik
44184a1d5b
Merge pull request #3549 from brendandahl/uhandled-stack
...
Dump the stack with unhandled rejections.
2013-08-07 07:05:39 -07:00
Brendan Dahl
5afef1874c
Fix destroy logic for when there are multiple render requests.
2013-08-06 17:35:54 -07:00
Yury Delendik
6736cca8c4
Merge pull request #3542 from fkaelberer/FasterJBIG2decode
...
Faster JBIG2 decoding for Firefox
2013-08-06 13:08:19 -07:00
Brendan Dahl
97a40252dc
Dump the stack with unhandled rejections.
2013-08-06 11:40:35 -07:00
Yury Delendik
b946762e6f
Merge pull request #3539 from Snuffleupagus/issue-3538
...
Prevent link borders from being drawn if their width is undefined
2013-08-06 11:27:42 -07:00
Brendan Dahl
d85e38d629
Fix intermittent blank page on fast zoom.
2013-08-05 16:34:57 -07:00
Jonas
688cea0758
Prevent link borders from being drawn if their width is undefined
2013-08-04 23:41:52 +02:00
fkaelberer
0c10b76aa3
Faster JBIG2 decoding for Firefox
2013-08-04 00:42:37 +02:00
Brendan Dahl
efa8f561a5
Move chars to glyphs conversion to the worker.
2013-07-31 14:01:55 -07:00
Yury Delendik
8d386a5368
Merge pull request #3461 from brendandahl/incremental-rendering2
...
Incrementally render by sending the operator list by chunks as they're ready.
2013-07-31 13:46:31 -07:00
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
2013-07-31 11:17:36 -07:00
Yury Delendik
41c7c6f351
Fixing CFF checksum for test font
2013-07-31 10:40:51 -05:00
Brendan Dahl
55d6ede1da
Create only one instance of each device colorspace.
2013-07-30 15:35:35 -07:00
Yury Delendik
f7d2a09bf8
Merge pull request #3506 from brendandahl/base-transform
...
Paint patterns relative to content base transformation.
2013-07-30 14:54:36 -07:00
Yury Delendik
34177b01a4
Fixes glyph 0 in CIDTypeFont2
2013-07-29 15:24:32 -05:00
Brendan Dahl
2aecbe874e
Paint patterns relative to content base transformation.
2013-07-22 14:52:44 -07:00
Yury Delendik
95bb727931
Merge pull request #3494 from SSk123/master
...
Fixing the offset of vertical CJK text
2013-07-20 10:26:13 -07:00
Srishti
6c3e5e5d92
Fixing the offset of vertical CJK text
2013-07-20 20:56:33 +05:30
Yury Delendik
0dd0e2ee64
Merge pull request #3477 from brendandahl/font-loading
...
Use dummy font for testing when pdf fonts are loaded.
2013-07-18 07:01:55 -07:00
Brendan Dahl
a5cc8d1ec3
Merge pull request #3464 from yurydelendik/bug889327
...
Fixes ASCIIHex decoding
2013-07-16 10:32:35 -07:00
Brendan Dahl
f04dbcaf2e
Use dummy font for testing when pdf fonts are loaded.
2013-07-15 15:37:03 -07:00
Brendan Dahl
6c6719efeb
Merge pull request #3436 from yurydelendik/jpeg-cmyk
...
Removes browser decoding optimization for JPEG CMYK
2013-07-12 17:54:12 -07:00
Yury Delendik
28778e6c1b
Rejects incorrect url in download manager
2013-07-12 13:38:49 -05:00
Brendan Dahl
077f08fa6d
Merge pull request #3456 from brendandahl/cap-image-size
...
Limit image size to 1024*1024 for b2g.
2013-07-11 11:44:51 -07:00
Yury Delendik
8ee9db45ef
Fixes ASCIIHex decoding
2013-07-11 13:33:29 -05:00
Brendan Dahl
5dcc4cd1b4
Merge pull request #3424 from yurydelendik/lookChar
...
lookChar refactoring
2013-07-11 09:08:59 -07:00
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
2013-07-10 09:52:37 -07:00
Brendan Dahl
d71948038f
Merge pull request #3439 from yurydelendik/smask-preblend
...
Takes SMask's preblending in account
2013-07-09 13:26:44 -07:00
Yury Delendik
e67b9a7f17
Merge pull request #3441 from brendandahl/less-cache
...
Remove caching of stream data and fix object loader for streams.
2013-07-09 13:01:54 -07:00
Rob Wu
cc04cf5d1f
Configurable IMAGE_DIR for annotations
...
The Chrome extension activates PDF.js by inserting the script tags
in a document whose URL and location origin is identical to the PDF
file.
Because of this, the path './images/' was resolved relatively to the
location of the PDF file instead of the extension.
To fix this, the IMAGE_DIR constant is moved outside the local scope,
to allow extensions/chrome/insertviewer.js to override the value.
Originally, the IMAGE_DIR variable was a global variable, but commit
f8f4b3f45d
moved the global variable
to the local scope, causing the extension to malfunction.
Impact: low, the only consequence is that some rarely used images
were not visible.
Trivial test:
At the center of page 2, the annotation icon
(images/annotation-comment.svg) should be visible:
http://linorg.usp.br/CTAN/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
2013-07-09 16:24:25 +02:00
Brendan Dahl
b0f78609b3
Merge pull request #3386 from yurydelendik/ttf-refactor
...
Refactoring of TrueType code and implementation of OpenType font repairing
2013-07-08 22:11:31 -07:00
Yury Delendik
19e8f2f059
lookChar refactoring
2013-07-08 21:25:55 -05:00
Brendan Dahl
09aafa830b
Remove caching of stream data and fix object loader for streams.
2013-07-03 14:29:38 -07:00
Yury Delendik
419bee1314
Takes SMask's preblending in account
2013-07-02 14:27:06 -05:00
Yury Delendik
5e5b66f688
Removes browser decoding optimization for JPEG CMYK
2013-07-02 09:46:14 -05:00
Yury Delendik
3461d02d05
Enforces trailing spaces
2013-07-01 11:25:46 -05:00
Yury Delendik
121c183db1
Fail if other font types are found
2013-07-01 08:53:28 -05:00
Yury Delendik
6dc4b10b40
Implements reparing of CFF table
2013-07-01 08:53:28 -05:00
Yury Delendik
ba87d2fe11
Merge pull request #3373 from SSk123/master
...
rotation causes textLayer to get messed up
2013-06-29 17:24:12 -07:00
Srishti
21a8d62624
Fixes Text rotation issue #2095
2013-06-30 03:52:30 +05:30
Brendan Dahl
4e831233a4
Merge pull request #3408 from brendandahl/fix-multiresolution
...
[B2G] UI tweak for multi-resolution devices support on B2G
2013-06-28 10:11:18 -07:00
Yury Delendik
b421b504c3
Merge pull request #3397 from brendandahl/notdef
...
Fix notdef typo.
2013-06-27 20:18:34 -07:00
Brendan Dahl
f06dadab3b
Merge pull request #3376 from yurydelendik/bad-pdfs
...
Misc fixes for corrupted PDFs
2013-06-27 15:33:06 -07:00
Brendan Dahl
a0528a5ea8
Merge pull request #3375 from yurydelendik/bug867484
...
Fixes missing compressed object detection
2013-06-27 13:36:53 -07:00
Brendan Dahl
07fb66dcb4
Merge pull request #3391 from brendandahl/font-cache
...
Cache fonts by reference.
2013-06-27 13:33:09 -07:00
Brendan Dahl
6d34d422ae
Fix notdef typo.
2013-06-26 09:53:51 -07:00
Yury Delendik
8561d2646b
Merge pull request #3393 from brendandahl/no-resources
...
Handle annotations with no resources.
2013-06-25 16:40:03 -07:00
Brendan Dahl
510387f551
Merge pull request #3378 from yurydelendik/aes-padding
...
Removes AES padding
2013-06-25 15:25:10 -07:00
Brendan Dahl
b22bc2daa5
Merge pull request #3374 from yurydelendik/ei-search
...
Improves search of EI (end of inlined image)
2013-06-25 15:19:41 -07:00
Yury Delendik
c099d6ba94
Removes AES padding
2013-06-25 16:47:44 -05:00
Brendan Dahl
e62ab300f1
Handle annotations with no resources.
2013-06-25 14:22:03 -07:00
Brendan Dahl
a8ad07ccbf
Cache fonts by reference.
2013-06-25 10:33:53 -07:00
Yury Delendik
04a7b036ec
Preserving PDFJS in the generic builds
2013-06-24 20:55:12 -05:00
Yury Delendik
df352b375b
Refactoring TTF repair logic
2013-06-24 17:21:41 -05:00
Jonas
d206a1ccdc
Fix regression from issue 3312
2013-06-24 17:21:12 +02:00
Yury Delendik
004bd848c8
Merge pull request #2956 from vyv03354/cmap4_fpgm
...
Add more sanitizations to TT font programs
2013-06-23 12:33:18 -07:00
Yury Delendik
aac0f80aad
#1277 : ignoring error for bad "empty" block
2013-06-22 14:07:04 -05:00
Yury Delendik
4d9ee7b530
#2098 : scanning for stream length when it's incorrect
2013-06-22 13:21:19 -05:00
Yury Delendik
c3096d98d4
#3248 : fixes hp scanner's bad XRef
2013-06-22 12:06:37 -05:00
Yury Delendik
c3030dee8f
Bug 861638: ignoring double-EI
2013-06-22 11:56:58 -05:00
Yury Delendik
0d229351f3
Bug 874851: ignoring bad stream length
2013-06-22 11:56:57 -05:00
Yury Delendik
23ea9d879d
Show fallback bar on unhandled rejections
2013-06-21 19:13:26 -05:00
Yury Delendik
7bef903411
Fixes missing compressed object detection
2013-06-21 18:04:31 -05:00
Yury Delendik
c68d125f17
Improves search of EI (end of inlined image)
2013-06-21 17:03:03 -05:00
Yury Delendik
df6fd387df
Bug 879211: ignoring bad document outline reference
2013-06-21 15:42:55 -05:00
benbro
ce218d021f
Check that the progressCallback is defined before calling it
2013-06-19 18:25:09 -05:00
Yury Delendik
ee1a4cd449
Merge pull request #3354 from fkaelberer/fasterType3Glyph
...
Faster type3 glyph outlines
2013-06-12 07:04:55 -07:00
fkaelberer
2cdd8de25a
compileType3Glyph cleanup
2013-06-11 21:01:10 +02:00
fkaelberer
220627b135
Faster type3 glyph outlines
2013-06-11 15:40:26 +02:00
Yury Delendik
c19f0c4127
Merge pull request #3343 from brendandahl/remove-timeout
...
Removed unneeded timeout.
2013-06-10 12:48:55 -07:00
Brendan Dahl
7764dd95c0
Remove progress events.
2013-06-06 15:48:54 -07:00
Brendan Dahl
b189749b4a
Removed unneeded timeout.
2013-06-06 09:16:28 -07:00
Brendan Dahl
ae1f973204
Use A+ spec compatible promises.
2013-06-05 12:28:31 -07:00
Brendan Dahl
01ce3d056c
Load all resources before getOperatorList/getTextContent.
2013-06-04 17:57:52 -07:00
benbro
fc7c1fb6fd
Fix check for instanceof Uint8Array in IE9
...
Fix #2687 and #2617
2013-06-05 03:12:30 +03:00
Brendan Dahl
2e130903ef
Merge pull request #3312 from yurydelendik/no-getimagedata
...
Removes getImageData from canvas.js
2013-06-03 10:44:56 -07:00
Yury Delendik
7b6d247fbc
Merge pull request #3314 from brendandahl/annotation-form-tx
...
Annotation form tx
2013-06-01 17:40:33 -07:00
Yury Delendik
339dc65082
Removes getImageData from canvas.js
2013-06-01 08:41:30 -05:00
Brendan Dahl
3b86ebeacb
Merge pull request #3310 from yurydelendik/ignore-bad-downloads
...
Skips failed-to-download tests
2013-05-30 21:47:33 -07:00
Yury Delendik
702da7f3ea
Skips failed-to-download tests
2013-05-30 17:58:48 -05:00
Brendan Dahl
4911c9ee67
Merge pull request #3275 from timvandermeij/lower-warning-to-info
...
Lowering warning to info
2013-05-30 13:42:21 -07:00
Yury Delendik
b281c91c19
Merge pull request #3307 from yurydelendik/annotation-link-border
...
Annotation link border
2013-05-29 20:56:15 -07:00
Yury Delendik
d8e3f1da72
Adds missing link-annotation-border file and lint error
2013-05-29 22:05:53 -05:00
Brendan Dahl
59f2e71738
Merge pull request #3268 from yurydelendik/issue-3207
...
Fixes reading unordered Subrs in Type1
2013-05-29 14:09:13 -07:00
Brendan Dahl
30d55d9c14
Merge pull request #3294 from yurydelendik/status0
...
Allows status be 0 for non-HTTP protocols
2013-05-29 12:15:13 -07:00
Yury Delendik
10ffc8bc99
Merge pull request #3305 from yurydelendik/annotation-clear-state
...
Reset canvas state before drawing annotations
2013-05-29 04:59:40 -07:00
Yury Delendik
234812a807
Fixing appendToOperatorList
2013-05-29 06:23:46 -05:00
Mack Duan
fc5b7dbb1f
Add support for form text annotations
2013-05-28 17:39:23 -05:00
Mack Duan
a394c1bac6
Support borders for link annotations
2013-05-28 17:18:26 -05:00
Yury Delendik
336aa38f4a
Reset canvas state before drawing annotations
...
Conflicts:
src/core.js
2013-05-28 17:12:35 -05:00
Yury Delendik
77e7981c69
Allows status be 0 for non-HTTP protocols
2013-05-22 13:11:50 -05:00
Brendan Dahl
efde079417
Merge pull request #3195 from yurydelendik/no-filltext
...
Drawing without fillText; refactoring ADD_TO_PATH
2013-05-21 16:53:42 -07:00
Brendan Dahl
1fa354d4d9
Merge pull request #3246 from yurydelendik/outline-type3
...
Outlines Type3 glyphs
2013-05-21 13:24:58 -07:00
Yury Delendik
9d588907a9
Outlines type3 glyph
2013-05-20 13:02:04 -05:00
Tim van der Meij
d22ea7edc4
Lowering warning to info
2013-05-17 21:37:20 +02:00
Rex Lee
3e480f84a6
[B2G] UI tweak for multi-resolution devices support on B2G
2013-05-17 17:52:04 +08:00
Yury Delendik
8e298acb67
Fixes reading unordered Subrs in Type1
2013-05-16 11:21:47 -05:00
Yury Delendik
9b4ca246e4
Ensure we don't modify the original PDF data when sanitizing TrueType
2013-05-16 08:56:22 -05:00
Yury Delendik
0e133f0090
Drawing without fillText; refactoring ADD_TO_PATH
2013-05-15 15:57:27 -05:00
Brendan Dahl
5193cf7ef8
Merge pull request #3203 from eug48/master
...
Fix for issue #2881
2013-05-14 15:56:32 -07:00
Yury Delendik
67eb3bbc68
Merge pull request #3239 from brendandahl/scope-fix
...
Bind chunk promises to avoid scope problems.
2013-05-10 10:18:34 -07:00
Brendan Dahl
328cfd0246
Bind chunk promises to avoid scope problems.
2013-05-10 09:45:52 -07:00
eug48
c195daf85e
Remove stream.parameters which wasn't being set consistently. Fixes issue #2881 .
2013-05-10 13:26:28 +10:00
Brendan Dahl
f07564b07f
Merge pull request #3233 from yurydelendik/onpassword
...
Fixes password for range request loading
2013-05-09 17:28:16 -07:00
Yury Delendik
61a7738a5d
Fixes password for range request loading
2013-05-09 19:18:31 -05:00
Brendan Dahl
9d8985f41e
Merge pull request #3209 from yurydelendik/remeasure
...
Forces to measure "standard" fonts
2013-05-09 14:00:09 -07:00
Yury Delendik
09a4352e8c
Rejects loading when data is not available for checkHeader
2013-05-09 10:54:53 -05:00
Yury Delendik
cddb5ea0bb
Merge branch 'fallback-fix'
...
Conflicts:
src/core.js
2013-05-09 08:44:42 -05:00
Yury Delendik
d92c3f8913
Merge pull request #2988 from mduan/annotation-refactor-tx
...
Refactor annotation code
2013-05-09 06:09:14 -07:00
Brendan Dahl
01cdd68799
Merge pull request #3201 from yurydelendik/fillrule
...
Adds fill('evenodd') as alternative for mozFillRule
2013-05-08 13:15:04 -07:00
Brendan Dahl
3dadde52dc
Propagate promise rejections so we show the fallback.
...
-Adds rejection support to Promise.All.
-Makes promise.then() callback optional.
2013-05-08 11:55:29 -07:00
Mack Duan
da2c4d58ec
Do not show appearance stream for text annotations
2013-05-07 22:07:30 -04:00
Mack Duan
f8f4b3f45d
Refactor code for annotations
2013-05-07 14:22:13 -04:00
Yury Delendik
9278abe738
Forces to measure "standard" fonts
2013-05-06 10:43:29 -05:00
Yury Delendik
abc890a9be
Adds fill('evenodd') as alternative for mozFillRule
2013-05-03 19:42:38 -05:00
Yury Delendik
a081c2d0f1
Merge pull request #3124 from mduan/issue3118-1
...
Update loading bar during onprogress of range requests
2013-05-03 16:51:32 -07:00
Yury Delendik
ea6333028a
Merge pull request #3187 from brendandahl/cid-glyph-selection
...
Fix glyph selection for CID fonts that don't actually have CID font files.
2013-05-03 16:21:35 -07:00
Yury Delendik
f87de639af
Merge pull request #3197 from brendandahl/type3-regression
...
Fix type3 font loading regression.
2013-05-03 14:43:28 -07:00
Yury Delendik
90f8f4484c
Rounding floats in CFF
2013-05-03 15:42:08 -05:00
Brendan Dahl
c5c2f7a773
Fix type3 font loading regression.
2013-05-03 11:13:45 -07:00
Brendan Dahl
e128f8bb47
Fix glyph selection for CID fonts that don't actually have CID font files.
2013-05-01 16:42:25 -07:00
vyv03354
cc5cba8bec
Strip TT programs if it's invalid
2013-05-02 06:07:46 +09:00
Yury Delendik
78ad4d4eaf
Merge pull request #3183 from brendandahl/ignore-bad-dicts
...
Ignore malformed dictionary entries.
2013-04-30 17:22:07 -07:00
Brendan Dahl
beec8abd2a
Merge pull request #3104 from vyv03354/issue2907
...
Increase minimum font size to 16px to avoid conflict with browser's mini...
2013-04-30 15:32:17 -07:00
Brendan Dahl
cec200a664
Ignore malformed dictionary entries.
2013-04-30 15:29:25 -07:00
Yury Delendik
796023fca5
Merge pull request #3007 from brendandahl/delta-encode
...
Fix encoding of type1 private dictionary arrays.
2013-04-30 12:47:56 -07:00
Yury Delendik
6b33422418
Merge pull request #3179 from yurydelendik/pr-3171
...
Cont of #3171 , Reusing pattern canvas fixes
2013-04-30 10:46:48 -07:00
Yury Delendik
3c0705d0ee
Merge pull request #3178 from yurydelendik/issue3156
...
Cherry-pick of #3157
2013-04-30 10:23:24 -07:00
Yury Delendik
d7808b0db6
Fixing pattern canvas transform for chrome
2013-04-30 12:01:01 -05:00
Yury Delendik
65a884c421
Merge pull request #3075 from brendandahl/font-encoding
...
Fix priority of which font encoding is used.
2013-04-30 09:40:52 -07:00
Yury Delendik
34eed81b46
Merge branch 'master' into issue3156
2013-04-30 11:09:03 -05:00
Yury Delendik
b52274d2eb
Merge pull request #3102 from brendandahl/sub-matrix
...
Normalize CFF CID sub matrices to work on windows.
2013-04-29 20:09:10 -07:00
Yury Delendik
2896c48e29
Merge pull request #3053 from vyv03354/fpgm
...
Improve TT font program parser
2013-04-29 12:01:18 -07:00
Yury Delendik
bc57221b9f
Merge pull request #3086 from brendandahl/less-warn
...
Lower two common warnings to info.
2013-04-29 10:21:23 -07:00
Yury Delendik
341d37ef97
Merge pull request #3151 from mduan/issue3149
...
Remove redundant log in network.js
2013-04-29 10:20:03 -07:00
Yury Delendik
2a7f6d6582
Merge pull request #3082 from brendandahl/min-canvas-width
...
Use at least 1x1 pixel canvas for groups.
2013-04-29 10:13:54 -07:00
Kalervo Kujala
8ac0690913
Use only one temp canvas for patterns
...
This fixes a regression #3153 which was introduced by #2177 .
The temp vanvases that are being created are not being re-used, which lead
to high memory use.
2013-04-28 23:56:29 +03:00
Mack Duan
1d48e9c201
Handle server returning 200 for range request
2013-04-25 16:20:03 -07:00
Mack Duan
0f4fe7f762
Remove redundant log in network.js
2013-04-24 10:38:55 -07:00
Mack Duan
d69f14328c
Use same obj/font id counter for all partial evaluators on page
2013-04-22 16:50:30 -07:00
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
2013-04-22 08:46:58 -07:00
Mack Duan
e0d4b322cf
Only perform range requests for identity Content-Encoding
2013-04-22 08:36:54 -07:00
Yury Delendik
8e4d9e9aa0
Merge pull request #3126 from mduan/issue3118-2
...
Clamp end of range request to be the length of the file
2013-04-20 11:20:31 -07:00
Mack Duan
fdd092bb92
Clamp end of range request to be the length of the file
2013-04-19 16:27:39 -07:00
Mack Duan
30e127d848
Do not cache content stream
2013-04-19 14:07:15 -07:00
Brendan Dahl
49ff029f5f
Merge pull request #2719 from mduan/chunked
...
Implement progressive loading of PDFs
2013-04-18 13:56:10 -07:00
Mack Duan
2ce00279be
Address more of brendan's comments
2013-04-18 10:41:33 -07:00
Mack Duan
27fe18e8c6
Address brendan's comments
2013-04-18 00:16:53 -07:00
Mack Duan
dbccbaaa27
Make getOperatorList() calls independent and merge queues at end
2013-04-18 00:16:41 -07:00
Mack Duan
6b2c6fc223
Changes to regression tests for progressive loading
2013-04-18 00:16:36 -07:00
Brendan Dahl
15a9ab34d3
Lower two common warnings to info.
2013-04-16 15:45:29 -07:00
vyv03354
0ee757e22d
Increase minimum font size to 16px to avoid conflict with browser's minimum font size settings
2013-04-17 00:18:07 +09:00
Brendan Dahl
3cba5a0c8a
Normalize CFF CID sub matrices to work on windows.
2013-04-15 16:14:07 -07:00
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
2013-04-12 16:13:22 -07:00
terrafrost
78dde0efab
fix grammar in comment
...
migth -> might
want -> wants
2013-04-12 11:06:49 -05:00
Brendan Dahl
ecb04c8bbe
Use at least 1x1 pixel canvas for groups.
2013-04-11 11:19:42 -07:00
Brendan Dahl
0f41b2db44
Fix priority of which font encoding is used.
2013-04-10 09:51:06 -07:00
vyv03354
e39c34584a
Refactor 'cmap' generation
2013-04-10 01:39:13 +09:00
Brendan Dahl
b898935eb0
Merge pull request #3047 from mduan/remove-display-promise
...
Remove initialization code that's no longer used
2013-04-09 09:35:12 -07:00
Yury Delendik
a017e105cc
Merge pull request #3045 from mduan/remove-gfx
...
Remove code that is not being used
2013-04-06 09:42:06 -07:00
vyv03354
b697001ce4
Improve TT font program parser
2013-04-06 15:22:42 +09:00
Mack Duan
6beb33c25b
Remove initialization code that's no longer used
2013-04-04 16:37:27 -07:00
Mack Duan
db4b199efd
Remove redundant getOperatorList()
2013-04-04 13:41:52 -07:00
Mack Duan
96167d2ce6
Remove code that is not being used
2013-04-04 12:24:06 -07:00
Yury Delendik
9c76ed0a35
Fixes Dict_assignXref type
2013-04-03 16:42:23 -05:00
Yury Delendik
ab2cf877e8
Merge pull request #3038 from brendandahl/lab-cs
...
Fix lab colorspace decoding and rgb conversion.
2013-04-03 13:55:13 -07:00
Brendan Dahl
18d2bb1b5e
Merge pull request #1545 from yurydelendik/revert-Dict-xref-hide
...
Revert Dict xref hiding
2013-04-03 13:11:28 -07:00
Yury Delendik
9699dd16bf
Disables cloning of the Dict
2013-04-03 13:01:45 -05:00
Brendan Dahl
b84cbfe451
Merge pull request #3019 from yurydelendik/cmyk-3
...
Speeds up the CMYK color conversion
2013-04-03 10:39:46 -07:00
Brendan Dahl
09b52d7663
Fix lab colorspace decoding and rgb conversion.
2013-04-03 10:36:09 -07:00
Yury Delendik
bb36833b4e
Merge pull request #2947 from brendandahl/decoding
...
Fix where image component decoding takes place.
2013-04-02 08:54:03 -07:00
Yury Delendik
5839fef84c
Merge pull request #2945 from mduan/annotation
...
Add support for appearance streams in annotations
2013-04-01 19:42:17 -07:00
Yury Delendik
bb7ff61964
Merge pull request #3003 from brendandahl/type1-parser
...
Restructure/rewrite of the Type1 font parser.
2013-04-01 19:06:11 -07:00
Yury Delendik
c48a689352
Speeds up the CMYK color conversion
2013-04-01 12:21:20 -05:00
Yury Delendik
74b0a51cee
Merge pull request #3009 from brendandahl/backdrop
...
Use white backdrop when possible.
2013-04-01 08:15:30 -07:00
Brendan Dahl
bd7eba0d46
Add back mozOpaque.
2013-03-29 14:25:10 -07:00
Yury Delendik
9b0714ac45
Merge pull request #2914 from mduan/chunked-viewer-only
...
Changes to viewer to support progressive loading
2013-03-29 14:21:31 -07:00
Brendan Dahl
ec311f303b
Use white backdrop when possible.
2013-03-29 13:26:25 -07:00
Mack Duan
4782a3acb9
Changes to viewer to support progressive loading
2013-03-29 11:51:10 -07:00
Brendan Dahl
82eb374fad
Fix encoding of type1 private dictionary arrays.
2013-03-28 15:05:03 -07:00
Brendan Dahl
71d257ce5b
Merge pull request #2652 from yurydelendik/issue-215-1
...
Fixes cmap sanitizer for #215
2013-03-27 18:46:09 -07:00
Brendan Dahl
028151d13a
Restructure/rewrite of the Type1 font parser.
2013-03-27 17:17:01 -07:00
Yury Delendik
931ce96be8
Merge pull request #2978 from brendandahl/color-maps
...
Create color maps for single component color spaces.
2013-03-27 05:29:45 -07:00
vyv03354
7ad3e46ca8
Correct a typo in DeviceRgbCS_getRgbBuffer
2013-03-24 17:51:24 +09:00
Brendan Dahl
fea4507c24
Create color maps for single component color spaces.
2013-03-20 17:59:28 -07:00
Mack Duan
79831d7ec5
Support rendering appearance streams for annotations
2013-03-19 12:51:28 -07:00
Yury Delendik
0d54347d57
Adds unicode conversion for js code
2013-03-19 08:42:04 -05:00
Yury Delendik
6809f254eb
Protection from empty/invalid root or kid in NameTree
2013-03-19 08:36:12 -05:00
Yury Delendik
783945e4a1
Merge pull request #2954 from vyv03354/msjfonts
...
Add MS built-in Japanese fonts to nonStdFontMap
2013-03-18 16:33:19 -07:00
Yury Delendik
772c7894fb
Merge pull request #2959 from vyv03354/cmap4
...
Always separate the last segment of the format 4 'cmap' subtable
2013-03-18 15:28:39 -07:00
Yury Delendik
6cb762246a
Merge pull request #2936 from brendandahl/trans-groups2
...
Add basic support for transparency groups.
2013-03-18 14:48:37 -07:00
vyv03354
538894f115
Always separate the last segment of the format 4 'cmap' subtable
2013-03-18 22:06:29 +09:00
vyv03354
9bcd6bb280
Add MS built-in Japanese fonts to nonStdFontMap
2013-03-17 09:45:23 +09:00
vyv03354
9e43ad0673
Implement "B5pc-H" CMap
2013-03-16 19:46:10 +09:00
Brendan Dahl
93b99e7352
Fix where image component decoding takes place.
2013-03-14 14:06:44 -07:00
Brendan Dahl
725cd5407f
Add basic support for transparency groups.
2013-03-12 17:20:38 -07:00
vyv03354
99165fb702
Fix the calculation of default vertical metrics
...
Fixes bug 849627 and 849628.
The current code was obviously wrong per the spec 9.7.4.3.
2013-03-13 02:08:37 +09:00
Brendan Dahl
1f9b28f3f6
Merge pull request #2913 from yurydelendik/combine-os2valid
...
Removes isOS2Valid; resets fsType
2013-03-11 15:50:22 -07:00
Brendan Dahl
523aa9c152
Add support for blend modes.
2013-03-11 10:23:47 -07:00
Yury Delendik
0ebe91c50b
Merge pull request #2912 from brendandahl/empty-private-dict
...
Use empty private dictionaries instead of removing them.
2013-03-08 13:37:00 -08:00
Yury Delendik
ad3390c24c
Removes isOS2Valid; resets fsType
2013-03-08 14:11:12 -06:00
Brendan Dahl
7050a54a4e
Use empty private dictionaries instead of removing them.
2013-03-08 11:07:36 -08:00
Ofir
549a35e67f
Make sure IE9 gets integers because grad.addColorStop fails with floats
2013-03-08 17:26:10 +02:00
Brendan Dahl
0e14f0ccae
Merge pull request #2818 from yurydelendik/seac
...
Seac support for Windows
2013-03-05 09:02:54 -08:00
Yury Delendik
8ee193892b
Seac support for Windows
2013-03-04 12:37:59 -06:00
vyv03354
999cac517a
Skip FontName vs. BaseFont check for Type 3 fonts
...
Type 3 font dict does not have a BaseFont entry (see PDF Reference 9.6.5 Table 112). This check is actually causing false positives:
http://math.berkeley.edu/~daisuke/Bonn2013.pdf
http://math.berkeley.edu/~daisuke/BVSOL.pdf
http://www.ieice-hbkb.org/files/06/06gun_02hen_04.pdf
http://www.asahi-net.or.jp/~td6i-st/fuku-cathedral/new/gat.pdf
2013-03-04 05:24:43 +09:00
Yury Delendik
4c061cdbf4
Merge pull request #2875 from vyv03354/tounicode
...
Convert CID fonts using "ToUnicode" CMap if available
2013-03-03 12:04:42 -08:00
vyv03354
9310e852db
Pass commonObjs to TilingPattern constructor
...
Broken example: http://www.eiken.or.jp/eiken/apply/private/flow/pdf/ichiji.pdf
2013-03-03 21:36:44 +09:00
vyv03354
6c3d66fb46
Convert CID fonts using "ToUnicode" CMap if available
2013-03-03 15:00:49 +09:00
Yury Delendik
32938d3a66
Merge remote-tracking branch 'mozilla/master' into cidtype2
...
Conflicts:
test/test_manifest.json
2013-03-02 16:09:00 -06:00
Yury Delendik
de9f0a9435
Merge pull request #2865 from vyv03354/90pv
...
Implement "90pv" CMap
2013-03-02 09:31:07 -08:00
Yury Delendik
cb871774d7
Merge pull request #2868 from yurydelendik/issue-2867
...
Fixes NameTree reading
2013-03-02 06:21:36 -08:00
Yury Delendik
2bdfc0727f
Fixes NameTree reading
2013-03-02 08:00:17 -06:00
vyv03354
96f6fcf8ba
Convert cid to Unicode when rebuilding Type 2 CID fonts encoded with non-Identity CMap
2013-03-02 21:25:35 +09:00
vyv03354
c9ee7b9bfa
Implement "90pv" CMap
2013-03-02 11:02:35 +09:00
Martin Koegler
63c9685ea7
Fix decrypting of arrays
2013-03-01 15:39:12 +01:00
Brendan Dahl
5c43565404
Hack to support automatic printing from pdf javascript.
2013-02-28 15:29:07 -08:00
Kalervo Kujala
6f65fef64b
Sharpen the patterns.
...
Draw the patterns with the intended resolution instead of scaling
afterwards. Scaling leads to unclear patterns.
Also:
Make TilingPattern function for paintType switch case.
Make TilingPattern function for bbox clipping.
Make TilingPattern functions for scaling code.
Increase MAX_PATTERN_SIZE to 4096.
Add Singular Value Decomposition function.
2013-02-28 22:32:43 +02:00
Yury Delendik
d97c5a2b14
Merge pull request #2844 from vyv03354/issue2842
...
Fix spacing calculation of TJ operator
2013-02-28 09:01:29 -08:00
Yury Delendik
5b195ea7e0
Merge pull request #2809 from divergentdave/TJ_text_selection
...
Fix text selection for oddly-spaced TJ commands (Issue #2808 )
2013-02-28 08:36:02 -08:00
Yury Delendik
e4161f2789
Merge pull request #2826 from vyv03354/83pv
...
Implement "83pv" CMap and fix CIDFontType0 handling
2013-02-28 08:16:33 -08:00
Yury Delendik
c001aecddc
Merge pull request #2836 from sgtatham/master
...
Fix handling of inline annotation dictionaries
2013-02-28 07:27:55 -08:00
vyv03354
1579c4778b
Fix spacing calculation of TJ operator
2013-03-01 00:27:48 +09:00
Mack Duan
70f788a2a5
Merge pull request #2838 from allstarschh/issue_2829_test
...
Add Support for big5 encoding.
2013-02-27 17:53:36 -08:00
allstars.chh
27d114bd11
Add support for big5 encoding.
2013-02-28 08:39:27 +08:00
Simon Tatham
ff4f7f1028
Use fetchIfRef to get annotation dictionaries.
...
Fixes failure to display annotations in PDFs where the annotation
dicts are inlined in the page objects rather than in subobjects.
2013-02-27 22:00:55 +00:00
Brendan Dahl
06a49b295a
Merge pull request #2786 from yurydelendik/jbig2-len
...
JBIG2: finds end of a segment when length is not specified
2013-02-27 10:05:52 -08:00
vyv03354
4413262976
Implement "83pv" CMap and fix CIDFontType0 handling
2013-02-28 00:44:38 +09:00
David Cook
355efc46d2
Fix text selection for oddly-spaced TJ commands
...
This change will discard trailing space adjustments in TJ/showSpacedText()
for the purposes of calculating the text width for text selection. In
pathological cases, a PDF may write one character and then move the text
matrix back to the beginning of the character within one TJ invocation.
This would add up to a canvasWidth of 0, so the text selection <div> would
be scaled to zero pixels wide, even though the character was drawn
normally.
With this change, canvasWidth will not include any adjustments made after
the last character was written. Normal use of TJ will result in the same
text selection behavior, whereas pathological use of TJ will result in the
text selection layer matching the actual width of the characters
displayed.
For an example of such pathological behavior, see http://www.tycovalves-usa.com/ld/CROMC-0297-US.pdf#page=48
2013-02-25 21:00:17 -06:00
Mack Duan
f94221a37f
Merge pull request #2789 from yurydelendik/getString
...
Fixes getString
2013-02-25 14:33:07 -08:00
Brendan Dahl
a13f7964b1
Merge pull request #2686 from vyv03354/bug770409
...
Implement vertical writing
2013-02-25 12:47:47 -08:00
Brendan Dahl
b89d98eede
Merge pull request #2782 from yurydelendik/jbig2-text-align
...
Fixes symbols positioning in JBIG2
2013-02-25 09:54:05 -08:00
Yury Delendik
4d50965434
Fixes template 1 for decoding
2013-02-24 17:34:00 -06:00
Yury Delendik
95e5429707
Fixes getString
2013-02-23 11:35:18 -06:00
Yury Delendik
1d4372775d
JBIG2: finds end of segment when length is not specified
2013-02-23 10:35:41 -06:00
vyv03354
059fd616cd
Add a dummy byte at end of the CFF table to satisfy sanitizer
...
Fixes #2674 .
2013-02-23 20:58:54 +09:00
Yury Delendik
cbe829228e
Fixes symbols positioning in JBIG2
2013-02-22 22:08:46 -06:00
vyv03354
b591d39130
Remove the test of experimental properties in workers
2013-02-17 14:53:27 +09:00
vyv03354
c5b8ee6a91
Implements vertical writing
2013-02-15 03:53:34 +09:00
j
c33b92036f
fix image width/height for zoomed viewport
...
image width/height is off while pdf is zoomed,
use raw transform values to compute width/height
to fix this.
2013-02-12 16:03:30 +05:30
j
cd42ccd439
add imageLayer
...
add optional imageLayer object to access images and there
position and size as they are rendered on the canvas.
2013-02-11 00:20:27 +05:30
Yury Delendik
6ce1cfe734
Reverts 729b82, d5f65f and 724add
2013-02-08 14:04:36 -06:00
vyv03354
729b82359a
Implements the print permission
2013-02-08 23:28:27 +09:00
Yury Delendik
51c81a1d01
Merge pull request #2695 from yurydelendik/copy-protection-2
...
Fixes text search for "secured" documents (take 2)
2013-02-07 16:22:31 -08:00
Yury Delendik
d5f65f5431
Fixes text search for "secured" documents
2013-02-07 18:15:39 -06:00
Mack Duan
43e954f11d
Merge pull request #2681 from vyv03354/bug767455_basefont
...
Take BaseFont entry from CIDFont dict instead of Type 0 Font dict
2013-02-07 12:04:46 -08:00
Yury Delendik
129fa5661c
Merge pull request #2680 from vyv03354/bug767455_bxex
...
Reduce warning spam caused by BX/EX
2013-02-05 14:27:40 -08:00
Yury Delendik
578349b4dd
Merge pull request #2675 from vyv03354/issue2674
...
Support non-BMP characters contained in embedded fonts
2013-02-05 14:26:28 -08:00
vyv03354
7fc0c9f2ca
Take BaseFont entry from CIDFont dict instead of Type 0 Font dict
2013-02-06 06:47:41 +09:00
vyv03354
521723a9b5
Support non-BMP characters contained in embedded fonts
2013-02-06 06:15:07 +09:00
vyv03354
7dcbf7d2c3
Reduce warning spam caused by BX/EX
2013-02-06 03:57:59 +09:00
Mack Duan
2260458f27
Merge pull request #2671 from yurydelendik/chrome
...
Workaround for Chrome's issue 174023
2013-02-04 10:00:38 -08:00
Yury Delendik
133d5cf8d2
Workaround for Chrome's issue 174023
2013-02-04 10:51:53 -06:00
Yury Delendik
d13aa38c9c
Enforces quotmark=single for jshint
2013-02-02 17:00:13 -06:00
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
2013-02-02 16:49:19 -06:00
vyv03354
724add2ffd
Make an effort to adhere the spec 7.6.3.2
2013-02-02 02:09:12 +09:00
Jon Buckley
b3634a3826
Issue #2008 - Fix lint errors for src/worker.js
2013-01-31 19:12:46 -05:00
Jon Buckley
e48bb8d966
Issue #2008 - Fix lint errors for src/utils/fonts_utils.js
2013-01-31 19:12:45 -05:00
Jon Buckley
3b3922764e
Issue #2008 - Fix lint errors for src/util.js
2013-01-31 19:12:45 -05:00
Jon Buckley
4a292a310f
Issue #2008 - Fix lint errors for src/stream.js
2013-01-31 19:12:45 -05:00
Jon Buckley
a1a098fbee
Issue #2008 - Fix lint errors for src/pattern.js
2013-01-31 19:12:45 -05:00
Jon Buckley
315ac3ce8c
Issue #2008 - Fix lint errors for src/parser.js
2013-01-31 19:12:45 -05:00
Jon Buckley
caaf7e8032
Issue #2008 - Fix lint errors for src/obj.js
2013-01-31 19:12:45 -05:00
Jon Buckley
9b13cbee69
Issue #2008 - Fix lint errors for src/metadata.js
2013-01-31 19:12:45 -05:00
Jon Buckley
21f0ff1dcf
Issue #2008 - Fix lint errors for src/jpx.js
2013-01-31 19:12:45 -05:00
Jon Buckley
bc94a4d353
Issue #2008 - Fix lint errors for src/jbig2.js
2013-01-31 19:12:45 -05:00
Jon Buckley
f883a1f40f
Issue #2008 - Fix lint errors for src/image.js
2013-01-31 19:12:45 -05:00
Jon Buckley
9ddb4eca95
Issue #2008 - Fix lint errors for src/function.js
2013-01-31 19:12:45 -05:00
Jon Buckley
3793ca5283
Issue #2008 - Fix lint errors for src/fonts.js
2013-01-31 19:12:45 -05:00
Jon Buckley
c281805fde
Issue #2008 - Fix lint errors for src/evaluator.js
2013-01-31 19:12:45 -05:00
Jon Buckley
d7b005a79f
Issue #2008 - Fix lint errors for src/crypto.js
2013-01-31 19:12:45 -05:00
Jon Buckley
d59e2105b1
Issue #2008 - Fix lint errors for src/core.js
2013-01-31 19:12:45 -05:00
Jon Buckley
4918c6f848
Issue #2008 - Fix lint errors for src/colorspace.js
2013-01-31 19:12:44 -05:00
Jon Buckley
98c2f96260
Issue #2008 - Fix lint errors for src/canvas.js
2013-01-31 19:12:44 -05:00
Jon Buckley
d301c1f13f
Issue #2008 - Fix lint errors for src/bidi.js
2013-01-31 19:12:44 -05:00
Jon Buckley
c67d9d40b8
Issue #2008 - Fix lint errors for src/api.js
2013-01-31 19:12:44 -05:00
Yury Delendik
9c044e2c31
Fallback when AcroForm is present
2013-01-31 16:46:44 -05:00
Yury Delendik
e5a6246f70
Fixes cmap sanitizer fro #215
2013-01-31 16:13:36 -05:00
Brendan Dahl
4a19437537
Merge pull request #2630 from yurydelendik/width-cid
...
Fixes reading of the widths for CID fonts
2013-01-31 07:12:47 -08:00
Yury Delendik
cca1a68adf
Merge pull request #2572 from mduan/issue2477
...
Make canvas transform matrix account for devicePixelRatio
2013-01-30 20:25:43 -08:00
mduan
e4c3b4501d
Sanitization of truetype fonts to fix #2537
2013-01-30 19:01:53 -05:00
mduan
0527b8bc8d
Fix invalid version number in truetype 'head' table
2013-01-30 16:52:19 -05:00
mduan
6bacb38692
Make canvas transform matrix account for devicePixelRatio
2013-01-30 16:06:12 -05:00
Yury Delendik
0f9b63e8be
Merge pull request #2634 from Pomax/type1-string-index-SIDs
...
changed the type1font cff wrapping to use offsets 391,392... instead of 0,1... for pointing to strings in the String INDEX
2013-01-30 11:33:31 -08:00
mduan
5bffd2e7d8
Implement 9.6.6.4 of pdf spec for truetype fonts
2013-01-30 13:01:32 -05:00
Yury Delendik
8c78268a12
Merge pull request #2628 from mduan/issue2128
...
Add support for GBK-EUC-H encoding for cid fonts
2013-01-30 09:44:24 -08:00
Yury Delendik
d61d9a23ed
Merge pull request #2624 from vyv03354/bug835661
...
Add Hankaku-Latin cid to Unicode mappings
2013-01-30 08:26:45 -08:00
Mike Kamermans
86c6bf1a67
changed the type1font cff wrapping to use offsets 391,392... instead of 0,1... for pointing to strings in the String INDEX
2013-01-30 11:15:08 -05:00
mduan
81399ee068
Add support for GBK-EUC-H encoding for cid fonts
2013-01-30 09:35:52 -05:00
vyv03354
a8aed74431
Add Hankaku-Latin cid to Unicode mappings
2013-01-30 21:48:18 +09:00
Yury Delendik
b5a38ded4c
Fixes reading of the widths for CID fonts
2013-01-29 17:19:08 -05:00
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
2013-01-29 13:17:04 -08:00
Yury Delendik
9af6e05456
Merge pull request #2615 from vyv03354/master
...
Fixes CFF parser failure when CharStrings contains cntrmask
2013-01-26 08:46:34 -08:00
Yury Delendik
df731e7d9d
Merge pull request #2527 from brendandahl/type1-charstrings
...
Evaluate type 1 charstrings for conversion to type 2.
2013-01-26 07:45:23 -08:00
vyv03354
a254de86fb
CFF parser didn't count hints defined by hstem/vstem
2013-01-26 22:08:45 +09:00
Yury Delendik
9a58bc9aba
Merge pull request #2581 from brendandahl/fix-cid
...
Fix normalized CID fonts for direct write 6.1.
2013-01-25 06:23:17 -08:00
Yury Delendik
2057855c8a
Merge pull request #2602 from vyv03354/issue2598
...
Update font name matching for Type 0 CIDFont
2013-01-24 15:40:39 -08:00
vyv03354
622276ecc8
Update font name matching for Type 0 CIDFont
2013-01-24 08:03:13 +09:00
vyv03354
0df411a3da
Fixes non-Japanese characters spacing
2013-01-24 01:23:22 +09:00
Brendan Dahl
a0313bef22
Merge pull request #2570 from mduan/issue2556
...
Fix bug w/ exception not being passed to error callbacks of a Promise
2013-01-22 14:46:08 -08:00
Brendan Dahl
45daf4e936
Merge pull request #2557 from mduan/issue2391-invalid-font
...
Default to a built-in font if an invalid non-embedded font is encountered
2013-01-18 12:35:59 -08:00
Brendan Dahl
dc914fe7ce
Fix normalized CID fonts for direct write 6.1.
2013-01-18 11:05:38 -08:00
mduan
b718a3604a
Default to a built-in font if an invalid non-embedded font is encountered
2013-01-16 13:57:41 -08:00
Yury Delendik
aac622a9b1
Merge pull request #2567 from vyv03354/master
...
Supports 'H/V', 'EUC-H/V' and '90ms*' CMaps
2013-01-16 08:07:33 -08:00
Yury Delendik
a3dd0098e0
Merge pull request #2571 from mduan/issue2129
...
Do not error when an EndOfPage segment is encountered in jbig2
2013-01-16 07:32:45 -08:00
vyv03354
deba913651
Merge branch 'master' of https://github.com/mozilla/pdf.js
2013-01-16 23:40:32 +09:00
vyv03354
38ffebc987
Supports 'H/V', 'EUC-H/V' and '90ms*' CMaps
2013-01-16 21:58:18 +09:00
mduan
317db2e7c6
Do not error when an EndOfPage segment is encountered in jbig2
2013-01-15 16:07:01 -08:00
mduan
5ab3bb1e03
Skip commands that have too few arguments
...
- Commands that have too few args will be skipped
- Commands that have too many args will generate an info, but still
execute
2013-01-15 14:07:16 -08:00
mduan
fadcb71c21
Handle missing 'FontName' entry in FontDescriptor object
2013-01-15 11:48:20 -08:00
mduan
4f1e94c9f7
Fix bug w/ exception not being passed to error callbacks of a Promise
2013-01-15 11:39:12 -08:00
Yury Delendik
e61b104852
Merge pull request #2547 from mduan/issue2085
...
Support corrupted pdfs that are encrypted but lack 'ID' in trailer
2013-01-14 14:51:42 -08:00
mduan
48fa0172ed
Support corrupted pdfs that are encrypted but lack 'ID' in trailer
2013-01-14 13:43:10 -08:00
vyv03354
0980b4c322
Fix a problem about Japanese PDFs without embedded fonts
2013-01-12 11:18:44 -06:00
Brendan Dahl
a79f005527
Fix isDict when type is missing in dictionary.
2013-01-10 16:32:26 -08:00
Brendan Dahl
b5278c5e27
Evaluate type 1 charstrings for conversion to type 2.
2013-01-09 17:33:59 -08:00
Brendan Dahl
e978ea2617
Merge pull request #2540 from mduan/handle-broken-hex-string
...
Handle broken hex string
2013-01-08 15:54:43 -08:00
mduan
eb8f4e8343
Handle some illegal characters in hex string
...
Do not throw exception when hex strings are in the wrong format
Currently pdf.js is throwing an exception for the following hex string:
`<7 0 2 15 5 2 2 2 4 3 2 4>`
The issue is that the 15 is not a valid hex character so pdf.js ends up
throwing an exception.
This diff changes the parser to process the above hex string as follow:
`70 21 55 2 24 32` (Note: the final 4 of the hex string is ignored)
replicating the behaviour of MuPDF, and doesn't throw an exception.
2013-01-08 15:29:24 -08:00
Brendan Dahl
3aea29c7aa
Merge pull request #2526 from yurydelendik/create-os2
...
Fixes creation of OS/2 table
2013-01-08 12:11:42 -08:00
Yury Delendik
318e7f6949
Merge pull request #2500 from brendandahl/private-entries
...
Add support for more Type1 private dictionary entries.
2013-01-08 11:24:38 -08:00
Brendan Dahl
9635612034
Merge pull request #2525 from yurydelendik/version-info
...
Traces pdf.js version
2013-01-08 11:17:42 -08:00
Brendan Dahl
2cbb35362e
Add support for more Type1 private dictionary entries.
2013-01-08 10:44:39 -08:00
Brendan Dahl
7d9938df5f
Merge pull request #2520 from yurydelendik/disable-blues
...
Disables *Blue* values when HINT_ENABLED == false
2013-01-04 16:21:29 -08:00
Yury Delendik
aa93eac261
Fixes creation of OS/2 table
2013-01-04 11:41:24 -06:00
Brendan Dahl
bf0abd61d1
Merge pull request #2505 from yurydelendik/refactor-cff-float
...
Refactors encodeFloat, font matrix and flex args
2013-01-04 09:24:58 -08:00
Brendan Dahl
c05f073a73
Merge pull request #2454 from yurydelendik/worker-xhr-response
...
Tests presence of the xhr-response in the worker
2013-01-04 09:12:01 -08:00
Yury Delendik
7b70710565
Traces pdf.js version
2013-01-04 11:01:31 -06:00
Yury Delendik
10bb6c9ec0
Refactors font matrix operations
2013-01-03 22:38:14 -06:00
Yury Delendik
ccfa0e1972
Refactors encodeFloat and flex args
2013-01-03 18:33:15 -06:00
Yury Delendik
eca6c6cb5d
Disables *Blue* values when HINT_ENABLED == false
2013-01-03 17:06:52 -06:00
Yury Delendik
089b60d848
Merge pull request #2463 from brendandahl/remove-cid-keys
...
Remove cid dictionary values for normalized fonts.
2013-01-03 10:24:49 -08:00
Brendan Dahl
bf1a4adf61
Merge pull request #2499 from yurydelendik/rescale
...
Refactors rescaleImage: improving quality of scanned images
2012-12-28 12:04:49 -08:00
Yury Delendik
1826daa1d5
Refactors rescaleImage: improving quality of scanned images
2012-12-21 19:10:21 -06:00
Brendan Dahl
a235ec1441
Use CFF compiler for building Type1 font.
2012-12-21 14:11:58 -08:00
Brendan Dahl
acf64b3164
Add support for hmoveto and vmoveto during flex.
2012-12-20 11:14:10 -08:00
Yury Delendik
a2c6429cce
Merge pull request #2465 from brendandahl/fix-expansion-factor
...
Fix cff private dictionary key.
2012-12-15 20:53:11 -08:00
Jakob Miland
4efab13c58
Support Filespec dictionary in annotations
2012-12-15 00:36:53 +01:00
Brendan Dahl
852ff7753b
Fix cff private dictionary key.
2012-12-14 12:44:39 -08:00
Brendan Dahl
575f2dd8b1
Remove cid dictionary values for normalized fonts.
2012-12-13 12:32:45 -08:00
Brendan Dahl
78498ce648
Merge pull request #2448 from yurydelendik/issue-2386
...
Fixes encoding in CFF fonts
2012-12-11 13:31:15 -08:00
Yury Delendik
0e70aacc51
Tests presence of the xhr-response in the worker
2012-12-11 11:07:58 -06:00
Brendan Dahl
6ae135539d
Warn on opentype fonts.
2012-12-10 14:59:23 -08:00
Brendan Dahl
b4adbe4967
Merge pull request #2417 from yurydelendik/inline-images
...
Removes "too many inline images" limit
2012-12-10 09:32:24 -08:00
Yury Delendik
b63da8bc82
Fixes encoding reading in CFF fonts
2012-12-09 12:57:40 -06:00
Yury Delendik
cae62341ac
Split large image groups into smaller chunks
2012-12-07 17:19:06 -06:00
Yury Delendik
a0bc215a86
Removes comment per #2372
2012-12-07 14:28:17 -06:00
Yury Delendik
d71c702dcf
Removes "too many inline images" limit
2012-12-07 12:19:43 -06:00
Brendan Dahl
0910c5e68e
Merge pull request #2425 from yurydelendik/detect-fonts-off
...
Detecting if web fonts are disabled in Firefox.
2012-12-06 13:30:07 -08:00
Yury Delendik
859aad138c
Merge pull request #2432 from yurydelendik/setDash
...
Using setListDash for dashed lines
2012-12-04 13:58:48 -08:00
Brendan Dahl
39038b7377
Rescale regular images manually if they are too big.
2012-12-04 09:36:42 -08:00
Yury Delendik
a7f0e9612a
Using setDash for dashed lines
2012-12-04 08:26:10 -06:00
Yury Delendik
500421ddd2
Fixes "TypeError: info is undefined"
2012-11-30 17:36:39 -06:00
Yury Delendik
3346c284ab
Excluding Type3 fonts from the check; removing dead code
2012-11-30 17:31:22 -06:00
Yury Delendik
5dc87a7fca
Detecting if web fonts are disable in Firefox.
2012-11-30 17:08:19 -06:00
Yury Delendik
0dc137a0df
Refactors Lab CS; uses different conversion for D50 and D65; adds getRgbItem
2012-11-30 12:46:55 -06:00
Yury Delendik
223ad0c117
Merge pull request #2418 from yurydelendik/refactor-cs
...
Initial refactoring to reduce amount of getRgb calls and objects creation
2012-11-30 07:01:20 -08:00
Yury Delendik
0029b34d45
Refactors getRgb and makeCssRgb calls; reduces amount of created objects
2012-11-29 17:11:51 -06:00
Brendan Dahl
abaed05174
Merge pull request #2346 from yurydelendik/info
...
Adds basic PDF info
2012-11-29 12:30:06 -08:00
Brendan Dahl
00fad28284
Merge pull request #2406 from yurydelendik/issue-2006
...
Fixes function array support for radial/axial pattern
2012-11-29 12:26:50 -08:00
Yury Delendik
2c87a6467b
Fixes function array support for radial/axial pattern
2012-11-24 15:13:13 -06:00
Christian Mehlis
e95fbb3860
Update src/obj.js
...
fix Issue #1523
2012-11-24 21:31:05 +01:00
khodzha
18da086b96
fix of combineUrl(baseUrl, url) in case of url - null, empty, undefined + unittests
2012-11-24 04:25:49 +04:00
Yury Delendik
033545cc16
Merge pull request #2392 from benbro/master
...
Workaround for Private Use Area characters in Chrome on Windows
2012-11-16 14:23:26 -08:00
benbro
9841bc3e8e
Workaround for Private Use Area characters in Chrome on Windows
2012-11-16 23:49:02 +02:00
Brendan Dahl
9910699fac
Merge pull request #2385 from yurydelendik/issue-2374
...
Rejects post table if maxp numGlyph does not match
2012-11-16 13:46:11 -08:00
Nicolas Pierron
f5e8838bb0
Ensure the loop counter is not interpreted as a double.
...
This patch improves pure JavaScript performances by 30% by removing double computations from Type1Parser_extractFontProgram. When parseInt is fed with non numerical values, it returns a NaN which flows into the loop counter which cause every operation to be computed as a double and every index to be trunctated as an int before reading a character. This patch force the NaN value to be coerce as an integer by using a bitwise-or operation with zero.
2012-11-16 02:33:32 -08:00
Yury Delendik
0646d397eb
Rejects post table if maxp numGlyph does not match
2012-11-14 16:17:06 -06:00
Brendan Dahl
d302746c6b
Merge pull request #2352 from yurydelendik/issue-1718
...
Cleaning name table
2012-11-13 10:58:27 -08:00
Brendan Dahl
8d3980a43a
Merge pull request #2263 from yurydelendik/tables-removal
...
Attempt to remove vtmx, and vhea tables...
2012-11-13 09:30:40 -08:00
Yury Delendik
05148e8e7d
Removes vtmx and vhea tables; sanitizes fpgm and prep
2012-11-12 21:10:20 -06:00
Brendan Dahl
9f460a9a8f
Merge pull request #2251 from yurydelendik/validate-charstrings
...
Validates type2 charstrings
2012-11-12 11:53:04 -08:00
waddlesplash
32fbf687ab
Refactor names in various files.
...
web/viewer.js
src/fonts.js (& remove unused global)
src/evaluator.js
src/canvas.js
2012-11-10 14:59:13 -05:00
Yury Delendik
68ab17e4a3
Cleaning name table
2012-11-07 18:24:13 -06:00
Yury Delendik
610215bada
Validate charstrings
2012-11-07 13:56:17 -06:00
Yury Delendik
4da7be8d28
Verifies some of the OS2 font table fields
2012-11-07 11:11:36 -06:00
Yury Delendik
fbe3d71663
Re-creates invalid post table
2012-11-07 11:03:08 -06:00
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
Brendan Dahl
ebf26a5e29
Fix undefined stepper.
2012-02-14 10:25:53 -08:00
Brendan Dahl
6aa72f411b
Add a few comments.
2012-02-14 09:24:29 -08:00
Brendan Dahl
612151d1bc
Merge pull request #1173 from notmasteryet/tree-66
...
Fixes browsers minimal font limitations
2012-02-14 09:05:21 -08:00
notmasteryet
1cfb099640
Add bugzill reference, reducing to 1px size
2012-02-13 22:35:42 -06:00
notmasteryet
b32a7b1c8b
Reducing min font size to 2; rearranging fontSizeScale logic
2012-02-13 21:12:55 -06:00
notmasteryet
99d71cc713
scale line width; set min font size to 8
2012-02-13 20:45:51 -06:00
notmasteryet
c8e88def83
Light bidi fixes
2012-02-13 20:28:36 -06:00
Brendan Dahl
9fe5eff905
Combining Yury's and my debugging tools.
2012-02-13 17:35:58 -08:00
Adil Allawi
b50cf76ab5
Properly integrate new file bidi.js
2012-02-13 14:56:37 +00:00
Adil Allawi
6902ba51fa
Properly support custom CSS properties
...
Fix comment in bidi
2012-02-13 14:56:37 +00:00
notmasteryet
3cd4159489
Sanitizing the glyphs to avoid OTS rejections
2012-02-12 21:11:44 -06:00
Adil Allawi
2bc708305d
Fix up bidi algorithm, and set direction of div to match text direction
2012-02-13 02:10:41 +00:00
notmasteryet
00f6f0e096
Remove lazy encoding initialization
2012-02-10 15:55:04 -06:00
Adil Allawi
2e1a88f39e
Handle bidi ordering of PDF strings
2012-02-10 17:05:09 +00:00
notmasteryet
d50773fb96
Fixing ToUnicode parsing; workaround for invalid UTF16 encoding
2012-02-09 18:40:44 -08:00
Brendan Dahl
66052f2dd2
Switch to textContent. Fix lint.
2012-02-08 16:38:43 -08:00
Brendan Dahl
a5d9ff8568
Merge upstream.
2012-02-08 16:31:30 -08:00
notmasteryet
a4f8e2f356
Merge pull request #1192 from brendandahl/fixscript
...
Fix closing script tag.
2012-02-08 13:19:28 -08:00
Brendan Dahl
58a697697f
Fix closing script tag.
2012-02-08 13:09:21 -08:00
notmasteryet
cc9035438a
Optimization: don't scale when parameter is 1.0
2012-02-07 17:14:58 -08:00
Artur Adib
c49e9ec07a
Merge remote-tracking branch 'mozilla/master' into issue1133
...
Conflicts:
src/util.js
test/test_manifest.json
2012-02-06 16:11:52 -08:00
Artur Adib
00b7e7d255
isDefaultDecode(), as per reviewer comments
2012-02-06 16:10:15 -08:00
notmasteryet
bd95a191b7
Reducing MIN_FONT_SIZE size to 5px
2012-02-04 14:42:07 -06:00
notmasteryet
34e2aa5d21
Browser minimal font adjustment
2012-02-04 12:45:18 -06:00
Brendan Dahl
51d831ed03
Merge pull request #1166 from notmasteryet/ftp
...
FTP protocol support (#1165 )
2012-02-03 16:25:57 -08:00
Brendan Dahl
b3fb41caa9
Merge pull request #1106 from arturadib/issue-1049
...
fontMatrix parsing fix, setFont() supports negative sizes
2012-02-03 11:10:58 -08:00
notmasteryet
cba531e3cd
Fixing test execution / relative URL protocol detection
2012-02-02 23:31:12 -06:00
notmasteryet
03cb546f29
FTP protocol support ( #1165 )
2012-02-02 21:06:13 -06:00
Artur Adib
0fc6c03956
Lab color space, closes #1133
2012-02-01 17:48:44 -05:00
Artur Adib
a39d487283
LabCS infra: args passed OK
2012-02-01 16:13:42 -05:00
Artur Adib
74ec7a4103
LabCS infra working
2012-02-01 16:04:12 -05:00
notmasteryet
ff01faa86f
Merge pull request #1148 from arturadib/readXRefTable
...
Rewrite of readXRefTable [obj.js]
2012-02-01 04:40:22 -08:00
notmasteryet
13f207424c
Merge pull request #1118 from brendandahl/amowarnings
...
Address AMO Review Concerns
2012-02-01 04:33:51 -08:00
Brendan Dahl
218714fe57
Merge pull request #1151 from notmasteryet/sampled
...
implement sampled functions based on the PDF spec (part 2)
2012-01-31 20:34:22 -08:00
notmasteryet
5fba376a33
Fixing interpolation (continuation of #1143 )
2012-01-31 20:19:44 -06:00
Brendan Dahl
b381c960d9
Merge branch 'master' of https://github.com/mozilla/pdf.js into amowarnings
2012-01-31 17:53:54 -08:00
Artur Adib
589410d528
Merge pull request #1135 from notmasteryet/tree-62
...
Fixing standard encoding mapping (bonus symbol encoding)
2012-01-31 12:30:41 -08:00
Artur Adib
7873ec966b
Merge branch 'refs/heads/master' into issue-1049
...
Conflicts:
src/canvas.js
2012-01-31 13:20:05 -05:00
Artur Adib
775290d698
Lint
2012-01-31 10:57:32 -05:00
Artur Adib
9e9674d45c
Remove debugging line
2012-01-31 10:50:30 -05:00
Artur Adib
0959cd3517
New readXRefTable, working
2012-01-31 10:49:06 -05:00
Artur Adib
4375bd2219
progress
2012-01-31 09:57:12 -05:00
Artur Adib
8068ff242d
readXRefTable rewrite, progress
2012-01-31 09:01:04 -05:00
notmasteryet
2047fba8cb
Merge pull request #1122 from kkujala/refactor
...
Change throws to errors.
2012-01-30 18:35:35 -08:00
Artur Adib
30a01c5da6
addressing reviewer comments, bug fix
2012-01-30 09:24:49 -05:00
Andreas Gal
59283bdf6d
implement sampled functions based on the PDF spec
2012-01-30 01:38:28 -08:00
Andreas Gal
9650df5c10
fix style and add var declaration
2012-01-29 15:05:26 -08:00
Kalervo Kujala
e3a3ec6f2e
Use JPX and JPEG in error messages.
...
Also throw in workerConsole.
2012-01-29 22:25:06 +02:00
Andreas Gal
28f82e3dd7
rewrite CMYK to RGB conversion
2012-01-29 11:09:33 -08:00
notmasteryet
5415fed14d
Mapping well-known chars to the similar equivalents in the normal characters range
2012-01-27 20:36:27 -06:00
notmasteryet
10a0a60f8e
Fixing symbols encoding
2012-01-27 18:53:05 -06:00
notmasteryet
dd066f8369
Fixing standard encoding mapping
2012-01-26 18:51:58 -06:00
Kalervo Kujala
66e3441e0e
Change throws to errors.
2012-01-24 22:10:16 +02:00
Brendan Dahl
4d3057aba7
Fix lint.
2012-01-23 17:52:53 -08:00
Brendan Dahl
178b89342a
Switch to stream converter for extension.
2012-01-23 16:50:45 -08:00
Artur Adib
b34c55cc3c
Use ES5 .trim()
2012-01-23 15:29:15 -05:00
Artur Adib
5c8753dcba
Fixing regression errors, better logic
2012-01-23 15:23:09 -05:00
notmasteryet
1ac24dbc01
Merge remote-tracking branch 'mozilla/master' into textsearch-1
...
Conflicts:
src/core.js
src/fonts.js
2012-01-22 13:56:56 -06:00
notmasteryet
c6662d12e1
Changing glyphNameMap and GlyphUnicode lookup order
2012-01-21 17:18:36 -06:00
Artur Adib
bbdec90c0d
Lint
2012-01-20 18:44:51 -05:00
Artur Adib
786cccf636
setFont() supports negative size, closes #1049
2012-01-20 18:41:01 -05:00
Artur Adib
86de8aca33
Nit
2012-01-20 16:25:06 -05:00
Artur Adib
357f4cc665
Clarifying variable role
2012-01-20 15:20:25 -05:00
Artur Adib
66eff7a5cb
more robust fontMatrix parsing, error checking
2012-01-20 14:55:52 -05:00
notmasteryet
016fd3282e
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into jpx6
...
Conflicts:
test/pdfs/.gitignore
2012-01-19 17:46:48 -06:00
Artur Adib
7f3d5ae6d3
Fix worker message, better error handling
2012-01-19 14:19:19 -05:00
Artur Adib
d9f1365b9c
Merge pull request #1092 from notmasteryet/issue-940
...
Fixes type2 fonts conversion
2012-01-19 06:59:35 -08:00
Artur Adib
45691b2522
Merge pull request #1080 from notmasteryet/runlength
...
RunLengthDecode implementation
2012-01-19 05:48:04 -08:00
notmasteryet
aaa193ca0f
Merge pull request #1097 from brendandahl/zerowidthline
...
Fix zero width lines.
2012-01-18 19:24:30 -08:00
notmasteryet
f3ab505b41
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into jpx6
...
Conflicts:
test/test_manifest.json
2012-01-18 20:14:43 -06:00
Artur Adib
ee8c86d2b6
Merge pull request #1086 from notmasteryet/issue-1084
...
Use .sheet property instead of document.styleSheets
2012-01-18 09:25:37 -08:00
Brendan Dahl
8aac2256ed
Fix zero width lines.
2012-01-17 20:50:49 -08:00
notmasteryet
782b67b967
Merge pull request #1095 from arturadib/issue-1055
...
Fixes #1055 by falling back to page resources
2012-01-17 17:19:51 -08:00
Artur Adib
f97bc8df6f
Lint
2012-01-17 14:45:57 -05:00
Artur Adib
06c4c83edf
Fixes #1055 by falling back to page resources
2012-01-17 14:40:52 -05:00
Brendan Dahl
f9c6340482
Merge pull request #1094 from notmasteryet/issue-1093
...
Fallback map of the "non-standard" fonts
2012-01-17 09:29:33 -08:00
notmasteryet
85a0eccc7e
Fallback map of the "non-standard" fonts
2012-01-16 18:10:48 -06:00
notmasteryet
2927f5e7bd
Fixes type2 fonts conversion ( #940 )
2012-01-16 14:13:38 -06:00
notmasteryet
1bb5592357
Replace makeCssRgb.apply in setStrokeColor and setFillColor
2012-01-16 11:53:59 -06:00
notmasteryet
8b52b50c67
Use .sheet property instead of document.styleSheets
2012-01-15 15:19:51 -06:00
notmasteryet
9eaf746a33
Replace makeCssRgb.apply with direct call (avoiding Chrome 16 typed array issue)
2012-01-15 14:01:36 -06:00
notmasteryet
6de2ca568d
Implements RunLengthDecode filter
2012-01-14 13:47:14 -06:00
notmasteryet
e43afd3fe5
Fixing inclusion tree when layers are skipped and 0xFF at the packet header end
2012-01-14 13:15:16 -06:00
notmasteryet
ac592a2fdd
Light optimization
2012-01-13 18:45:19 -06:00
notmasteryet
5b6c06d5c6
Address review comments
2012-01-13 18:24:02 -06:00
notmasteryet
8af527919a
fix lint error, remove unnecessary comment
2012-01-11 20:54:27 -06:00
notmasteryet
93ca387d1b
Migration of the JPX code (from jpx5)
2012-01-11 20:08:46 -06:00
Brendan Dahl
93bb2cf0d3
Merge pull request #969 from arturadib/fix-worker-loader
...
Fix worker_loader.js for examples/. Simpler code
2012-01-11 17:18:01 -08:00
Brendan Dahl
bd6d89e1a8
Start of the benchmark recording framework.
2012-01-11 16:48:51 -08:00
Brendan Dahl
be2f973be8
Merge pull request #1051 from notmasteryet/fonts-3
...
Using the encoding instead of predefined MacRoman in TrueType fonts;
2012-01-11 10:38:36 -08:00
Artur Adib
7611a766c7
Merge branch 'refs/heads/master' into fix-worker-loader
...
Conflicts:
src/core.js
2012-01-11 11:47:41 -05:00
notmasteryet
09dfde69a2
Duplicate short map into private use area
2012-01-10 22:01:24 -06:00
notmasteryet
933be30c3a
Converting MacRoman symbols to Unicodes
2012-01-10 19:41:45 -06:00
notmasteryet
550819b829
fix serif and symbol attribute detection for standard fonts
2012-01-09 21:15:18 -06:00
notmasteryet
982ea98c44
replacing non-existent page content with empty one
2012-01-09 20:08:22 -06:00
notmasteryet
a84fa13189
using font flags to recognize the symbol and serif fonts; using the encoding instead of predefined MacRoman in TrueType fonts
2012-01-09 19:36:24 -06:00
Artur Adib
4322e7e339
Merge pull request #1042 from notmasteryet/tree-55
...
fetch/getEntry returns null if the entry is free
2012-01-09 12:22:16 -08:00
notmasteryet
d3b3842946
fetch/getEntry returns null if the entry is free
2012-01-08 14:03:00 -06:00
Kalervo Kujala
d89680bd94
Merge remote-tracking branch 'upstream/master' into refactor
2012-01-07 21:32:16 +02:00
notmasteryet
4bb289ec49
Merge pull request #1026 from brendandahl/nativedecode
...
Decode JPEGs using browser when possible
2012-01-05 16:25:21 -08:00
Kalervo Kujala
bc3b8e0ff1
Merge remote-tracking branch 'upstream/master' into refactor
2012-01-05 22:24:35 +02:00
Brendan Dahl
7bf5daa273
Only set transform when its a non default.
2012-01-05 11:06:17 -08:00
Artur Adib
0817c4274d
Merge pull request #1022 from notmasteryet/tree-53
...
Fixes this.xref.trailer.get("ID")[0] is undefined
2012-01-05 07:44:52 -08:00
notmasteryet
caacd31a2c
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into tree-53
...
Conflicts:
test/test_manifest.json
2012-01-04 19:57:08 -06:00
Brendan Dahl
3154ec4e38
Fix bracket nit.
2012-01-04 17:22:07 -08:00
Brendan Dahl
dddcb9c91b
Add error backs for promises.
2012-01-04 16:13:53 -08:00
Artur Adib
07deee5750
Merge pull request #954 from notmasteryet/textlayout-ui
...
Move text layer UI to viewer.js...
2012-01-04 12:52:03 -08:00
Artur Adib
ddf57072a9
Merge pull request #1025 from arturadib/issue-1015
...
Add findTableCode() to prototype
2012-01-04 12:31:14 -08:00
Brendan Dahl
9538da2b58
Move comments.
2012-01-04 11:56:53 -08:00
Brendan Dahl
702af87731
Merge branch 'master' of https://github.com/mozilla/pdf.js into nativedecode
2012-01-04 11:25:46 -08:00
notmasteryet
1fa5e80ebe
Fixes this.xref.trailer.get("ID")[0] is undefined
2012-01-03 19:20:29 -06:00
notmasteryet
edb0ae4eb8
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
...
Conflicts:
src/canvas.js
2012-01-03 18:42:13 -06:00
Chris Jones
27d2d99bd8
Merge pull request #1013 from LegNeato/master
...
Always add style element to the head
2012-01-03 14:30:14 -08:00
Brendan Dahl
3c2a0f11b1
Decode more jpegs using the browser if possible.
2012-01-03 14:26:19 -08:00
Julian Viereck
bf26c1a18c
Merge pull request #957 from jviereck/viewer_default_width
...
Change default width to page-width
2012-01-03 14:02:34 -08:00
Artur Adib
86387272fc
webkit dash support
2012-01-03 14:51:35 -05:00
Saebekassebil
7fd0dbbc17
Typdoh
2012-01-03 19:38:45 +01:00
Saebekassebil
77e900da11
Add #findTableCode to CCITTFaxStream's prototype, fixing issue #1015
2012-01-03 19:11:13 +01:00
Christian Legnitto
03e39363b6
Add the style element to the head rather than first element in the document, as the first element could be a comment and this would line would then throw
2012-01-02 21:40:43 -08:00
Julian Viereck
52aba8648e
Add displayReadyPromise to the Page object to not request the IRQueue all the time and simplify some stuff
2012-01-02 20:02:20 +01:00
Julian Viereck
0c22e5d653
Make sure resolving the promise sets some data
2012-01-02 20:02:20 +01:00
notmasteryet
739f111ce1
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
2012-01-01 13:13:16 -06:00
Brendan Dahl
78f7354dc7
Merge pull request #1009 from notmasteryet/issue-1001
...
Fix stitching function; media box fix
2011-12-30 18:25:19 -08:00
notmasteryet
7b479c352c
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
...
Conflicts:
web/viewer.js
2011-12-30 20:04:08 -06:00
notmasteryet
cbf4c0393f
Replace nbsp entity with character code
2011-12-30 19:32:35 -06:00
notmasteryet
877e0f4159
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textlayout-ui
...
Conflicts:
web/viewer.js
2011-12-30 19:22:59 -06:00
notmasteryet
6672420f8d
Fixing CropBox
2011-12-30 18:52:15 -06:00
notmasteryet
c0cf081ec0
Merge pull request #994 from brendandahl/type4func
...
Type4 PostScript Functions
2011-12-30 16:05:49 -08:00
Brendan Dahl
df1e22f2e4
Switch to push instead of slice. Faster on jsperf, but doesn't seem to be faster testing locally.
2011-12-30 14:59:00 -08:00
notmasteryet
3f286803d0
Move the media left-top corner to the (0,0) canvas position
2011-12-30 16:45:33 -06:00
Brendan Dahl
acd64d75f3
Switch to conditional operator.
2011-12-30 13:38:09 -08:00
Brendan Dahl
9de52f375d
Fix idiv and cvi. Add test case for idiv.
2011-12-30 13:25:34 -08:00
Brendan Dahl
9fd41e11da
Merge pull request #990 from notmasteryet/concurload
...
Fixes concurrent pages loading (#974 and #626 )
2011-12-30 09:40:12 -08:00
Brendan Dahl
6afb49c6c6
Address Yury's PR comments.
2011-12-30 09:24:13 -08:00
notmasteryet
baab676b00
Fix stitching function
2011-12-29 22:53:25 -06:00
notmasteryet
6a0dd63526
Merge pull request #985 from kkujala/test
...
Add basic unit tests for obj.js.
2011-12-29 19:01:39 -08:00
Brendan Dahl
20dace0513
Switch to a single "code stack".
2011-12-29 13:41:54 -08:00
Brendan Dahl
7c8445753d
Merge upstream.
2011-12-29 12:37:15 -08:00
Brendan Dahl
9161c2e688
Merge pull request #972 from notmasteryet/textstroke
...
Correct stroke width for text; convert intel-load test to eq-test
2011-12-28 20:12:08 -08:00
Brendan Dahl
27b0d0c941
Switch to two arrays for instructions.
2011-12-28 20:08:18 -08:00
Kalervo Kujala
84d6a121af
Add basic unit tests for obj.js.
2011-12-28 23:20:04 +02:00
Steffen Märcker
d769535bee
fixed the remaining style error
2011-12-28 19:57:12 +01:00
Steffen Märcker
b506bc7f44
fixed lint errors
2011-12-28 17:32:54 +01:00
Steffen Märcker
9fcd303519
fixed typo
2011-12-28 15:23:39 +01:00
Steffen Märcker
c2b42b1cfc
Small refactoring of fallback code to fake worker.
2011-12-28 15:21:32 +01:00
Steffen Märcker
fdcc4ca590
Added fallback to fake worker if serialization of typed array fails.
...
This happens e.g. in Opera 11.60.
2011-12-28 09:10:06 +01:00
Saebekassebil
e147485262
Refactoring Settings manager, now with limit on memory usage
2011-12-26 15:07:24 +01:00
Brendan Dahl
971f35d165
Add unit files to lint, fix lint errors.
2011-12-23 21:19:15 -08:00
Brendan Dahl
1089c30b56
Adding type4 postscript function support.
2011-12-23 19:41:12 -08:00
notmasteryet
d7754a402e
Correct stroke width for text; convert intel-load test to eq-test
2011-12-22 17:43:14 -06:00
Saebekassebil
0de0e92bc4
Added #getFingerprint method to PDFDocModel
2011-12-22 23:44:42 +01:00
Saebekassebil
d44f9f2074
Implemented Settings manager. Now remembering scroll positions
2011-12-22 22:29:01 +01:00
Kalervo Kujala
13b88a07e0
Move initialization of uniquePrefix higher.
2011-12-22 20:05:39 +02:00
Artur Adib
b2791c60a6
Fixed worker_loader for examples/; simplified
2011-12-22 09:40:00 -05:00
Saebekassebil
12e2dcd775
Addressing notmasteryet's comments
2011-12-22 11:29:27 +01:00
Saebekassebil
c714c782cc
Lint nits
2011-12-21 23:37:52 +01:00
Saebekassebil
4a661e1735
Implemented Comment and Check annotation. Correcting some typos in last commit
2011-12-21 23:22:07 +01:00
Artur Adib
ca7d44c646
Merge pull request #749 from notmasteryet/forms-1
...
Simple AcroForms support
2011-12-21 06:16:30 -08:00
notmasteryet
3a396b4834
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
2011-12-20 19:54:41 -06:00
notmasteryet
f007455ac4
Merge pull request #961 from brendandahl/smaskscale
...
Scaling Soft Masks
2011-12-19 18:39:26 -08:00
Brendan Dahl
5cfe97611f
Rename some variables.
2011-12-19 16:31:47 -08:00
notmasteryet
b8672d7efb
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
2011-12-19 18:06:31 -06:00
notmasteryet
3bde084ffd
add "find" images; function name fix
2011-12-19 18:05:32 -06:00
Brendan Dahl
db4a11e568
Fix comment.
2011-12-19 14:58:01 -08:00
Julian Viereck
e9c762a97f
Address review comments by notmasteryet
2011-12-19 16:37:36 +01:00
Brendan Dahl
03ec82ba62
Fix nits.
2011-12-18 17:29:08 -08:00
Brendan Dahl
87d72023dc
Scale smask and image to the max dimensions of either one. Fix grayscale to scale the input value based on bpc.
2011-12-18 17:18:36 -08:00
Brendan Dahl
74b66c0a7b
Fix bug, decoding was always getting called.
2011-12-18 17:17:35 -08:00
Julian Viereck
156e20ca73
Cache Cmd object to reduce number of created objects
2011-12-18 20:39:10 +01:00
notmasteryet
0f6291c7b9
Move text layer UI to viewer.js; fixes adding div with single char; replaces innerHTML to textContent
2011-12-18 12:53:30 -06:00
Brendan Dahl
3175e5498c
Merge remote-tracking branch 'upstream/master' into smaskscale
2011-12-16 10:11:40 -08:00
Artur Adib
f7f7269253
Merge pull request #937 from ironymark/master
...
stop canvasRenderTextLayer blocking browser UI
2011-12-16 09:06:18 -08:00
Adil Allawi
b921486bce
simplify adding of textdivs to DOM as queue is no longer needed
2011-12-16 10:38:30 +00:00
Brendan Dahl
abad94d2b6
Lints.
2011-12-15 16:30:51 -08:00
Brendan Dahl
01e876f014
Merge remote-tracking branch 'origin/decodemap' into smaskscale
2011-12-15 15:20:36 -08:00
Brendan Dahl
8096d747c0
Fix nits.
2011-12-15 15:13:48 -08:00
Brendan Dahl
f4f125f67d
Merge remote-tracking branch 'upstream/master' into decodemap
2011-12-15 14:41:03 -08:00
notmasteryet
b010f293a2
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
2011-12-15 15:35:44 -06:00
Adil Allawi
5bd080fd05
oops, interval was not clearing because 'this' is not the same 'this' inside an interval. Should use local variable 'self' instead. Reviewers you should have spotted this! :)
2011-12-15 11:32:58 +00:00
Adil Allawi
c93e7c9c87
Merge branch 'master' of https://github.com/mozilla/pdf.js
2011-12-15 10:09:04 +00:00
Adil Allawi
4a14a79884
use array index instead of array.shift()
2011-12-15 10:08:50 +00:00
Adil Allawi
cc007b539a
fix lint nitpick
2011-12-15 09:20:55 +00:00
notmasteryet
c85ec052b1
Unicode normalization; lint warnings
2011-12-14 21:42:06 -06:00
notmasteryet
04551dbf57
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into textsearch-1
...
Conflicts:
src/core.js
2011-12-14 19:37:21 -06:00
Adil Allawi
ce57bac447
Build Text Layer one div at a a time as an Interval instead of a all in a TimeOut to keep the browser responsive
2011-12-14 22:28:34 +00:00
Brendan Dahl
d1f4e7c7d5
Change to passing promises.
2011-12-14 14:02:00 -08:00
Brendan Dahl
c2b91f1272
Merge upstream.
2011-12-14 13:41:36 -08:00
Brendan Dahl
5ad3a9cc72
Add basic rescale support for smacks.
2011-12-14 12:27:56 -08:00
Brendan Dahl
9d042ce166
Use the general function for is default decode.
2011-12-14 08:47:35 -08:00
notmasteryet
45ef8742ac
type3 font.coded comment; proper geometery for showText; glyph name
2011-12-13 18:28:02 -06:00
notmasteryet
c9981b6ff4
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into tree-49
2011-12-13 17:57:58 -06:00
Brendan Dahl
ff1d804fd7
Move the default decode to logic to the colorspace.
2011-12-13 14:35:46 -08:00
Brendan Dahl
55bbcbc664
Working improved version. Still need to refactor default decode stuff.
2011-12-13 13:53:22 -08:00
Brendan Dahl
868d07e289
Merge pull request #917 from arturadib/check-pixels
...
Throw error on # of pixels mismatch
2011-12-13 13:31:57 -08:00
Brendan Dahl
ac3ccdef4a
Merge remote-tracking branch 'origin/nativejpegsmask' into decodemap
2011-12-13 09:12:26 -08:00
Brendan Dahl
2f10d24502
Fix for chrome.
2011-12-13 09:05:00 -08:00
Brendan Dahl
d76f5f6815
Playing with initial decode map impl.
2011-12-13 08:48:27 -08:00
notmasteryet
bed87284db
Fixing Type3 text layer creation and character spacing
2011-12-12 21:32:20 -06:00
Brendan Dahl
3f8ba7d56a
Merge upstream.
2011-12-12 15:34:11 -08:00
Brendan Dahl
94a48cab82
Address Julian's comments.
2011-12-12 15:09:05 -08:00
Brendan Dahl
fcd612e486
Add comments to some of the code I touched/created.
2011-12-12 11:38:16 -08:00
Artur Adib
2113e0615e
Reverting error(); warn() instead of TODO()
2011-12-12 14:33:26 -05:00
Brendan Dahl
948de2bdbe
Remove some unintended changes.
2011-12-12 09:53:31 -08:00
Brendan Dahl
176452c988
Style nits.
2011-12-12 09:26:24 -08:00
Brendan Dahl
0d370fd206
Remove debugging.
2011-12-12 09:17:40 -08:00
Brendan Dahl
4c01766278
Merge upstream.
2011-12-11 21:13:53 -08:00
Brendan Dahl
683f64d54f
Use promises to track completion of decoding.
2011-12-11 16:56:45 -08:00
notmasteryet
4d44eb6184
fix stream reset, interrupting thread when pages are indexed
2011-12-11 18:14:52 -06:00
notmasteryet
94cc2cdb75
Char code to unicode conversion
2011-12-11 17:59:19 -06:00
notmasteryet
3b72c6063c
Text char codes extraction
2011-12-10 17:24:54 -06:00
notmasteryet
315b089b28
( #919 ) Fixing toUnicode mapping for TrueType fonts with identity mapping
2011-12-09 21:21:58 -06:00
Brendan Dahl
853f16085f
Merge pull request #909 from notmasteryet/tree-45
...
Fixing TrueType code-glyph assigmnent to pass sanitizer
2011-12-09 17:22:47 -08:00
notmasteryet
240bde97b2
Using 'in' instead of array index
2011-12-09 18:25:44 -06:00
Artur Adib
de33e44b09
Lint
2011-12-09 14:57:52 -05:00
Artur Adib
d29e39d754
Merge pull request #898 from kkujala/style
...
Name constructors in obj.js.
2011-12-09 08:02:06 -08:00
Artur Adib
d65c38c995
Merge pull request #913 from notmasteryet/issue-863
...
Bad pdf with scanned image
2011-12-09 07:29:02 -08:00
Brendan Dahl
7d1cddf371
Add ability to fast track natively supported jpegs.
2011-12-08 21:18:04 -08:00
notmasteryet
b11d1b2282
Fix error object wrapper ( #914 )
2011-12-08 20:09:19 -06:00
notmasteryet
fa89ebe537
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into issue-863
...
Conflicts:
test/pdfs/.gitignore
2011-12-08 19:22:44 -06:00
notmasteryet
54c31968e7
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into issue-863
2011-12-08 19:20:33 -06:00
Artur Adib
fcbe4f13d1
More sanity checks
2011-12-08 18:19:36 -05:00
Brendan Dahl
d1c823efce
Cleaned up how messages are passed and replies work.
2011-12-08 14:51:26 -08:00
Kalervo Kujala
cd01302de8
Merge remote-tracking branch 'upstream/master' into style
...
Conflicts:
src/image.js
src/pattern.js
2011-12-09 00:28:31 +02:00
Kalervo Kujala
1ef4c94de2
Name all constructors.
2011-12-09 00:18:43 +02:00
Artur Adib
a21030a502
Throw error when pixels don't match
2011-12-08 17:13:17 -05:00
Brendan Dahl
f7207a51f8
Fix missing bracket.
2011-12-08 12:54:02 -08:00
Brendan Dahl
146cd8c861
Second stage, smasks now working. Still needs optimization.
2011-12-08 12:50:34 -08:00
Artur Adib
7ea770fd08
Merge pull request #911 from notmasteryet/issue-906
...
(#906 ) fixing glyph width defined by glyph name
2011-12-08 07:02:23 -08:00
notmasteryet
301a6795db
( #906 ) fixing glyph width defined by glyph name
2011-12-07 23:30:48 -06:00
notmasteryet
fa18c8022e
remove glyph references outside range of avaialable glyphs
2011-12-07 21:38:34 -06:00
notmasteryet
18db087f79
Fixing TrueType code-glyph assigmnent to pass sanitizer
2011-12-07 20:59:44 -06:00
Brendan Dahl
2a632d4ab2
First stage of trying to support smasks on native jpegs.
2011-12-07 15:36:27 -08:00
notmasteryet
cb592d6e51
Merge pull request #776 from jviereck/jpegimage_cleanup
...
Don't create JpegImage object anymore - go functional style
2011-12-07 11:11:11 -08:00
Artur Adib
9ea8668dcb
Merge pull request #905 from notmasteryet/issue-886b
...
Fixing missing text (#886 )
2011-12-07 10:11:46 -08:00
Julian Viereck
af8e2a1189
Address review comments by yury
2011-12-07 19:07:00 +01:00
Artur Adib
4a9275268d
Merge pull request #907 from notmasteryet/tree-43
...
Fixes the unicode symbols on the text layer
2011-12-07 09:26:21 -08:00
Artur Adib
c3f6dc6055
Merge pull request #908 from notmasteryet/tree-44
...
fixes gradient fill (#840 )
2011-12-07 08:27:09 -08:00
Artur Adib
2ab4f4dda0
Merge pull request #895 from kkujala/constants
...
Use constants for paint type and pattern size.
2011-12-07 07:29:37 -08:00
notmasteryet
7d64d3168f
Revert int16 clamping for horizontal metrics
2011-12-07 06:47:52 -06:00
notmasteryet
69e5cf2560
fixes gradient fill ( #840 )
2011-12-07 06:42:01 -06:00
notmasteryet
9234c315d5
Fix the unicode symbols on the text layer
2011-12-06 22:59:06 -06:00
notmasteryet
fe02078c9d
Fixing missing text ( #886 )
2011-12-06 22:13:14 -06:00
Kalervo Kujala
f239d01bde
Name constructors in obj.js.
2011-12-07 00:18:40 +02:00
Kalervo Kujala
477683e514
Use constants for paint type and pattern size.
2011-12-06 22:07:35 +02:00
Artur Adib
9eae90a1ba
Merge pull request #885 from notmasteryet/issue-884
...
(#884 ) Use unicode mapping cmap when simple identity cmap was originally used
2011-12-06 11:59:07 -08:00
Artur Adib
bf755f459e
Merge pull request #870 from notmasteryet/issue-867
...
(#867 ) Set Type3 font encoding; enable text selection testing
2011-12-06 10:12:56 -08:00
Artur Adib
7edefbbe41
Merge pull request #846 from jviereck/feature_img_data
...
Add feature detection for using Uint8Array as imageData
2011-12-06 07:17:23 -08:00
notmasteryet
b8a5d6b8a7
Use unicode mapping cmap when simple identity cmap was originally used
2011-12-05 20:42:39 -06:00
notmasteryet
aaa672d5ff
Fixing opening from the file system
2011-12-05 17:48:21 -06:00
notmasteryet
dbf869f195
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
...
Conflicts:
web/viewer.css
2011-12-05 17:01:45 -06:00
Artur Adib
3c601f012b
Merge pull request #864 from notmasteryet/issue-799
...
Suppress invisible text (#799 )
2011-12-05 12:55:49 -08:00
Brendan Dahl
3b112edd91
Merge pull request #857 from jviereck/hotcmds
...
Only check execution time on some commands
2011-12-05 10:43:03 -08:00
Julian Viereck
cf7d4503d6
Address review comments: Introduce new CanvasGraphics.putBinaryImageData and make sure feature detection work always
2011-12-05 18:27:09 +01:00
Julian Viereck
d5f4fd05c6
Merge pull request #871 from kkujala/constants
...
Use constants for radial and axial types.
2011-12-05 09:24:06 -08:00
Julian Viereck
ab08d90680
Merge pull request #868 from kkujala/refactor
...
Fix few early returns in parser.js.
2011-12-05 09:23:32 -08:00
Artur Adib
e44521eae3
Merge pull request #862 from notmasteryet/issue-828
...
Fallback to object indexing when reading of xref fails (#828 )
2011-12-05 09:06:53 -08:00
Julian Viereck
97802aac64
Inline JpegImageLoader to remove new JpegImageLoader call
2011-12-05 17:59:03 +01:00
Kalervo Kujala
cca0306789
Use object-enumeration for pattern type.
2011-12-05 00:38:45 +02:00
fixplz
5fd3647c57
Style fixes
2011-12-05 00:00:22 +02:00
Kalervo Kujala
7116ce0b53
Use constants for radial and axial types.
2011-12-04 22:22:39 +02:00
notmasteryet
3ea81bf0a6
( #867 ) Set Type3 font encoding; enable text selection testing
2011-12-04 13:51:12 -06:00
Kalervo Kujala
d2303493fe
Fix few early returns in parser.js.
2011-12-04 21:22:08 +02:00
notmasteryet
2719e8eadc
add stroke and other text rendering modes
2011-12-02 22:30:31 -06:00
fixplz
7fa9b5827a
Avoid skipping over tag in startxref search
2011-12-03 01:55:59 +02:00
notmasteryet
00d1204705
Suppress invisible text ( #799 )
2011-12-02 16:52:31 -06:00
fixplz
b1ed459443
Scan for startxref more than 1024 chars from end #828
2011-12-03 00:33:00 +02:00
notmasteryet
01a96fdddf
Fixing lint errors; extra empty lines
2011-12-02 15:35:18 -06:00
notmasteryet
0f7f80ee6e
If readXRefStream or readXRefTable fails, fallback to object indexing ( #828 )
2011-12-02 15:31:29 -06:00
Brendan Dahl
e0c231eec7
Merge upstream and change to error parameter for callback.
2011-12-02 10:19:43 -08:00
notmasteryet
bb6e5c6e00
( #840 ) fix font stretching and overlapping characters encoding
2011-12-01 20:56:26 -06:00
Artur Adib
705356fa41
Addressing comments by @vingtetun
2011-12-01 14:11:17 -05:00
Brendan Dahl
3ae06c96ad
Address Yury's comments.
2011-12-01 09:11:33 -08:00
Artur Adib
5e1d78ef20
Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
...
Conflicts:
src/canvas.js
2011-12-01 10:42:07 -05:00
Julian Viereck
594e5daa7c
Only check execution time on some commands
2011-12-01 00:02:30 +01:00
notmasteryet
0414c0711f
Fixing base encoding presence detection; character width scale
2011-11-29 22:06:00 -06:00
Brendan Dahl
e5d91ab219
Fix invalid arguments error.
2011-11-29 14:50:19 -08:00
Artur Adib
e2e2240a22
Lint lint lint
2011-11-29 16:02:12 -05:00
Brendan Dahl
cddb106358
Fix lints.
2011-11-29 11:32:01 -08:00
Brendan Dahl
b40af3555b
Display error messages on more problems.
2011-11-29 11:28:05 -08:00
Artur Adib
a544bed57e
Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
...
Conflicts:
src/canvas.js
2011-11-29 14:17:05 -05:00
Julian Viereck
01d2929401
Add feature detection for using Uint8Array as imageData
2011-11-29 19:31:47 +01:00
Artur Adib
fcc05b08bf
Merge pull request #838 from notmasteryet/to-unicode-1
...
Making cmap equal to ToUnicode tables
2011-11-29 10:28:50 -08:00
notmasteryet
683a8f0de8
Remove indexOf, using reverse map instead
2011-11-28 21:54:07 -06:00
Brendan Dahl
eaac818946
Merge and fix upstream conflict.
2011-11-28 17:49:12 -08:00
notmasteryet
88310a09c2
Removing refreshToUnicode
2011-11-28 19:49:02 -06:00
notmasteryet
e4e864766d
Fix CIDFontType2 large cmap tables
2011-11-28 19:47:37 -06:00
Brendan Dahl
d6925b13ba
Adding new errorback and code to display error messages.
2011-11-28 16:55:09 -08:00
Artur Adib
4cfc552163
Merge branch 'master' of git://github.com/mozilla/pdf.js into text-select
...
Conflicts:
src/canvas.js
web/viewer.js
2011-11-28 10:02:07 -05:00
Artur Adib
a1853185b1
Comments
2011-11-28 09:25:25 -05:00
notmasteryet
2e70984f38
Merge pull request #829 from jviereck/canvas_currentTransform
...
Implement ctx.mozCurrentTransform and ctx.mozCurrentTransformInverse shim
2011-11-28 05:09:42 -08:00
notmasteryet
08e3fd88ad
Removing adaptUnicode; making cmap equal to ToUnicode tables
2011-11-27 20:43:23 -06:00
Julian Viereck
8991cfad83
Check after each executed command if execution took too long already
2011-11-27 20:54:25 +01:00
Julian Viereck
36e618c373
Address Yury's review comments + remove call to addCtxCurrentTransform in pattern.js as the contet is added during the CanvasGraphics constructor already
2011-11-27 09:22:21 +01:00
Julian Viereck
a30f0ff848
Implement ctx.mozCurrentTransform and ctx.mozCurrentTransformInverse shim
2011-11-27 09:22:20 +01:00
notmasteryet
709dc1a0c9
Initial ToUnicode modifications
2011-11-24 09:38:09 -06:00
notmasteryet
de17cb32cd
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
2011-11-22 19:26:37 -06:00
Brendan Dahl
faa202df1e
Merge upstream and change test pdf file.
2011-11-22 10:39:26 -08:00
notmasteryet
2829e8016a
Merge pull request #794 from brendandahl/devicen
...
DeviceN Colorspace and Multidimensional Sampling Function Support
2011-11-22 09:42:53 -08:00
Brendan Dahl
b64b7d55b1
Use the updated jpgjs with faster transform.
2011-11-22 09:32:20 -08:00
Brendan Dahl
0e0527be81
Address Yury's comment.
2011-11-21 17:23:54 -08:00
Artur Adib
dc33b24fae
Merge branch 'refs/heads/master' into text-select
2011-11-21 11:45:10 -05:00
Artur Adib
385b6df2b4
Linting
2011-11-18 13:54:27 -05:00
Artur Adib
5e0d704b12
Macro for generating version information
2011-11-17 15:45:33 -05:00
Brendan Dahl
d2964f3e94
Update documentation.
2011-11-16 15:12:42 -08:00
notmasteryet
7a2301dc95
Inline setXXXRGBColor calls
2011-11-15 20:16:22 -06:00
notmasteryet
ef58ccd284
Issue #644 : bypassing identity cmap translation loading; resetting color space when stroke/fill color set
2011-11-15 18:23:45 -06:00
Artur Adib
b1ae23772f
No suppressWarnings in Yury's encoding patch
2011-11-14 15:32:52 -05:00
Artur Adib
5c261b46cc
Merge branch 'refs/heads/master' into text-select
...
Conflicts:
src/fonts.js
2011-11-14 15:21:18 -05:00
Artur Adib
a182431ac5
Fixing lint
2011-11-14 13:59:11 -05:00
notmasteryet
1d8a40b372
Fixing inheritable forms input control properties
2011-11-12 15:39:23 -06:00
notmasteryet
1c18d054d5
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into forms-1
2011-11-12 15:20:31 -06:00
notmasteryet
60744a8a61
Merge branch 'master' of git://github.com/mozilla/pdf.js.git into encoding-2
...
Conflicts:
src/evaluator.js
src/fonts.js
2011-11-12 11:09:19 -06:00
Brendan Dahl
543e3377de
Adding multi dimensional interpolation and test file.
2011-11-11 14:44:47 -08:00
Julian Viereck
aee1ccf394
Merge pull request #789 from kkujala/master
...
Fix jslint warnings in pattern.js.
2011-11-11 00:30:22 -08:00
Brendan Dahl
74004b23bb
Add comments, fix default color.
2011-11-10 14:23:58 -08:00
Brendan Dahl
c198ec4323
Makes new alternate colorspace which handles separation and device.
2011-11-10 14:06:42 -08:00
Kalervo Kujala
2988b33dcc
Fix jslint warnings in pattern.js.
...
Also refactor few small issues.
2011-11-10 21:09:05 +02:00
Julian Viereck
99254891e6
Disable work on firefox using feature detection
2011-11-10 18:38:22 +01:00
Brendan Dahl
a12419c084
Initial devicen colorspace support.
2011-11-10 08:41:36 -08:00
Brendan Dahl
b872a08f4f
Data is now created by jpg.js since we don't know the size.
2011-11-09 09:50:40 -08:00
Brendan Dahl
073af78307
Handle device gray and pass in the color transform option.
2011-11-09 09:29:33 -08:00
Artur Adib
8c182cb724
Default font fallback is same as setFont()'s
2011-11-08 17:27:02 -05:00
Brendan Dahl
493805d952
Remove the alternative way to do CMYK check. Checking the colorspace seems sufficient.
2011-11-08 14:00:39 -08:00
Brendan Dahl
8d52a1e92a
Add another way to detect cmyk images.
2011-11-08 13:53:56 -08:00
Artur Adib
686f275830
Fix font and spaces
2011-11-08 16:05:11 -05:00
Artur Adib
9ebec03ddc
Implemented selection for showText()
2011-11-08 15:27:03 -05:00
Brendan Dahl
1869888838
Comment on the new flag.
2011-11-08 08:50:01 -08:00
Brendan Dahl
9bb2b881b0
Adds cmyk jpg support. Treats the cmyk jpg as a regular stream.
2011-11-08 08:48:10 -08:00
Artur Adib
46a48a56b7
Merge branch 'refs/heads/master' into text-select
...
Conflicts:
src/core.js
2011-11-08 08:56:52 -05:00
Kalervo Kujala
89a6c4fc88
Fix jslint warnings and refactor small issues.
2011-11-06 22:17:20 +02:00
Kalervo Kujala
b321768f59
Remove unused parameters and fix jslint warnings.
2011-11-06 22:16:35 +02:00
Kalervo Kujala
7f0e35c50d
Remove unused variables.
2011-11-06 22:15:41 +02:00
notmasteryet
cd3ab6059d
Merge pull request #748 from arturadib/for-cache
...
For-loop cache
2011-11-05 20:24:46 -07:00
notmasteryet
79f8c94624
Merge pull request #769 from kkujala/master
...
Refactor colorspace.js and fix jslint warnings.
2011-11-05 18:30:11 -07:00
notmasteryet
ac6d4ddb54
Merge pull request #758 from digitarald/fix-worker-bind
...
Removed unnecessary .bind in worker_loader.js that broke Safari
2011-11-05 17:19:41 -07:00
Kalervo Kujala
cac9044161
Refactor colorspace.js and fix jslint warnings.
2011-11-05 22:13:16 +02:00
Artur Adib
feb621380d
Disabling workers until localhost fix lands in FF
2011-11-05 14:42:50 -04:00
Harald Kirschner
d22885a97c
- FIX: Removed unnecessary .bind in worker_loader.js that broke Safari
2011-11-04 13:23:42 -07:00
Brendan Dahl
0f0ba74660
Merge pull request #715 from jviereck/worker_f2
...
Worker feature detection
2011-11-04 11:33:30 -07:00
Kalervo Kujala
33af12abd0
Fix jslint warnings.
2011-11-03 23:26:58 +02:00
Julian Viereck
d9d2ab4c8e
Rename processorHandler to messageHandler
2011-11-03 15:30:53 +01:00
Julian Viereck
80b759b093
Fix style nit from brendandahl
2011-11-03 13:44:41 +01:00
Julian Viereck
493c25dcaa
Remove useWorker
variable and turn worker support whenever this is possible.
2011-11-03 13:43:58 +01:00
notmasteryet
b5ba29be13
lint error fix
2011-11-02 22:20:53 -05:00
notmasteryet
3d36a05d7f
Text alignment inside input controls
2011-11-02 22:00:33 -05:00
notmasteryet
f3ee85efab
Simple AcroForms support
2011-11-02 20:46:39 -05:00
Brendan Dahl
43dbc3a84d
Merge pull request #711 from jviereck/worker_feature
...
Feature detection
2011-11-02 15:16:31 -07:00
Julian Viereck
50fe4f55e2
Fix lint warning + turn off worker support
2011-11-02 23:00:08 +01:00
Artur Adib
7d38d7f062
Missing var
2011-11-02 17:34:24 -04:00
Artur Adib
ddf77cda6b
Using ii convention
2011-11-02 15:21:45 -04:00
Artur Adib
2c3991f8b0
More progress, workers working
2011-11-02 15:11:33 -04:00
Artur Adib
249385b4bb
Progress
2011-11-02 15:08:19 -04:00
Artur Adib
c8c5b4f8ea
First iteration, tracemonkey/ecma262 working
2011-11-02 14:43:27 -04:00
Artur Adib
9ddc40c3d7
Nit
2011-11-02 12:22:39 -04:00
Artur Adib
49a303f2f2
Merge branch 'refs/heads/master' into text-select
...
Conflicts:
src/core.js
2011-11-02 11:23:42 -04:00
Ionuț G. Stan
090b4d6647
Fix same origin policy issue when adding @font-face rules
...
If the first stylesheet in the document is located on an external domain, then
trying to access the `cssRules` property of that `CSSStyleSheet` object will
result in a Security error being thrown in Firefox. In Safari, `cssRules` will
be null, which causes a null pointer exception in the `styleSheet.cssRules.length`
expression.
2011-11-02 13:06:26 +02:00
Julian Viereck
51d4a17232
Change workerSrc location
2011-11-01 22:23:16 +01:00
Julian Viereck
94b8c4656b
Merge with master
2011-11-01 19:56:34 +01:00
Julian Viereck
3b7829d057
Address review comments. Use only one PDFJS.workerSrc variable to specify the worker source
2011-11-01 19:32:20 +01:00
Artur Adib
c74d7b8777
Workers off!
2011-10-31 16:49:49 -04:00