Yury Delendik
34aa915441
Merge pull request #7146 from Snuffleupagus/extract-CFFParser
...
Extract CFFParser and Type1Parser from fonts.js
9 years ago
Yury Delendik
055d642bf2
Merge pull request #7107 from Rob--W/worker-loading
...
Detect premature worker load error
9 years ago
Rob Wu
c8996f654f
Detect and handle premature worker load error
...
Fall back to a fake worker if the worker fails to load or initialize,
e.g. due to a network error, a security error or simply a script error.
9 years ago
Jonas Jenwald
ef551e8266
Extract `Type1Parser` from fonts.js
9 years ago
Jonas Jenwald
b961e1d21b
Extract `CFFParser` from fonts.js (issue 6777)
9 years ago
Yury Delendik
313b418a20
Prepare viewer.js for async loading and module separation.
9 years ago
Yury Delendik
b371785fbb
Rename web/viewer.js -> web/app.js
9 years ago
Yury Delendik
a250c150ab
Merge pull request #7134 from yurydelendik/circ-stream-colorspace
...
Refactors to remove stream.js dependency on colorspace.js
9 years ago
Yury Delendik
ff3ce973b8
Merge pull request #7106 from Snuffleupagus/issue-7101
...
Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101)
9 years ago
Yury Delendik
35cbf74b12
Refactors to remove stream.js dependency on colorspace.js
9 years ago
Brendan Dahl
13d440df61
Merge pull request #7078 from Snuffleupagus/refactor-toFontChar-without-file
...
Refactor the building of `toFontChar` for non-embedded fonts
9 years ago
Brendan Dahl
8910cea7d6
Merge pull request #7066 from Snuffleupagus/Type1-headerBlockLength
...
Parse Type1 font files to determine the various `Length{n}` properties, instead of trusting the PDF file (issue 5686, issue 3928)
9 years ago
Jonas Jenwald
05cf709f8e
Parse Type1 font files to determine the various `Length{n}` properties, instead of trusting the PDF file (issue 5686, issue 3928)
...
Fixes 5686.
Fixes 3928.
9 years ago
Jonas Jenwald
c40df8a393
Make `Type1Font` more class-like, by adding closure
...
*Note:* Ignoring whitespace should simplify reviewing a great deal.
9 years ago
Yury Delendik
447c48ea27
Merge pull request #7133 from Snuffleupagus/faster-unittests-beforeAll-afterAll
...
Faster unit-tests by using `beforeAll`/`afterAll` in api_spec.js
9 years ago
Jonas Jenwald
7163e1eff3
Faster unit-tests by using `beforeAll`/`afterAll` in api_spec.js
...
In the API unit-tests, we're currently loading the `basicapi.pdf` before every sub-test in `PDFDocument` and `Page`, which slows down the unit-tests quite a bit.
Locally this patch reduces the run time for `gulp unittest` by at least 40% for me.
9 years ago
Jonas Jenwald
17aaa125df
Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101)
...
Fixes 7101.
9 years ago
Yury Delendik
bec4891f5d
Merge pull request #7102 from brendandahl/onerror
...
Log uncaught global errors.
9 years ago
Tim van der Meij
6d2b195857
Merge pull request #7128 from Snuffleupagus/issue-6204-unittest
...
Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects
9 years ago
Nico Schlömer
7cb055307d
Add element to text layer even if width === 0
...
Some browsers render certain special characters with width 0, others with strictly positive width. (For example, the Greek Delta, Δ, has width 0 in Google Chrome, and a positive width in Firefox.) The `if` clause in operation so far results in different text layer DOM trees for different browsers.
This commit fixes that by adding the elements independently of their width.
9 years ago
Brendan Dahl
4e2f70440f
Merge pull request #6711 from yurydelendik/errors
...
Better errors capturing at the core and stop rendering on error.
9 years ago
Jonas Jenwald
ac772017b6
Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects
...
Re: issue 6204 and PR 6208.
9 years ago
Yury Delendik
df0cbccfd8
Merge pull request #7129 from yurydelendik/jasmine
...
Updates Jasmine version.
9 years ago
Yury Delendik
0a700fa29d
Updates Jasmine version.
9 years ago
Tim van der Meij
553928c26e
Merge pull request #7118 from Snuffleupagus/issue-7115
...
Prevent failures in the Annotation code if the `Rect` array contains indirect objects (issue 7115)
9 years ago
Yury Delendik
27dd386248
Merge pull request #7122 from Snuffleupagus/issue-7117
...
Allow unit-tests to use linked PDF files, by having the `unittest` command download unavailable ones (issue 7117)
9 years ago
Jonas Jenwald
8f097abb46
Allow unit-tests to use linked PDF files, by having the `unittest` command download unavailable ones (issue 7117)
9 years ago
Jonas Jenwald
13d7a5070e
Prevent failures in the Annotation code if the `Rect` array contains indirect objects (issue 7115)
...
Note that in the PDF files provided by the reporter, this issue was limited to `Rect` arrays in AcroForm entries (which we currently don't support).
However, since a bad PDF generator could create this problem in *any* kind of annotation, the reduced test-case included here uses a simple LinkAnnotation instead.
Fixes 7115.
9 years ago
Brendan Dahl
df7afcf004
Merge pull request #7053 from yurydelendik/rm-pdfjs-core
...
Removes global PDFJS usage from the src/core/.
9 years ago
Yury Delendik
c22c85f8ee
Merge pull request #7113 from yurydelendik/disable-issue6961
...
Disables issue6961 test.
9 years ago
Yury Delendik
a505aa8e90
Disables issue6961 test.
9 years ago
Jonas Jenwald
b589add2b5
Update l10n files
9 years ago
Brendan Dahl
7aa864db3e
Merge pull request #7108 from yurydelendik/frontWindow-null
...
Removes frontWindow usage from the stream converter.
9 years ago
Yury Delendik
2b246192e1
Removes frontWindow usage from the stream converter.
9 years ago
Tim van der Meij
da8e345d14
Merge pull request #7005 from tobytailor/master
...
Fixes insertion of blank pages during print if page sizes differ
9 years ago
Yury Delendik
2fa4dd6f40
Proxy global PDFJS.verbosity to properly configure shared/util.
9 years ago
Yury Delendik
a8e5912cb1
Moves shared/global to display/global
9 years ago
Yury Delendik
e372f3608b
Makes WorkerMessageHandler non-global.
9 years ago
Yury Delendik
bda5e6235e
Removes global PDFJS usage from the src/core/.
9 years ago
Tim van der Meij
e1ac5744d0
Merge pull request #7105 from fkaelberer/fkaelberer-issue-template
...
Add an ISSUE_TEMPLATE
9 years ago
fkaelberer
4eb9daf34a
Add an ISSUE_TEMPLATE
9 years ago
Brendan Dahl
fb47490648
Log uncaught global errors.
9 years ago
Yury Delendik
54ee15d866
Merge pull request #7100 from yurydelendik/stream-wo-parser
...
Removes core/stream circular dependency on core/parser.
9 years ago
Yury Delendik
4a44a2c7dc
Merge pull request #7098 from Snuffleupagus/uint32-checksums
...
Ensure that TrueType font tables have `uint32` checksums
9 years ago
Yury Delendik
6038c236b2
Removes core/stream circular dependency on core/parser.
9 years ago
Jonas Jenwald
d78fae0181
Ensure that TrueType font tables have `uint32` checksums
...
According to "The table directory" under https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6.html#Directory , TrueType font tables should have `uint32` checksums.
This is something that I noticed, and was initially confused about, while debugging a TrueType issue.
As far as I can tell, the current (`int32`) checksums we use doesn't cause any issues in practice. However, I do think that this should be addressed to agree with the specification, and to reduce possible confusion when reading the font code.
9 years ago
Tobias Schneider
708895ffba
Let print canvas height scale proportionally
9 years ago
Tobias Schneider
aeabd0db20
Fix insertion of blank pages during printing due to non-matching page sizes
9 years ago
Yury Delendik
21ed8ff71d
Merge pull request #7039 from prometheansacrifice/async-cmap-factory
...
Refactors CMapFactory.create to make it async
9 years ago
Manas
f6d28ca323
Refactors CMapFactory.create to make it async
9 years ago