2011-10-07 00:01:22 +09:00
|
|
|
*.pdf
|
2013-05-31 06:54:49 +09:00
|
|
|
*.error
|
2011-10-07 00:01:22 +09:00
|
|
|
|
|
|
|
!tracemonkey.pdf
|
2015-11-08 21:18:23 +09:00
|
|
|
!TrueType_without_cmap.pdf
|
2015-03-09 22:36:45 +09:00
|
|
|
!franz.pdf
|
2015-09-28 22:09:24 +09:00
|
|
|
!franz_2.pdf
|
2015-11-16 21:15:36 +09:00
|
|
|
!german-umlaut-r.pdf
|
2015-10-01 21:46:03 +09:00
|
|
|
!xref_command_missing.pdf
|
2016-01-16 23:51:10 +09:00
|
|
|
!issue1155r.pdf
|
Add a couple more, mostly `text`, reference tests for non-embedded symbolic fonts without included encoding information
I've started to look into how we can fix issue 7580, but quickly became worried that fixing it could easily mean that we'd trade one fixed PDF file for a multitude of broken ones.
Hence I started going through the history of the code that choose the fallback encoding, and noticed that it has been changed a number of times over the years to deal with various cases of weirdness/errors in non-embedded fonts.
To my relief it turned out that almost all the PRs, please see a possibly incomplete [list here], that changed this code actually included `eq` test-cases.
However, in one case it appears that a PR missed to add a test-case. Furthermore since the fallback encoding may also be the only source for creating a `toUnicode` map, changing the encoding could possibly regress only the text-selection despite a PDF file still rendering correctly.
Therefore, this PR adds one new `eq` test, and also a number of additional `text` tests for PDF files already present in the test-suite.
Note that it's obviously possible that there's a certain overlap between the added tests, but I'd be *a whole lot* more concerned with causing regressions.
2016-09-10 20:10:15 +09:00
|
|
|
!issue2017r.pdf
|
2013-01-11 11:00:44 +09:00
|
|
|
!issue2391-1.pdf
|
2013-01-12 04:04:56 +09:00
|
|
|
!issue2391-2.pdf
|
2015-12-22 20:59:23 +09:00
|
|
|
!issue3214.pdf
|
2015-11-07 21:04:03 +09:00
|
|
|
!issue4665.pdf
|
2016-01-09 19:50:48 +09:00
|
|
|
!issue4684.pdf
|
2016-06-27 20:51:11 +09:00
|
|
|
!issue5256.pdf
|
2015-03-07 19:39:10 +09:00
|
|
|
!issue5801.pdf
|
2015-12-28 22:10:30 +09:00
|
|
|
!issue5946.pdf
|
2015-05-10 18:28:15 +09:00
|
|
|
!issue5972.pdf
|
2015-04-30 19:40:54 +09:00
|
|
|
!issue5874.pdf
|
2016-06-01 06:01:35 +09:00
|
|
|
!issue5808.pdf
|
2016-03-29 22:46:21 +09:00
|
|
|
!issue6204.pdf
|
2016-01-06 10:07:21 +09:00
|
|
|
!issue6782.pdf
|
2016-02-10 01:09:17 +09:00
|
|
|
!issue6961.pdf
|
2016-05-15 05:13:12 +09:00
|
|
|
!issue6962.pdf
|
2016-03-02 05:39:33 +09:00
|
|
|
!issue7020.pdf
|
2016-03-23 21:52:30 +09:00
|
|
|
!issue7101.pdf
|
2016-03-26 22:41:15 +09:00
|
|
|
!issue7115.pdf
|
2016-06-08 05:40:06 +09:00
|
|
|
!issue7180.pdf
|
2016-04-15 21:22:36 +09:00
|
|
|
!issue7200.pdf
|
2016-04-21 22:10:40 +09:00
|
|
|
!issue7229.pdf
|
2016-06-13 21:22:15 +09:00
|
|
|
!issue7403.pdf
|
2016-07-23 20:04:27 +09:00
|
|
|
!issue7406.pdf
|
2016-07-17 23:41:53 +09:00
|
|
|
!issue7426.pdf
|
2016-06-25 19:41:26 +09:00
|
|
|
!issue7439.pdf
|
2016-07-24 21:32:48 +09:00
|
|
|
!issue7446.pdf
|
Catch errors and continue parsing in `parseCMap` (issue 7492)
After PR 7039, the PDF file in issue 7492 no longer renders at all, but note that text selection wasn't working correctly previously.
The problem with the PDF file in issue 7492 is that the `cMap`, in the `toUnicode` entry in the font, contains an invalid name:
```
/CMapName /-usr-share-fonts-truetype-Panton-Panton Family-Fontfabric - Panton.otf,000-UTF16 def
```
When we parse that line, things obviously break because there are spaces present in the wrong places.
To avoid that issue, the patch simply lets `parseCMap` continue when errors are encountered, to try and recover usable data. Note that by not aborting immediatly when an error is encountered, we are also able to fix the text selection.
Obviously, it could be argued that we should just immediatly reject a corrupt `cMap`. But given that they usually are correct, it seems that trying to recover as much data as possible from corrupt one can only be a good thing for both glyph mapping and text selection.
Fixes 7492.
2016-07-18 23:01:02 +09:00
|
|
|
!issue7492.pdf
|
2016-08-16 19:23:53 +09:00
|
|
|
!issue7544.pdf
|
2016-09-06 16:56:18 +09:00
|
|
|
!issue7598.pdf
|
2013-02-07 08:19:29 +09:00
|
|
|
!filled-background.pdf
|
2011-10-07 00:01:22 +09:00
|
|
|
!ArabicCIDTrueType.pdf
|
|
|
|
!ThuluthFeatures.pdf
|
|
|
|
!arial_unicode_ab_cidfont.pdf
|
|
|
|
!arial_unicode_en_cidfont.pdf
|
|
|
|
!asciihexdecode.pdf
|
2015-12-26 05:57:08 +09:00
|
|
|
!bug793632.pdf
|
2015-10-05 06:47:03 +09:00
|
|
|
!bug1020858.pdf
|
2015-04-02 23:26:14 +09:00
|
|
|
!bug1050040.pdf
|
2015-09-01 20:31:02 +09:00
|
|
|
!bug1200096.pdf
|
2016-05-08 01:23:47 +09:00
|
|
|
!bug1068432.pdf
|
2016-05-27 00:34:00 +09:00
|
|
|
!bug1146106.pdf
|
2015-12-03 09:47:20 +09:00
|
|
|
!issue5564_reduced.pdf
|
2011-10-07 00:01:22 +09:00
|
|
|
!canvas.pdf
|
2016-03-08 04:56:15 +09:00
|
|
|
!bug1132849.pdf
|
|
|
|
!issue6894.pdf
|
Apply Patterns, if necessary, when rendering text
Currently we're not applying Patterns for text, but only for graphics.
This patch is unfortunately not a complete solution, but rather a step on the way, since there are still some PDF files where the Patterns look more like a solid colour, rather than the intended gradient.
I've been unable to fix these issues completely, and I've not managed to determine if the remaining issues are caused either by the pattern code, the canvas code, or perhaps both.
However, given that even this simple patch improves the current situation quite a bit, I figured that it couldn't hurt to submit it as-is.
- Fixes 5804.
- Fixes 6130.
- Improves 3988 a lot, since the text is now visible. However, it looks like the text is *one* solid colour, instead of the correct gradient.
- Improves 5432, since the text is no longer gray. (This file also suffers from the same problem as the previous one.)
2015-12-30 01:57:10 +09:00
|
|
|
!issue5804.pdf
|
|
|
|
!ShowText-ShadingPattern.pdf
|
2011-10-07 00:01:22 +09:00
|
|
|
!complex_ttf_font.pdf
|
2016-01-06 02:53:31 +09:00
|
|
|
!issue3694_reduced.pdf
|
2011-10-07 00:01:22 +09:00
|
|
|
!extgstate.pdf
|
|
|
|
!rotation.pdf
|
|
|
|
!simpletype3font.pdf
|
|
|
|
!sizes.pdf
|
2015-09-16 20:52:57 +09:00
|
|
|
!javauninstall-7r.pdf
|
2015-09-10 23:59:30 +09:00
|
|
|
!issue3205r.pdf
|
2015-11-15 21:27:48 +09:00
|
|
|
!issue3207r.pdf
|
2015-11-14 00:47:02 +09:00
|
|
|
!issue3263r.pdf
|
2015-11-01 20:38:59 +09:00
|
|
|
!issue3879r.pdf
|
2016-03-06 06:32:54 +09:00
|
|
|
!issue5686.pdf
|
|
|
|
!issue3928.pdf
|
2011-10-28 22:38:55 +09:00
|
|
|
!close-path-bug.pdf
|
2015-11-04 00:03:08 +09:00
|
|
|
!issue6019.pdf
|
2015-11-13 05:41:16 +09:00
|
|
|
!issue6621.pdf
|
2016-01-06 02:53:31 +09:00
|
|
|
!issue6286.pdf
|
2015-11-18 21:47:56 +09:00
|
|
|
!issue1055r.pdf
|
2015-10-28 02:20:29 +09:00
|
|
|
!issue1293r.pdf
|
2015-11-15 23:32:11 +09:00
|
|
|
!issue1655r.pdf
|
2015-10-21 03:22:06 +09:00
|
|
|
!issue6541.pdf
|
2015-07-31 20:59:02 +09:00
|
|
|
!issue2948.pdf
|
2015-08-01 00:55:51 +09:00
|
|
|
!issue6231_1.pdf
|
2015-09-04 05:29:12 +09:00
|
|
|
!issue6413.pdf
|
2014-04-17 21:52:33 +09:00
|
|
|
!issue4630.pdf
|
2015-06-26 05:16:08 +09:00
|
|
|
!issue4909.pdf
|
2015-12-08 06:30:09 +09:00
|
|
|
!issue5084.pdf
|
2015-01-02 22:21:56 +09:00
|
|
|
!issue5202.pdf
|
2014-09-09 22:29:31 +09:00
|
|
|
!issue5280.pdf
|
2015-06-19 04:53:15 +09:00
|
|
|
!issue5677.pdf
|
2015-05-20 22:08:55 +09:00
|
|
|
!issue5954.pdf
|
2015-11-24 00:57:43 +09:00
|
|
|
!issue6612.pdf
|
2011-10-29 06:11:14 +09:00
|
|
|
!alphatrans.pdf
|
2011-11-12 07:44:47 +09:00
|
|
|
!devicen.pdf
|
2011-11-10 02:39:55 +09:00
|
|
|
!cmykjpeg.pdf
|
2011-12-02 21:55:04 +09:00
|
|
|
!issue840.pdf
|
2016-03-02 10:05:33 +09:00
|
|
|
!issue4402_reduced.pdf
|
2015-11-17 07:38:23 +09:00
|
|
|
!issue845r.pdf
|
2015-11-17 01:03:59 +09:00
|
|
|
!issue3405r.pdf
|
2013-11-03 07:07:13 +09:00
|
|
|
!issue3438.pdf
|
2012-10-14 04:21:15 +09:00
|
|
|
!issue2074.pdf
|
2011-12-09 10:17:24 +09:00
|
|
|
!scan-bad.pdf
|
2014-10-13 05:36:50 +09:00
|
|
|
!bug847420.pdf
|
2013-10-31 23:10:08 +09:00
|
|
|
!bug860632.pdf
|
2015-02-19 21:58:03 +09:00
|
|
|
!bug894572.pdf
|
2015-04-09 23:09:24 +09:00
|
|
|
!bug911034.pdf
|
2015-02-07 05:58:01 +09:00
|
|
|
!bug1108301.pdf
|
2015-04-25 20:27:10 +09:00
|
|
|
!bug1157493.pdf
|
2016-02-25 01:56:28 +09:00
|
|
|
!bug1250079.pdf
|
2012-04-25 08:53:11 +09:00
|
|
|
!pdfjsbad1586.pdf
|
2011-12-08 12:38:34 +09:00
|
|
|
!freeculture.pdf
|
2015-11-16 08:26:42 +09:00
|
|
|
!issue6006.pdf
|
2012-03-02 12:23:36 +09:00
|
|
|
!pdfkit_compressed.pdf
|
2012-03-18 07:35:04 +09:00
|
|
|
!TAMReview.pdf
|
2015-09-05 19:29:16 +09:00
|
|
|
!pr4922.pdf
|
2015-10-17 01:48:26 +09:00
|
|
|
!pr6531_1.pdf
|
|
|
|
!pr6531_2.pdf
|
2016-05-25 00:35:45 +09:00
|
|
|
!pr7352.pdf
|
2013-11-18 22:48:06 +09:00
|
|
|
!bug900822.pdf
|
2011-12-13 12:42:39 +09:00
|
|
|
!issue918.pdf
|
2012-10-27 13:30:01 +09:00
|
|
|
!issue1905.pdf
|
2013-11-02 01:33:30 +09:00
|
|
|
!issue2833.pdf
|
2014-07-31 20:46:11 +09:00
|
|
|
!issue2931.pdf
|
|
|
|
!issue3323.pdf
|
|
|
|
!issue4304.pdf
|
2014-12-30 00:28:23 +09:00
|
|
|
!issue4379.pdf
|
2014-04-11 04:36:37 +09:00
|
|
|
!issue4550.pdf
|
2015-10-23 22:15:06 +09:00
|
|
|
!issue4575.pdf
|
2014-08-19 07:57:52 +09:00
|
|
|
!bug1011159.pdf
|
2015-02-14 19:59:10 +09:00
|
|
|
!issue5734.pdf
|
2014-08-04 01:34:52 +09:00
|
|
|
!issue4875.pdf
|
|
|
|
!issue4881.pdf
|
2015-05-11 04:48:17 +09:00
|
|
|
!issue5994.pdf
|
2015-10-24 01:20:57 +09:00
|
|
|
!issue6151.pdf
|
2013-06-21 07:03:30 +09:00
|
|
|
!rotated.pdf
|
2012-02-20 11:12:57 +09:00
|
|
|
!issue1249.pdf
|
2013-11-02 07:13:31 +09:00
|
|
|
!issue1171.pdf
|
2011-12-17 03:54:31 +09:00
|
|
|
!smaskdim.pdf
|
2013-03-05 05:28:04 +09:00
|
|
|
!endchar.pdf
|
2011-12-29 14:23:17 +09:00
|
|
|
!type4psfunc.pdf
|
2012-03-20 01:09:42 +09:00
|
|
|
!issue1350.pdf
|
2012-01-12 11:14:49 +09:00
|
|
|
!S2.pdf
|
2014-05-04 00:28:30 +09:00
|
|
|
!glyph_accent.pdf
|
2014-01-27 22:17:14 +09:00
|
|
|
!personwithdog.pdf
|
2013-08-24 02:57:11 +09:00
|
|
|
!helloworld-bad.pdf
|
2012-01-18 13:50:49 +09:00
|
|
|
!zerowidthline.pdf
|
2013-11-03 08:56:48 +09:00
|
|
|
!bug868745.pdf
|
2014-09-18 23:10:46 +09:00
|
|
|
!mmtype1.pdf
|
2015-09-10 19:49:41 +09:00
|
|
|
!issue4436r.pdf
|
2015-02-07 08:13:41 +09:00
|
|
|
!issue5704.pdf
|
2015-02-24 00:01:08 +09:00
|
|
|
!issue5751.pdf
|
2015-02-07 08:13:41 +09:00
|
|
|
!bug893730.pdf
|
2014-01-03 09:44:11 +09:00
|
|
|
!bug864847.pdf
|
2012-03-11 12:12:33 +09:00
|
|
|
!issue1002.pdf
|
2012-02-20 15:12:22 +09:00
|
|
|
!issue925.pdf
|
2014-09-27 20:14:25 +09:00
|
|
|
!issue2840.pdf
|
2015-01-02 22:21:56 +09:00
|
|
|
!issue4061.pdf
|
2014-04-25 01:48:18 +09:00
|
|
|
!issue4668.pdf
|
2014-07-24 21:59:21 +09:00
|
|
|
!issue5039.pdf
|
2014-07-29 01:41:47 +09:00
|
|
|
!issue5070.pdf
|
2014-08-31 21:03:25 +09:00
|
|
|
!issue5238.pdf
|
2014-08-29 21:15:19 +09:00
|
|
|
!issue5244.pdf
|
2014-10-25 18:35:13 +09:00
|
|
|
!issue5291.pdf
|
2014-10-19 05:29:21 +09:00
|
|
|
!issue5421.pdf
|
2014-11-05 00:16:48 +09:00
|
|
|
!issue5470.pdf
|
2015-01-11 22:54:12 +09:00
|
|
|
!issue5501.pdf
|
2014-12-30 23:43:04 +09:00
|
|
|
!issue5599.pdf
|
2015-02-20 19:19:21 +09:00
|
|
|
!issue5747.pdf
|
2015-06-10 00:52:36 +09:00
|
|
|
!issue6099.pdf
|
2015-08-09 19:31:05 +09:00
|
|
|
!issue6336.pdf
|
2015-08-28 20:42:01 +09:00
|
|
|
!issue6387.pdf
|
2015-09-07 00:16:31 +09:00
|
|
|
!issue6410.pdf
|
2012-03-30 00:53:51 +09:00
|
|
|
!gradientfill.pdf
|
2013-11-14 04:45:59 +09:00
|
|
|
!bug903856.pdf
|
2014-04-08 20:07:29 +09:00
|
|
|
!bug850854.pdf
|
2014-05-18 07:57:06 +09:00
|
|
|
!bug866395.pdf
|
2014-07-29 23:48:01 +09:00
|
|
|
!bug1027533.pdf
|
2014-06-28 19:38:25 +09:00
|
|
|
!bug1028735.pdf
|
2015-03-26 20:40:37 +09:00
|
|
|
!bug1046314.pdf
|
2014-10-09 04:11:41 +09:00
|
|
|
!bug1065245.pdf
|
2015-07-03 20:14:41 +09:00
|
|
|
!bug1151216.pdf
|
|
|
|
!bug1175962.pdf
|
2015-10-03 01:04:08 +09:00
|
|
|
!bug1020226.pdf
|
2012-04-13 09:59:30 +09:00
|
|
|
!basicapi.pdf
|
2012-04-18 02:39:17 +09:00
|
|
|
!mixedfonts.pdf
|
2012-06-08 08:00:07 +09:00
|
|
|
!shading_extend.pdf
|
2013-01-13 04:21:30 +09:00
|
|
|
!noembed-identity.pdf
|
2013-01-24 01:15:02 +09:00
|
|
|
!noembed-identity-2.pdf
|
2013-01-17 00:13:34 +09:00
|
|
|
!noembed-jis7.pdf
|
|
|
|
!noembed-eucjp.pdf
|
|
|
|
!noembed-sjis.pdf
|
2013-02-08 21:29:22 +09:00
|
|
|
!vertical.pdf
|
2014-09-04 04:57:57 +09:00
|
|
|
!ZapfDingbats.pdf
|
2014-04-08 03:50:27 +09:00
|
|
|
!bug878026.pdf
|
2015-11-06 23:54:50 +09:00
|
|
|
!issue1045.pdf
|
2014-06-27 07:41:44 +09:00
|
|
|
!issue5010.pdf
|
2014-06-15 05:51:13 +09:00
|
|
|
!issue4934.pdf
|
2014-04-29 03:09:00 +09:00
|
|
|
!issue4650.pdf
|
2016-02-25 03:48:02 +09:00
|
|
|
!issue6721_reduced.pdf
|
2013-11-02 06:30:28 +09:00
|
|
|
!issue3025.pdf
|
2013-01-12 10:10:09 +09:00
|
|
|
!issue2099-1.pdf
|
2013-06-24 03:20:47 +09:00
|
|
|
!issue3371.pdf
|
2013-03-18 22:06:59 +09:00
|
|
|
!issue2956.pdf
|
2014-05-03 04:04:16 +09:00
|
|
|
!issue2537r.pdf
|
2013-12-17 08:19:31 +09:00
|
|
|
!bug946506.pdf
|
2013-12-18 05:32:24 +09:00
|
|
|
!issue3885.pdf
|
2014-01-21 09:44:46 +09:00
|
|
|
!bug859204.pdf
|
2015-08-04 00:34:30 +09:00
|
|
|
!coons-allflags-withfunction.pdf
|
2015-08-05 06:55:55 +09:00
|
|
|
!tensor-allflags-withfunction.pdf
|
2014-02-06 03:58:14 +09:00
|
|
|
!issue4246.pdf
|
2014-03-18 22:07:54 +09:00
|
|
|
!issue4461.pdf
|
2014-04-12 01:55:39 +09:00
|
|
|
!issue4573.pdf
|
2014-12-12 01:29:26 +09:00
|
|
|
!issue4722.pdf
|
2014-07-31 05:15:06 +09:00
|
|
|
!issue4800.pdf
|
2014-06-24 03:55:51 +09:00
|
|
|
!issue4801.pdf
|
2015-02-28 20:58:53 +09:00
|
|
|
!issue5334.pdf
|
2015-07-25 19:26:36 +09:00
|
|
|
!bug1186827.pdf
|
|
|
|
!issue215.pdf
|
2015-12-05 03:52:45 +09:00
|
|
|
!issue5044.pdf
|
2015-11-16 21:15:36 +09:00
|
|
|
!issue1512r.pdf
|
2015-11-09 20:57:20 +09:00
|
|
|
!issue2128r.pdf
|
2015-07-03 06:47:47 +09:00
|
|
|
!issue5540.pdf
|
2014-12-18 06:42:06 +09:00
|
|
|
!issue5549.pdf
|
2014-12-18 06:46:47 +09:00
|
|
|
!issue5475.pdf
|
2014-12-26 05:04:01 +09:00
|
|
|
!annotation-border-styles.pdf
|
2015-12-05 20:22:09 +09:00
|
|
|
!IdentityToUnicodeMap_charCodeOf.pdf
|
2014-12-19 05:26:02 +09:00
|
|
|
!issue5481.pdf
|
2015-02-10 07:32:16 +09:00
|
|
|
!issue5567.pdf
|
2015-02-05 23:25:23 +09:00
|
|
|
!issue5701.pdf
|
2015-05-14 21:08:43 +09:00
|
|
|
!issue5896.pdf
|
2015-04-04 15:15:31 +09:00
|
|
|
!issue5909.pdf
|
2015-05-14 00:25:42 +09:00
|
|
|
!issue6010_1.pdf
|
|
|
|
!issue6010_2.pdf
|
2015-06-07 01:00:14 +09:00
|
|
|
!issue6068.pdf
|
2015-06-05 04:28:14 +09:00
|
|
|
!issue6081.pdf
|
2015-07-11 03:18:53 +09:00
|
|
|
!issue6069.pdf
|
2015-07-21 01:25:02 +09:00
|
|
|
!issue6106.pdf
|
2015-11-25 16:44:06 +09:00
|
|
|
!issue6296.pdf
|
2016-04-11 06:39:15 +09:00
|
|
|
!bug852992_reduced.pdf
|
2015-12-24 02:17:23 +09:00
|
|
|
!issue6298.pdf
|
2016-01-18 06:03:21 +09:00
|
|
|
!issue6889.pdf
|
2015-07-21 01:25:02 +09:00
|
|
|
!bug1001080.pdf
|
2015-07-11 19:15:43 +09:00
|
|
|
!issue6108.pdf
|
2015-08-30 08:23:52 +09:00
|
|
|
!issue6113.pdf
|
2015-11-16 04:07:54 +09:00
|
|
|
!openoffice.pdf
|
2016-02-23 08:21:28 +09:00
|
|
|
!issue7014.pdf
|
2015-12-23 05:31:56 +09:00
|
|
|
!annotation-link-text-popup.pdf
|
|
|
|
!annotation-text-without-popup.pdf
|
2015-12-28 08:33:41 +09:00
|
|
|
!annotation-underline.pdf
|
2015-12-29 23:09:28 +09:00
|
|
|
!annotation-strikeout.pdf
|
2015-12-30 23:28:26 +09:00
|
|
|
!annotation-squiggly.pdf
|
2016-01-01 23:31:46 +09:00
|
|
|
!annotation-highlight.pdf
|
2016-02-15 05:27:53 +09:00
|
|
|
!annotation-fileattachment.pdf
|
2016-03-03 11:10:15 +09:00
|
|
|
!zero_descent.pdf
|