Commit Graph

5805 Commits

Author SHA1 Message Date
Tim van der Meij
1ce8afc23c Merge pull request #3881 from Snuffleupagus/followup-3854
Fix type mismatch causing wrong scale value in the viewBookmark button
2013-11-02 14:12:07 -07:00
Jonas Jenwald
1c259ce806 Fix type mismatch causing wrong scale value in the viewBookmark button 2013-11-02 21:54:54 +01:00
Tim van der Meij
867c667690 Merge pull request #3854 from Snuffleupagus/round-viewBookmark-scale-value
Round the scale value displayed by the viewBookmark button to two decimal places
2013-11-02 13:35:02 -07:00
Yury Delendik
bbda42110b Skipping empty font tables 2013-11-01 19:05:17 -05:00
Brendan Dahl
768a86d59d Merge pull request #3873 from yurydelendik/issu2833
Fixes reading Type1 FontBBox data for usWin values
2013-11-01 14:59:30 -07: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
Jonas Jenwald
e41d98f9f0 Make 'zoom' independent from 'page' in the hash parameters 2013-10-30 20:39:44 +01: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
Brendan Dahl
cbf9d73ade Merge pull request #3860 from Snuffleupagus/fix-zoom-parameter-regression
Fix zoom parameter regression
2013-10-30 10:28:56 -07:00
Yury Delendik
83e17c2953 Avoiding 'pc is undefined' failures 2013-10-30 11:14:13 -05:00
Jonas Jenwald
1cae737d03 Fix zoom parameter regression 2013-10-30 14:28:59 +01:00
Jonas Jenwald
aeab4a139f Merge pull request #3859 from skruse/master
BugFix: Missing var (context) in function call getOutputScale of text-selection example
2013-10-30 05:12:34 -07:00
Sebastian Kruse
041671f81b BugFix: Missing var (context) in function call getOutputScale of text-selection example 2013-10-30 11:43:22 +01:00
Jonas Jenwald
4ee2c96503 Round the scale value displayed by the viewBookmark button to two decimal places 2013-10-28 12:34:35 +01: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
77fb1d0fac Merge pull request #3831 from Snuffleupagus/fix-Firefox-scrolling
Fix scroll keys in Firefox
2013-10-25 13:21:54 -07:00
Jonas Jenwald
8ae05dcdcb Merge pull request #3836 from Fitoschido/patch-1
Update viewer.properties for es l10n
2013-10-23 02:45:18 -07:00
Adolfo Jayme Barrientos
1b0842ad7c Update viewer.properties 2013-10-23 00:05:34 -05:00
Jonas Jenwald
6102b6197f Fix scroll keys in Firefox 2013-10-21 23:39:17 +02:00
Tim van der Meij
5beefde2c7 Merge pull request #3829 from Snuffleupagus/issue-3827
Apply the current zoom level value to each page in Presentation Mode
2013-10-20 03:32:54 -07:00
Jonas Jenwald
f35e777d81 Apply the current zoom level value to each page in Presentation Mode 2013-10-19 18:33:36 +02:00
Tim van der Meij
fa03a777b6 Merge pull request #3824 from Snuffleupagus/tweak-SecondaryToolbar
A few small tweaks of the SecondaryToolbar code
2013-10-18 14:34:28 -07:00
Jonas Jenwald
bee1b734c2 A few small tweaks of the SecondaryToolbar code 2013-10-18 23:03:28 +02:00
Tim van der Meij
26fb376b65 Merge pull request #3820 from Snuffleupagus/prevent-enter-PresentationMode-during-load
Disable Presentation Mode until the document has started rendering
2013-10-18 11:05:45 -07:00
Yury Delendik
b16b3be5c3 Merge pull request #3791 from brendandahl/css-rotate
Fix css rotation for canvas and text layer.
2013-10-17 17:59:39 -07:00
Jonas Jenwald
d750e4c5e8 Merge pull request #3821 from timvandermeij/secondary-toolbar-elements
Decrease dependence of SecondaryToolbar on UI buttons
2013-10-17 14:56:48 -07:00
Tim van der Meij
46d74bdc51 Decrease dependence of SecondaryToolbar on UI buttons 2013-10-17 23:49:30 +02:00
Tim van der Meij
1c9fc5d7bb Merge pull request #3822 from Snuffleupagus/fix-chromium-PR-bot-breakage
Fix bot breakage caused by Chromium extension PR
2013-10-17 14:24:11 -07:00
Brendan Dahl
ca1806025c Merge pull request #3794 from brendandahl/b2g-fix
Fix the B2G viewer and enable bot preview.
2013-10-17 14:14:17 -07:00
Jonas Jenwald
8405d16379 Fix bot breakage caused by Chromium extension PR 2013-10-17 22:55:25 +02:00
Tim van der Meij
5726ffdcbc Merge pull request #3751 from Rob--W/crx-alternative-loader
[Chrome extension] Change PDF rendering method.
2013-10-17 10:01:37 -07:00
Jonas Jenwald
e367f49686 Disable Presentation Mode until the document has started rendering 2013-10-17 16:52:36 +02:00
Rob Wu
83b780af81 [CRX] Show nicely formatted URL in omnibox
Before commit:
chrome-extension://EXTENSIONID/content/web/viewer.html?file=http%3A%2F%2Fexample.com%2Ffile.pdf

