Commit Graph

256 Commits

Author SHA1 Message Date
Jonas Jenwald
3ca2c3f4a7 Add ZapfDingbats testcase 2014-09-03 21:57:57 +02:00
Jonas Jenwald
be595d0721 Further amend GlyphMapForStandardFonts (issue 5244) 2014-09-01 10:51:22 +02:00
Yury Delendik
be998261cc Fixes Type3 negative font direction 2014-08-18 17:57:52 -05:00
Yury Delendik
fa53fcbf57 Merge pull request #5095 from Snuffleupagus/issue-5070
Adjust the heuristics to recognize more cases of unknown glyphs for |toUnicode| (issue 5070)
2014-08-05 17:41:38 -05:00
Jonas Jenwald
8ecbb4da05 Adjust the heuristics to recognize more cases of unknown glyphs for |toUnicode| (issue 5070) 2014-08-03 21:18:23 +02:00
Jonas Jenwald
70b934c7a5 Add reduced test-cases for issues 4875 and 4881 2014-08-03 18:34:52 +02:00
Jonas Jenwald
26f5b1b2d3 Add a couple of reduced test-cases for PR 4259
PR 4259 fixed a large number of font bugs, but none of those where added as test-cases. This was, in my opinion, unfortunate since it increases the risk of regressions in the future when other font bugs are fixed.
This PR simply adds a few more test-cases, to improve our test coverage somewhat.
2014-07-31 13:46:11 +02:00
Jonas Jenwald
50eeff2fab Add a reduced test-case for issue 4800 2014-07-30 22:15:06 +02:00
Jonas Jenwald
e5f249605c Add a reduced test-case for bug 1027533 2014-07-29 16:48:01 +02:00
Jonas Jenwald
2485f11829 Fix loading of PDF files with invalid or missing Type3 characters (issue 5039) 2014-07-24 15:03:22 +02:00
Jonas Jenwald
f13c217b25 Fix another seac regression (issue 4801) 2014-07-22 21:44:13 +02:00
Yury Delendik
53320ce734 Merge pull request #5012 from Snuffleupagus/issue-5010
Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)
2014-07-22 10:54:35 -05:00
Jonas Jenwald
a7c786775d [CIDFontType2] Map characters missing in toUnicode to the private use area (bug 1028735 and issue 4881) 2014-07-05 00:18:51 +02:00
Jonas Jenwald
04975acceb Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010) 2014-06-27 00:46:16 +02:00
Jonas Jenwald
158790981c Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934) 2014-06-14 22:59:08 +02:00
Jonas Jenwald
3e1db41ddd Fix loading of fonts with empty font files (bug 866395 and issue 3522) 2014-05-18 21:41:06 +02:00
Jonas Jenwald
b907e15a90 Build paths for glyph accents when drawing text as curves 2014-05-14 00:04:44 +02:00
Yury Delendik
b7bb016b98 Missing test for #2537 (e4c3b4501d) 2014-05-02 14:04:16 -05:00
Jonas Jenwald
747dec16b2 Prevent trying to map characters to the specials unicode block in adjustMapping (issue 4650) 2014-04-28 23:33:54 +02:00
Yury Delendik
98e023e464 Guesses Type1C font type based on file content 2014-04-24 11:48:18 -05:00
Yury Delendik
bf3a2488df Recognizes ascii type1 encoding 2014-04-17 07:52:33 -05:00
Brendan Dahl
b242826d29 Fix seac regression. 2014-04-11 09:55:39 -07:00
Yury Delendik
003e94885b Tests for text layer 2014-04-10 19:22:13 -05:00
Yury Delendik
9ccdbbcb55 Merge pull request #4574 from Snuffleupagus/bug-850854
Handle 'space' character correctly in WinAnsiEncoding (bug 850854)
2014-04-09 14:36:49 -05:00
Jonas Jenwald
9e6c66be12 Handle 'space' character correctly in WinAnsiEncoding (bug 850854) 2014-04-08 13:07:29 +02:00
Jonas Jenwald
8fc4ebd5cb Handle 'space' character correctly in MacRomanEncoding (bug 878026) 2014-04-07 20:59:26 +02:00
Thorben Bochenek
1d663876b1 Add load test for Issue #4461 2014-03-18 14:10:44 +01:00
Basil A. Zabairatsky
555d33ffc7 Support for the image mask in higher resolution than the image itself 2014-03-07 02:16:39 +06:00
Yury Delendik
a583c319a1 Implements shading types 4-7 2014-01-27 20:35:51 -06:00
Jonas Jenwald
575bdd8863 Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112) 2014-01-21 02:03:28 +01:00
Brendan Dahl
bac4133f21 Merge pull request #4068 from yurydelendik/bug864847
Adjusts heuristic for disabling Symbol encoding
2014-01-08 10:48:18 -08:00
Yury Delendik
5973d40afe Adjusts heuristic for disabling Symbol encoding 2014-01-02 18:44:11 -06:00
Rob Wu
4ff1d45f16 Add pdf from issue 3885 to tests
Source: https://www.dropbox.com/s/ooqk82fq0gr5p6f/test-min-notext-opt.pdf
2013-12-19 18:38:44 +01:00
Jonas Jenwald
b1c5ef9ccc Fix loading of fonts that are not referenced by an object identifier 2013-12-17 00:19:31 +01:00
Yury Delendik
2b63cd7e62 Allocates bigger hashData buffer 2013-11-18 07:48:06 -06:00
Yury Delendik
82a9a13e5f Fixes glyphs with invalid flags 2013-11-13 13:45:59 -06:00
Brendan Dahl
bd6871a1cd Merge pull request #3884 from yurydelendik/bug868745
Resizes loca table when needed
2013-11-11 14:59:18 -08:00
Tim van der Meij
6be8a2bd83 Merge pull request #3882 from yurydelendik/issue3438
Ignoring glyphs without points
2013-11-08 14:21:17 -08:00
Brendan Dahl
e076eeb5bd Merge pull request #3877 from yurydelendik/issue1171
Skipping empty font tables
2013-11-08 09:12:04 -08:00
Brendan Dahl
18d8557abd Merge pull request #3875 from yurydelendik/issue3025
Removes duplicate entries after reading cmap table
2013-11-07 12:29:25 -08:00
Brendan Dahl
c8e021dfa6 Merge pull request #3867 from yurydelendik/pfb
Workaround for some bad Type1 data
2013-11-06 11:14:42 -08:00
Yury Delendik
175341cb0d Resizes loca table when needed 2013-11-03 07:29:29 -06:00
Yury Delendik
93076ced03 Ignoring glyphs without points 2013-11-02 17:07:13 -05:00
Yury Delendik
bbda42110b Skipping empty font tables 2013-11-01 19:05:17 -05: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
Yury Delendik
1f232ded90 Stops objects indexing at the end 2013-08-23 13:03:30 -05:00
Yury Delendik
ba87d2fe11 Merge pull request #3373 from SSk123/master
rotation causes textLayer to get messed up
2013-06-29 17:24:12 -07:00
Srishti
21a8d62624 Fixes Text rotation issue #2095 2013-06-30 03:52:30 +05:30
Yury Delendik
27c8291ea1 Adds test for issue 3371 and enables testing with password. 2013-06-25 19:56:47 -05:00
Yury Delendik
004bd848c8 Merge pull request #2956 from vyv03354/cmap4_fpgm
Add more sanitizations to TT font programs
2013-06-23 12:33:18 -07:00
Yury Delendik
702da7f3ea Skips failed-to-download tests 2013-05-30 17:58:48 -05:00
vyv03354
cc5cba8bec Strip TT programs if it's invalid 2013-05-02 06:07:46 +09:00
Mack Duan
ef423ef30c Implement progressive loading of PDFs 2013-04-12 16:13:22 -07:00
Yury Delendik
a3b2ad30fa Adds endchar with 4 arguments test. 2013-03-04 14:28:04 -06:00
vyv03354
c5b8ee6a91 Implements vertical writing 2013-02-15 03:53:34 +09:00
vyv03354
0df411a3da Fixes non-Japanese characters spacing 2013-01-24 01:23:22 +09:00
Brendan Dahl
45daf4e936 Merge pull request #2557 from mduan/issue2391-invalid-font
Default to a built-in font if an invalid non-embedded font is encountered
2013-01-18 12:35:59 -08:00
mduan
b718a3604a Default to a built-in font if an invalid non-embedded font is encountered 2013-01-16 13:57:41 -08:00
vyv03354
2ef50c5068 Added tests for PDFs having 'H', 'EUC-H', and '90ms' encodings 2013-01-17 00:13:34 +09:00
mduan
5ab3bb1e03 Skip commands that have too few arguments
- Commands that have too few args will be skipped
- Commands that have too many args will generate an info, but still
execute
2013-01-15 14:07:16 -08:00
mduan
fadcb71c21 Handle missing 'FontName' entry in FontDescriptor object 2013-01-15 11:48:20 -08:00
vyv03354
bff75fa629 Added a test PDF having Identity-H encoding without embedded font 2013-01-13 04:21:30 +09:00
Yury Delendik
4c533d065d Fixes incomplete restore in paintFormXObject 2012-10-26 23:30:01 -05:00
Yury Delendik
7ea87c875e Fixes cmap when 0xFFFF character is included 2012-10-13 14:21:15 -05:00
Brendan Dahl
5d8f463162 Adds support for the extend option for linear and radial shadings. 2012-06-07 16:00:07 -07:00
Brendan Dahl
ba9c828117 Merge pull request #1600 from yurydelendik/issue-1586
Don't check gen number for free entry; don't index objects twice
2012-04-25 17:04:11 -07:00
Yury Delendik
c13a4c1557 Replacing test with simulated bad pdf 2012-04-24 18:53:11 -05:00
Brendan Dahl
28024fba3b Replace test pdf tcpdf 33 by custom generated pdf. 2012-04-17 10:39:17 -07:00
Brendan Dahl
3925e37417 Add basic api unit testing. 2012-04-12 17:59:30 -07:00
Brendan Dahl
7008d07fde Fix gradients for fill and stroke. 2012-03-29 08:53:51 -07:00
notmasteryet
19bc96a617 Merge pull request #1406 from 'bdahl/string_fontname'
Fix string font names.
2012-03-26 21:17:16 -05:00
Brendan Dahl
2d7e1d6346 Merge upstream. 2012-03-21 16:13:24 -07:00
Brendan Dahl
52a4bcbd4f Merge upstream. 2012-03-19 10:45:53 -07:00
Brendan Dahl
52222b7de3 Add test file for string font name. 2012-03-19 09:09:42 -07:00
notmasteryet
1f0af7c476 Add 'Indexed' cs abbreviation 2012-03-17 17:35:04 -05:00
Brendan Dahl
4a50e06e85 Merge branch 'master' of https://github.com/mozilla/pdf.js into cff 2012-03-10 19:22:02 -08:00
Brendan Dahl
ce53b1b018 CFF Parser and Compiler. 2012-03-10 19:12:33 -08:00
notmasteryet
38e3f32557 Add and fix pdfkit_compressed.pdf 2012-03-01 21:23:36 -06:00
Artur Adib
d09c0fbfd3 Merge pull request #1252 from notmasteryet/issue-1249
Check if glyphs are stored outside the glyf table
2012-02-29 10:43:45 -08:00
Brendan Dahl
b6e4fc771f Fix bad chars in Type2CFF font names. 2012-02-19 22:12:22 -08:00
notmasteryet
8f3b198c23 Check if glyph are stored outside the glyf table 2012-02-19 20:12:57 -06:00
notmasteryet
016fd3282e Merge branch 'master' of git://github.com/mozilla/pdf.js.git into jpx6
Conflicts:
	test/pdfs/.gitignore
