From 45ae175d0b321d3b48d81dba25cffee0e67ff8be Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 17 May 2012 17:54:24 -0500 Subject: [PATCH 1/4] Fixes CFF: moves Subrs to Private tail --- src/fonts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fonts.js b/src/fonts.js index 22037e724..1354827e5 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -4221,9 +4221,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) { From 686d637aa204d44f50d3725744309e56c0c733b6 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 17 May 2012 18:34:31 -0500 Subject: [PATCH 2/4] Reference test for 1629 --- test/pdfs/issue1629.pdf.link | 1 + test/test_manifest.json | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 test/pdfs/issue1629.pdf.link 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", From cc3e7197b337c16c5fe7e505847b57541e6cea80 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Sun, 20 May 2012 17:12:58 -0500 Subject: [PATCH 3/4] Replaces browse button with a icon --- l10n/en-US/viewer.properties | 1 + web/images/toolbarButton-openFile.png | Bin 0 -> 708 bytes web/viewer.css | 7 ++++++- web/viewer.html | 6 +----- web/viewer.js | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 web/images/toolbarButton-openFile.png diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index d0ba6ffac..0922062a6 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -43,3 +43,4 @@ 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 diff --git a/web/images/toolbarButton-openFile.png b/web/images/toolbarButton-openFile.png new file mode 100644 index 0000000000000000000000000000000000000000..12ce45f876b12eef3e5030b492d58d5fbb47ebbf GIT binary patch literal 708 zcmV;#0z3VQP)T2_|?DW!B>L;_wc?Zu;_6+$X4 zAyT|~3gSQD&4XUWvp4HSiY75A*^4JJ20Zj;57vN9blYWVer?F^X0u_(gN-Cjiv3`i zZyxV^^SzmmFvf6Nq*AHJJkMXLR;%}Sc6Nek95PK{b90j)3eqTG{iw zjbgFb`maDTnLIZ$GxJVW)fc1SzwH5g+k#PjYgwa*VorC z?(OZNR4Rc|3PBJM1Oe98)}ScLU$2B<__)XW%J%lQO>Nu$-Rt#MG);r1X%j@x^CmDt z2!bGhZQB*=rL=?c`huGf$0000
- - -