After commit:
chrome-extension://EXTENSIONID/http://example/file.pdf

Technical details:
- The extension's background page uses the webRequest API to intercept
  requests for <extension host>/<real path to pdf>, and redirect it to
  the viewer's URL.
- viewer.js uses history.replaceState to rewrite the URL, so that it's
  easier for users to recognize and copy-paste URLs.
- The fake paths /http:, /https:, /file:, etc. have been added to the
  web_accessible_resources section of the manifest file, in order to
  avoid seeing chrome-extension://invalid/ instead of the actual URL
  when using history back/forward to navigate from/to the PDF viewer.
- Since the relative path resolving doesn't work because relative URLs
  are inaccurate, a <base> tag has been added. This method has already
  been proven to work in the Firefox add-on.

Notes:
- This commit has been cherry-picked from crx-using-streams-api.
- Need to merge https://github.com/mozilla/pdf.js/pull/3582 to deal with
  a bug in Chrome <=30
- In Chrome, getting the contents of a FTP file is not possible, so
  there's no support for FTP files, even though the extension router
  recognizes the ftp: scheme.
2013-10-16 23:14:46 +02:00
Rob Wu
e9cb91de39 [CRX] split:incognito is used, so update file:-handler
The current stable Chromium version is 29. Since the critical
bug that prevented use of incognito:split has been fixed, and
incognito:split is actually used, it's safe to drop the code
that disables the extension in incognito mode.

( fixed bug = http:/crbug.com/224094 )
2013-10-16 23:14:43 +02:00
Rob Wu
edd4bae903 [CRX] Change Viewer insertion method
And use split incognito mode

Previous method:
- Rewrite content type to XHTML, followed by a content script
  to cancel and replace the document with the viewer.
  ( https://github.com/mozilla/pdf.js/pull/3017 )

New method:
- Cancel loading of the document, followed by a redirect to the viewer

Disadvantage of new method:
- URLs are no longer "nice". This will be addressed by cherry-picking
  a commit from the crx-using-streams-api branch.

Advantages of new method:
- Idle time is minimal. In some cases (with large documents),
  it took too much time before the content script was activated.
  During this period, the page looked blank, and the contents of
  the PDF file were still retrieved and **discarded**.
  With the new method, the idle time is minimal, because the request
  is immediately cancelled.
- No FOUXEP (Flash of unhidden XML error page), because the XHTML
  Content-Type hack is no longer used.
2013-10-16 23:14:16 +02: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
54acf20882 Merge pull request #3810 from timvandermeij/nit-fixes
Minor nit fixes for api.js
2013-10-16 03:08:37 -07:00
Tim van der Meij
4fe1e41c35 Minor nit fixes for api.js 2013-10-16 12:07:27 +02:00
Tim van der Meij
33a9696518 Merge pull request #3796 from brendandahl/global-docs
Add missing jsdocs for PDFJS globals.
2013-10-16 03:04:03 -07:00
Tim van der Meij
2726a0be96 Merge pull request #3787 from Snuffleupagus/inline-setScale
Inline setScale in parseScale
2013-10-16 02:18:02 -07:00
fkaelberer
f6841d1720 extract code to own method for faster JPX decoding 2013-10-16 09:47:03 +02:00
Jonas Jenwald
1f4d85db37 Inline setScale in parseScale 2013-10-16 00:26:42 +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