2012-01-19 17:46:48 -06:00
Brendan Dahl
8aac2256ed Fix zero width lines. 2012-01-17 20:50:49 -08:00
notmasteryet
15c132d4b9 Add example PDF from #268 2012-01-11 20:14:49 -06:00
Brendan Dahl
7c8445753d Merge upstream. 2011-12-29 12:37:15 -08:00
Brendan Dahl
93283fdcc3 Add test pdf for type4 postscript functions. 2011-12-28 21:23:17 -08:00
Brendan Dahl
cf31eb4544 Add test case for smasks. 2011-12-16 10:54:31 -08:00
notmasteryet
fb3a9a9828 Add reftest for issue #918 2011-12-12 21:42:39 -06:00
notmasteryet
fa89ebe537 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into issue-863
Conflicts:
	test/pdfs/.gitignore
2011-12-08 19:22:44 -06:00
notmasteryet
303f5cd07b Add bad PDF with lots of extra bytes at the end 2011-12-08 19:17:24 -06:00
notmasteryet
fa18c8022e remove glyph references outside range of avaialable glyphs 2011-12-07 21:38:34 -06:00
notmasteryet
05c1f68d68 Add PDF from the #840 to the reference tests 2011-12-02 06:55:04 -06:00
Brendan Dahl
faa202df1e Merge upstream and change test pdf file. 2011-11-22 10:39:26 -08:00
Brendan Dahl
543e3377de Adding multi dimensional interpolation and test file. 2011-11-11 14:44:47 -08:00
Brendan Dahl
3d662cf08a Add the cmyk jpeg test file. 2011-11-09 09:39:55 -08:00
Brendan Dahl
3592baf39c Merge upstream 2011-10-31 08:51:45 -07:00
Brendan Dahl
11b843325b Add the alpha trans test pdf. 2011-10-28 14:11:14 -07:00
Ionuț G. Stan
8a6cf185fd Add eq test for close path rendering bug
See: 56b9a3543d
2011-10-28 16:38:55 +03:00
Artur Adib
fb32ff0ea9 Git-ignore all PDFs except the listed ones
This forces contributors to deal with gitignore only when bundling a new test, rather than making all users of "make test" having to constantly update their gitignores because of new PDFs.
2011-10-06 11:01:22 -04:00
Artur Adib
f3745f7c13 New README, .gitignores; Makefile
Makefile: commented out unnecessary closure download and shell testing (at least until someone decides to work on this).
2011-09-16 08:28:59 -07:00
Chris Jones
8385cb8449 the new test file is a .link 2011-06-27 18:28:29 -07:00
Rob Sayre
b002cfb433 Ignore intelisa.pdf 2011-06-27 12:36:34 -07:00
Rob Sayre
faaf3a4907 Add pdf.pdf to .gitignore 2011-06-23 10:27:53 -07:00
Rob Sayre
5ae4857efd Add new test directories. 2011-06-23 09:05:51 -07:00