diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index c8b061d49..27917d348 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -43,6 +43,7 @@ zoom.title=Zoom thumb_page_title=Page {{page}} thumb_page_canvas=Thumbnail of Page {{page}} request_password=PDF is protected by a password: +open_file_label=Open search.title=Search Document search_label=Search diff --git a/src/fonts.js b/src/fonts.js index f7c6e6f4e..9dfaff87e 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -4952,9 +4952,9 @@ var CFFPrivateDict = (function CFFPrivateDictClosure() { [[12, 17], 'LanguageGroup', 'num', 0], [[12, 18], 'ExpansionFactor', 'num', 0.06], [[12, 19], 'initialRandomSeed', 'num', 0], - [19, 'Subrs', 'offset', null], [20, 'defaultWidthX', 'num', 0], - [21, 'nominalWidthX', 'num', 0] + [21, 'nominalWidthX', 'num', 0], + [19, 'Subrs', 'offset', null] ]; var tables = null; function CFFPrivateDict(strings) { diff --git a/test/pdfs/issue1629.pdf.link b/test/pdfs/issue1629.pdf.link new file mode 100644 index 000000000..1d18104b5 --- /dev/null +++ b/test/pdfs/issue1629.pdf.link @@ -0,0 +1 @@ +http://is.muni.cz/www/20544/noty/sbm/Taize/Adoramus_te_Christe.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 5ec9e850f..4706b68c4 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -451,6 +451,13 @@ "link": true, "type": "eq" }, + { "id": "issue1629", + "file": "pdfs/issue1629.pdf", + "md5": "0f2cbbf268383a377e95e6bbe36c6a9a", + "rounds": 1, + "link": true, + "type": "eq" + }, { "id": "issue1169", "file": "pdfs/issue1169.pdf", "md5": "3df3ed21fd43ac7fdb21e2015c8a7809", diff --git a/web/images/toolbarButton-openFile.png b/web/images/toolbarButton-openFile.png new file mode 100644 index 000000000..12ce45f87 Binary files /dev/null and b/web/images/toolbarButton-openFile.png differ diff --git a/web/viewer.css b/web/viewer.css index cb6a7b474..f9c4a6163 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -505,6 +505,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before { content: url(images/toolbarButton-print.png); } +.toolbarButton.openFile::before { + display: inline-block; + content: url(images/toolbarButton-openFile.png); +} + .toolbarButton.download::before { display: inline-block; content: url(images/toolbarButton-download.png); @@ -989,17 +994,26 @@ canvas { font-size: 10px; } -@media all and (max-width: 770px) { - #scaleSelectContainer, #fileInput, #pageNumberLabel { - display: none; +@media all and (max-width: 950px) { + html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter, + html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter { + float: left; + left: 180px; } + html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter, + html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter { + float: right; + right: 180px; + } +} +@media all and (max-width: 770px) { #sidebarContainer { top: 33px; z-index: 100; } #sidebarContent { - top: 33px; + top: 32px; background-color: hsla(0,0%,0%,.7); } #thumbnailView, #outlineView { @@ -1013,16 +1027,6 @@ canvas { right: 0px; } - #pageNumber { - width: 30px; - } -} - -@media all and (max-width: 500px) { - #viewBookmark { - display: none; - } - html[dir='ltr'] .outerCenter { float: left; left: 180px; @@ -1032,3 +1036,9 @@ canvas { right: 180px; } } + +@media all and (max-width: 600px) { + #toolbarViewerRight { + display: none; + } +} diff --git a/web/viewer.html b/web/viewer.html index b2d1a9243..68f01236d 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -95,14 +95,10 @@