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
Jonas Jenwald
97eb215b5f
Add a reduced test-case for issue 5734
2015-03-05 16:20:03 +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
Yury Delendik
23916b2b14
Merge pull request #5748 from Snuffleupagus/issue-5747
...
Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
2015-02-26 17:44:46 -06:00
Jonas Jenwald
0a3341dadc
Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)
...
It seems that `0x25CC` is another bad spot for charCodes.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1108301 .
2015-02-27 00:20:38 +01:00
Jonas Jenwald
7c8996558a
Fetch parameters if they are a |Ref| in CalGray/CalRGB color spaces (issue 5747)
2015-02-20 12:53:02 +01:00
Jonas Jenwald
417800a1b5
Only skip the |!isSymbolicFont| check for TrueType (3, 1) cmap tables if no previous cmap table was found (PR 5703 followup)
...
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=894572 .
2015-02-19 13:58:03 +01:00
Jonas Jenwald
592890a758
Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701)
2015-02-13 01:03:10 +01:00
Jonas Jenwald
8614c17c1d
Merge pull request #5717 from timvandermeij/testcase-5567
...
Test case for issue 5567
2015-02-13 00:39:52 +01:00
Brendan Dahl
394b38b22f
Merge pull request #5651 from Snuffleupagus/missing-glyphs
...
Try to skip mapping of missing TrueType and CIDFontType2 glyphs
2015-02-11 19:31:22 -08:00
Tim van der Meij
d124fc5e08
Test case for issue 5567
2015-02-10 00:16:54 +01:00
Jonas Jenwald
01e6565dd4
Try to skip mapping of missing TrueType glyphs
...
Also don't skip mapping of glyphs which are empty, if the corresponding charCode is included in toUnicode.
2015-02-07 12:19:38 +01:00
Jonas Jenwald
8174da61fb
Don't skip mapping of glyphs for CIDFontType2 fonts with a CIDToGIDMap
...
Also don't skip mapping of glyphs which are empty, if the corresponding charCode is included in toUnicode.
2015-02-07 12:19:37 +01:00
Jonas Jenwald
ad41a2d574
Add support for TrueType (0, 0) cmap tables (issue 5501 and 5574)
2015-01-11 14:54:12 +01:00
Jonas Jenwald
1fea44ce14
Ensure that |get fingerprint| doesn't fail if the ID is not an array (issue 5599)
...
According to the [PDF specification](http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#page=51 ) the `ID` should be an array. To prevent errors if the PDF file violates that part of the spec, check that the `ID` is actually an array.
Fixes 5599.
2014-12-30 16:16:43 +01:00
Jonas Jenwald
75767abb09
Add a reduced test case for issue 4379
...
This should have been part of PR 5136.
Based on comments https://github.com/mozilla/pdf.js/issues/4379#issuecomment-51221787 and https://github.com/mozilla/pdf.js/issues/4379#issuecomment-51475463 , it should be OK to include the PDF file in the repo.
2014-12-29 16:28:23 +01:00
Jonas Jenwald
d8b905048b
Add fallback for non-embedded "Century Gothic" CIDFontType2 font (issue 4722 and bug 879561)
...
According to practical experiments, falling back to "Helvetica" when we encounter a non-embedded "[Century Gothic](http://en.wikipedia.org/wiki/Century_Gothic )" `CIDFontType2` font seems to work well.
(Also, the section on Wikipedia about "Printer ink usage" *might* provide some anecdotal evidence that Century Gothic is a fairly standard sans-serif font.)
Obviously this patch doesn't make "Century Gothic" fonts render perfectly, as is often the case with non-embedded fonts, but all the text is now legible in the referenced issues.
Fixes 4722.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=879561 .
2014-12-18 23:19:34 +01:00
Tim van der Meij
a340927687
Test case for issue 5481
2014-12-18 21:26:02 +01:00
Tim van der Meij
36fce7db7e
Test case for issue 5475
2014-12-17 22:46:47 +01:00
Tim van der Meij
16833159a9
Test case for issue 5549
2014-12-17 22:42:06 +01:00
Jonas Jenwald
5f32f80e34
Add a reduced test case for issue 5470
2014-11-04 16:16:48 +01:00
Jonas Jenwald
58cc39f329
Add a reduced test case for issue 5291
2014-10-25 11:35:13 +02:00
Yury Delendik
9e7966a446
Merge pull request #5390 from Snuffleupagus/inline-jpeg-image-loading-test-case
...
Add a reduced test case for PR 5286
2014-10-22 09:38:31 -05:00
Yury Delendik
6b2c900722
Merge pull request #5401 from Snuffleupagus/bug-847420-test
...
Add a reduced test case for bug 847420
2014-10-22 08:32:20 -05:00
Jonas Jenwald
88c88d08e1
Add a reduced test case for PR 5286
2014-10-22 14:11:15 +02:00
Jonas Jenwald
4ac4d49158
Avoid rendering invisible Type3 fonts (issue 5421)
2014-10-18 22:29:21 +02:00
Jonas Jenwald
0ffb54b95f
Add a reduced test case for bug 847420
2014-10-12 22:36:50 +02:00
Jonas Jenwald
df2a4afd36
Use |toUnicode| when creating the glyph map for standard CIDFontType2 fonts without embedded font file
2014-09-27 13:20:04 +02:00
Yury Delendik
744c8e8d7e
Merge pull request #5250 from Snuffleupagus/issue-5238
...
Fix Symbol fonts without font file but with Encoding dictionary (issue 5238)
2014-09-26 15:18:33 -05:00
Jonas Jenwald
3c759e296a
Add support for MMType1 fonts with embedded font files
2014-09-18 16:10:46 +02:00
Jonas Jenwald
b16c973d9d
Fix Symbol fonts without font file but with Encoding dictionary (issue 5238)
2014-09-16 21:38:53 +02:00
Yury Delendik
15681adbb9
Merge pull request #5245 from Snuffleupagus/issue-5244
...
Further amend GlyphMapForStandardFonts (issue 5244)
2014-09-16 10:12:07 -05:00
Yury Delendik
aa8d3d98f8
Fetches params in makeFilter
2014-09-09 08:29:31 -05:00
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