Rob Wu
d34e6ddd60
Set page size via @page + size
...
In Blink-based browsers, there is a mismatch between document size and
paper size. Even if exactly the same values and unit are used, it is
possible that the printed results takes more pages than expected.
To solve the issue, the page size is set via @page size, and the canvas
and ancestor nodes are assigned a width+height of 100% (=relative to the
page). This change resolves bugs such as blank pages and split pages.
2015-03-23 11:19:48 +01:00
Brendan Dahl
05991e9f4b
Merge pull request #5851 from brendandahl/v1.1
...
V1.1
2015-03-17 14:50:19 -07:00
Brendan Dahl
d402fbb162
Update beta version.
2015-03-17 14:42:40 -07:00
Brendan Dahl
a1e0859d8d
Update base version for 1.1.
2015-03-17 14:37:00 -07:00
Brendan Dahl
61043d0105
Move to version 1.1.
2015-03-17 14:13:07 -07:00
Tim van der Meij
4e95362f8f
Merge pull request #5848 from Snuffleupagus/fix-node-getinfo-example
...
Fix the node getinfo.js example
2015-03-17 21:43:34 +01:00
Jonas Jenwald
d762cad420
Fix the node getinfo.js example
...
This broke in PR 5366.
2015-03-17 14:26:58 +01:00
Jonas Jenwald
f7b3852dd5
Merge pull request #5843 from timvandermeij/svg-commands
...
Enable OPS.setHScale in the SVG backend
2015-03-16 12:50:07 +01:00
Tim van der Meij
989eac2f1e
Enable OPS.setHScale in the SVG backend
2015-03-16 00:37:31 +01:00
Tim van der Meij
72cfa36b06
Merge pull request #5525 from Snuffleupagus/disableFullscreen
...
Disable PresentationMode for certain problematic configurations
2015-03-13 22:50:53 +01:00
Jonas Jenwald
65a5543efe
Disable PresentationMode for certain problematic configurations
...
Instead of trying to hack around various browser defects, let's just disable PresentationMode in the affected browsers. This patch:
- Disables PresentationMode in IE11+ when the viewer is embedded; fixes 4711.
2015-03-13 22:09:36 +01:00
Tim van der Meij
1fb1a99a43
Merge pull request #5838 from timvandermeij/safari-presentationmode
...
Make presentation mode work again in Safari
2015-03-13 21:54:50 +01:00
Tim van der Meij
230d8c40e4
Make presentation mode work again in Safari
2015-03-13 21:41:14 +01:00
Tim van der Meij
ac5d1fbb2d
Merge pull request #5785 from Snuffleupagus/bug-1138993
...
Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
2015-03-12 21:16:29 +01:00
Tim van der Meij
5319d4fc87
Merge pull request #5829 from timvandermeij/typofix
...
Fixes minor typo from #5826
2015-03-11 21:12:45 +01:00
Tim van der Meij
0ab5bb4b42
Fixes minor typo from #5826
2015-03-11 21:09:03 +01:00
Tim van der Meij
6a77a97785
Merge pull request #5826 from Rob--W/webL10n-update-march-2015
...
WebL10n update (March 2015)
2015-03-11 21:05:10 +01:00
Tim van der Meij
70608be351
Merge pull request #5821 from Snuffleupagus/bug-1140761
...
Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761)
2015-03-11 13:46:15 +01:00
Rob Wu
537216b872
[webL10n] Apply PDF.js-specific changes
2015-03-10 16:13:25 +01:00
Rob Wu
f20c5ddf99
Update to latest version of webL10n
...
New commits since last update:
- b5e072c...7d351d51b1
- Plus unmerged patch from PDF.js: https://github.com/fabi1cazenave/webL10n/pull/62
(the PDF.js-specific changes will be applied in a separate commit)
2015-03-10 16:11:59 +01:00
Jonas Jenwald
4a9ff471c4
Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761)
...
According to the specification, http://partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf#G3.851943 , the content of the marker segment should begin with `Adobe`, and not `Adobe\x00` as the code currently look for.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1140761 .
Fixes the colour conversion part of issues 4090 and 5623.
2015-03-10 13:07:09 +01:00
Yury Delendik
c17ff30d19
Import l10n.
2015-03-09 23:30:18 -05:00
Yury Delendik
da258f8972
Merge pull request #5692 from Rob--W/webl10n-fix
...
[l10n] Treat language as case-insensitive
2015-03-09 23:24:57 -05:00
Yury Delendik
c2dc665332
Merge pull request #5582 from Snuffleupagus/setHash-Fit-values
...
Fix handling of "Fit" zoom values in setHash (issue 5581)
2015-03-09 23:20:23 -05:00
Yury Delendik
f4dbd69e06
Merge pull request #5595 from fkaelberer/useBinarySearchToFindVisibleElements
...
Use binary search in getVisibleElements()
2015-03-09 23:11:50 -05:00
Yury Delendik
e82c84ee74
Merge pull request #5819 from yurydelendik/newchannel2
...
Using newChannel2 instead of newChannel in the extension.
2015-03-09 20:07:33 -05:00
Yury Delendik
ed243cf02f
Using newChannel2 instead of newChannel in the extension.
2015-03-09 19:40:19 -05:00
Jonas Jenwald
f0d538d7cf
Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
...
See https://bugzilla.mozilla.org/show_bug.cgi?id=1138993 .
2015-03-07 00:16:55 +01:00
Tim van der Meij
c69ad5885c
Merge pull request #5770 from Snuffleupagus/opentype-cff
...
Correctly detect OpenType font files with CFF data
2015-03-06 22:58:43 +01:00
Tim van der Meij
dc82ace0a3
Merge pull request #5802 from speedplane/embedded-dont-set-title
...
Embedded Viewer Should Not Override Page Title
2015-03-06 21:52:03 +01:00
Tim van der Meij
2ade23e056
Merge pull request #5806 from Snuffleupagus/issue-5734-test
...
Add a reduced test-case for issue 5734
2015-03-06 21:46:32 +01:00
Tim van der Meij
5eedfff647
Merge pull request #5734 from Hengjie/lower-space-threshold
...
Lower space factor threshold
2015-03-06 21:00:01 +01:00
speedplane
80d85b5fe7
Embedded PDF viewers should not be changing their parent page's title.
2015-03-05 22:36:08 -05:00
Jonas Jenwald
97eb215b5f
Add a reduced test-case for issue 5734
2015-03-05 16:20:03 +01:00
Tim van der Meij
673cdbd05f
Merge pull request #5778 from Snuffleupagus/issue-5421-text
...
Add a |text| test-case for issue 5421
2015-03-04 20:17:36 +01:00
Jonas Jenwald
82f73bc9f4
Add a |text| test-case for issue 5421
...
Prior to PR 4259, we *incorrectly* ignored `toUnicode` for Type3 fonts. Since we now handle that correctly, this patch adds a `text` test-case to prevent regressions.
2015-03-03 13:13:34 +01:00
Jonas Jenwald
fa0f09bcf0
Merge pull request #5771 from timvandermeij/unused-util
...
Remove unused isNull utility function
2015-03-02 23:21:09 +01:00
Jonas Jenwald
43e6de7e38
Merge pull request #5680 from Rob--W/forget-showPreviousViewOnLoad
...
Reset state upon load if showPreviousViewOnLoad
2015-03-02 21:49:34 +01:00
Rob Wu
6a16d7dd44
Reset state upon load if showPreviousViewOnLoad
...
And moved showPreviousViewOnLoad up to PDFViewerApplication.initialize
2015-03-02 21:35:44 +01:00
fkaelberer
a78bb6b946
Use binary search in getVisibleElements()
2015-03-01 17:41:20 +01:00
Tim van der Meij
026b57641f
Remove unused isNull utility function
2015-02-28 18:50:58 +01:00
Tim van der Meij
a033b4bf3d
Merge pull request #5769 from dumyan/findcontroller-nbsp
...
nbsp normalization
2015-02-28 14:50:25 +01:00
Jonas Jenwald
f81fc9091a
Correctly detect OpenType font files with CFF data
...
Fixes 5334.
Fixes 215.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1125614 .
According to the specification, http://www.microsoft.com/typography/otspec/otff.htm , OpenType font files with CFF data should have `OTTO` in the header.
2015-02-28 13:43:53 +01:00
Jonas Jenwald
00ee6bd6b6
Merge pull request #5693 from collinanderson/whitespace
...
cleaned whitespace
2015-02-28 10:09:21 +01:00
Damjan Velickovski
29290f3277
added nbsp normalization
2015-02-28 02:57:08 +01:00
Yury Delendik
4c2640dcf0
Merge pull request #5758 from mjlyons/ext-link-new-window
...
Add option to open external links in new window
2015-02-27 10:49:39 -06:00
Yury Delendik
ce122591b9
Merge pull request #5586 from fkaelberer/updateThumbnailClassesOnlyWhenVisible
...
Update thumbnails only when they are visible (to improve scrolling through large documents)
2015-02-27 06:56:32 -06:00
Yury Delendik
6ead5c4731
Merge pull request #5711 from Snuffleupagus/deprecate-el-property
...
Remove the |el| property in PDFPageView and PDFThumbnailView
2015-02-27 06:39:00 -06:00
Yury Delendik
2e14cc70cc
Merge pull request #5731 from Snuffleupagus/issue-5331
...
Skip fill bytes (0xFF) when decoding JPEG images (issue 5331)
2015-02-27 06:36:30 -06:00
Yury Delendik
a0a94344d7
Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage
...
Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
2015-02-27 06:33:15 -06:00