Tim van der Meij
3a75e86b0c
Merge pull request #6015 from Snuffleupagus/issue-5896-test
...
Add a reduced test-case for issue 5896
2015-05-14 15:20:52 +02:00
Jonas Jenwald
9788ba0270
Add a reduced test-case for issue 5896
...
This should have been part of PR 5898.
2015-05-14 14:08:43 +02:00
Jonas Jenwald
0365baf5ab
Fall back to the |defaultEncoding| when no valid "post" table is found in TrueType fonts (bug 1050040)
...
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1050040 .
With this patch the file is completely readable, but given that the font is broken enough to be rejected by OTS the rendering differs slightly from Adobe Reader.
*Note:* the PDF file is sufficiently broken that even Adobe Reader complains about the font, *and* also about another more general issue.
2015-05-14 13:16:14 +02:00
Jonas Jenwald
70b839386a
Ensure that the cmap position is within the bounds of the font file in |readCmapTable|
2015-05-14 13:16:09 +02:00
Tim van der Meij
39d5031832
Merge pull request #5989 from Snuffleupagus/updateviewarea-location
...
Add the |location| to the |updateviewarea| UI event
2015-05-14 13:14:34 +02:00
Tim van der Meij
67816bd085
Merge pull request #5999 from hellemar/handle-utf8-in-url
...
Bug 1122280 - Handle UTF-8 encoding in URI
2015-05-14 12:52:40 +02:00
Fabian Lange
c2013094e7
Apply char spacing only when there are chars.
2015-05-13 23:45:20 +02:00
Tim van der Meij
d484ebd492
Merge pull request #5910 from jordan-thoms/fix-concatenated-files
...
Fix error reading concatenated pdfs
2015-05-13 22:40:55 +02:00
Tim van der Meij
b34366d2fc
Merge pull request #5898 from stri8ed/master
...
Extract more accurate glyph heights from type3 fonts
2015-05-13 21:07:17 +02:00
Brendan Dahl
d87c1ecc2b
Merge pull request #6004 from yurydelendik/print-raf
...
Bug 1163404 - Disables rAF for the printing.
2015-05-12 10:54:31 -07:00
Yury Delendik
dd07ef9c6a
Disables rAF for the printing.
2015-05-12 08:44:42 -05:00
Yury Delendik
00f3756d02
Merge pull request #5867 from Snuffleupagus/pdfViewer-pages-private
...
Change |pages| to be a "private" property of |PDFViewer|
2015-05-11 12:33:59 -05:00
Yury Delendik
f0c65536e6
Merge pull request #6002 from yurydelendik/v1.1.114
...
Version 1.1.114
2015-05-11 12:03:45 -05:00
Yury Delendik
4f12bb101d
Version 1.1.114
2015-05-11 12:02:38 -05:00
Martin Heller
a61a4b18cc
URL annotations handled as UTF-8 to accommodate some bad PDFs. For proper 7-bit ASCII this makes no difference. Fixes Bug 1122280.
2015-05-11 00:46:59 +02:00
Jonas Jenwald
1a3310d537
Merge pull request #5991 from timvandermeij/readme
...
Update README.md with shorter clone command and improved instruction order
2015-05-08 21:38:32 +02:00
Tim van der Meij
523fde764b
Update README.md with shorter clone command and improved instruction order
2015-05-08 21:31:12 +02:00
Jonas Jenwald
ba0eb7fdc6
Add the |location| to the |updateviewarea| UI event
...
*This patch addresses an issue I stumbled upon while working on rewriting the history implementation.*
Currently the `updateviewarea` UI event doesn't include the `location`, and in the event handler in viewer.js we instead reach into `PDFViewer` to retrieve it. Not only does this seem conceptually wrong, it also makes the `updateviewarea` event less useful in general since it's currently only possible to access the `location` if you have a reference to the `PDFViewer`.
To me, this simply appears to be an oversight in the implementation, hence this patch which adds `location` to the `updateviewarea` event. It also changes `location` to be a "private" property of `PDFViewer`.
2015-05-08 12:15:50 +02:00
Jonas Jenwald
6d2d854f65
Merge pull request #5815 from Snuffleupagus/type1-diff-refs
...
Ensure that entries in the Differences array of Type1 fonts are either numbers or names
2015-05-07 22:33:23 +02:00
Jonas Jenwald
3fd44fd24d
Import l10n files
2015-05-06 20:02:20 +02:00
Brendan Dahl
6014a5a4f1
Merge pull request #5983 from Snuffleupagus/bug-1152841
...
Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
2015-05-05 14:41:54 -07:00
Brendan Dahl
cd53cbe7d4
Merge pull request #5964 from Snuffleupagus/bug-1157493
...
Handle the Encoding being a dictionary in PartialEvaluator_preEvaluateFont (bug 1157493)
2015-05-05 14:41:32 -07:00
David Flanagan
ae740768b0
Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
2015-05-05 01:04:45 +02:00
Tim van der Meij
d28fb5af6a
Merge pull request #5979 from timvandermeij/revert-chrome-compat-code
...
Revert #5603 regarding Chrome range request bug
2015-04-30 23:20:41 +02:00
Tim van der Meij
0c84899c0a
Revert #5603 regarding Chrome range request bug
2015-04-30 22:37:52 +02:00
Tim van der Meij
12be47c57c
Merge pull request #5598 from CodingFabian/chrome39-range-disable
...
Disable Range Support for Chrome 39+40 (#5512 )
2015-04-30 22:31:50 +02:00
Fabian Lange
1d4758dadf
Disable Range Support for Chrome 39+40 ( #5512 )
...
Disabling Range Support for Chrome 39 and 40, due to regression in
Chromium. https://crbug.com/442318
2015-04-29 23:25:58 +02:00
Tim van der Meij
6f3024f366
Merge pull request #5977 from Snuffleupagus/pr-5966-followup
...
Prevent Firefox from warning about |unreachable code after return statement|
2015-04-29 21:28:47 +02:00
Tim van der Meij
6159da0598
Merge pull request #5828 from Rob--W/mozCurrentTransform-fix
...
Fix flaw in mozCurrentTransform polyfill
2015-04-29 19:27:02 +02:00
Jonas Jenwald
66b12974c9
Prevent Firefox from warning about |unreachable code after return statement|
...
*This is a follow-up to PR 5966.*
Now that https://bugzilla.mozilla.org/show_bug.cgi?id=1151931 has landed, we're unfortunately in a situation where Firefox warns about `unreachable code after return statement` multiple times when using the PDF.js code in `node make server` mode.
I'm really sorry about the churn in this code!
However I don't think it's a good idea to let Firefox continue to printing these warnings in the console, since it increases the risk of missing actual errors.
2015-04-29 19:26:05 +02:00
Brendan Dahl
4824baf31c
Merge pull request #5905 from timvandermeij/specialpowers
...
Remove SpecialPowers addon
2015-04-27 10:36:54 -07:00
Tim van der Meij
080ab204d6
Merge pull request #5953 from Snuffleupagus/issue-3498
...
Remove no longer needed hacks that enable spacebar scrolling in Firefox (issue 3498)
2015-04-27 19:10:49 +02:00
Tim van der Meij
c91f736db7
Merge pull request #5966 from Snuffleupagus/lint-viewer-preprocesser-code
...
Enable linting of Firefox specific code in viewer.js
2015-04-27 18:59:55 +02:00
Jonas Jenwald
5c47a7f596
Merge pull request #5959 from timvandermeij/document-properties-class
...
Refactor document properties overlay
2015-04-27 16:29:26 +02:00
Jonas Jenwald
dfecfca266
Merge pull request #5809 from Snuffleupagus/issue-5801
...
Attempt to infer if a CMap file actually contains just a standard Identity-H/Identity-V map
2015-04-27 16:19:30 +02:00
Tim van der Meij
6abf3d6ba3
Simplify document properties field logic
...
This patch:
- Simplifies the way fields are passed to the document properties overlay
- Simplifies the way fields are filled internally in the document properties overlay
- Avoids passing a document properties reference to the secondary toolbar
2015-04-27 15:25:40 +02:00
Jonas Jenwald
91ce16bc1d
Enable linting of Firefox specific code in viewer.js
...
- This patch uncomments a large portion of the Firefox specific code in viewer.js, by using a preprocessor "trick", to enable linting. Doing this actually uncovered some issues, e.g. variables defined multiple times.
- This patch also fixes a spelling error, `adobe pdfwritter` -> `abobe pdfwriter`, in the `KNOWN_GENERATORS` list used when reporting telemetry data in Firefox.
*Please note:* there's still some Firefox specific code that is commented out, but it's usually just one (or two) lines of code. Hence the risk that errors creep in should be much lower, compared to entire code-blocks.
2015-04-26 19:52:09 +02:00
Tim van der Meij
1a5de56675
Group public/private methods and add comments
...
This patch:
- Puts public methods at the top of the file
- Puts private methods below the public methods and marks them with an underscore
- Adds JSDoc comments to the class
- Adds setDocumentAndUrl to avoid having to handle that in `viewer.js`
2015-04-26 15:50:28 +02:00
Tim van der Meij
2bbe872ee8
Merge pull request #5963 from CodingFabian/enhance-bug-reporting-guide
...
Clarify bug reporting with regards to providing a pdf
2015-04-26 15:15:53 +02:00
Jonas Jenwald
760222cf0b
Handle the Encoding being a dictionary in PartialEvaluator_preEvaluateFont (bug 1157493)
...
*This is a regression from PR 4423.*
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1157493 .
2015-04-25 16:48:14 +02:00
Fabian Lange
2175b87dbe
Clarify bug reporting with regards to providing a pdf
2015-04-25 14:42:37 +02:00
Jonas Jenwald
4a022bc40a
Add a reduced test-case for issue 5801
2015-04-25 11:28:33 +02:00
Jonas Jenwald
7c7d05e7a3
Attempt to infer if a CMap file actually contains just a standard Identity-H
/Identity-V
map
2015-04-25 11:28:33 +02:00
Tim van der Meij
48b2f6d023
Merge pull request #5756 from Snuffleupagus/issue-5751
...
Guess CIDFontType0 subtype based on font file contents (issue 5751)
2015-04-24 23:50:07 +02:00
Tim van der Meij
7cf440c560
Refactor PDFDocumentProperties to be more class-like
2015-04-24 20:47:38 +02:00
Tim van der Meij
ca8f842d87
Rename DocumentProperties to PDFDocumentProperties
2015-04-24 20:35:11 +02:00
Jonas Jenwald
b1c4b85d4f
Change |pages| to be a "private" property of |PDFViewer|
...
As suggested by yurydelendik: http://logs.glob.uno/?c=mozilla%23pdfjs&s=30+Sep+2014&e=30+Sep+2014&h=4150#c26119 , this patch renames `pages` -> `_pages` to indicate that it's a "private" property.
Accessing pages from outside `PDFViewer` should instead be done by using `getPageView`.
2015-04-21 22:40:11 +02:00
Jonas Jenwald
10f134bcc2
Remove no longer needed hacks that enable spacebar scrolling in Firefox (issue 3498)
...
Now that [bug 915962](https://bugzilla.mozilla.org/show_bug.cgi?id=915962 ) has landed, we no longer need any hacks to enable <kbd>spacebar</kbd> scrolling in Firefox.
Fixes 3498.
2015-04-21 22:26:50 +02:00
Tim van der Meij
71ab5e5ac5
Merge pull request #5699 from Snuffleupagus/presentationMode-refactor
...
Refactor the Presentation Mode code
2015-04-21 21:58:59 +02:00
Jonas Jenwald
601bd4a930
Preface all "fullscreen" CSS rules with a |pdfPresentationMode| class, and add it to the |viewerContainer| while Presentation Mode is active
2015-04-21 16:28:50 +02:00