295 Commits (1bbc694ac3ce7d949f1ad520abed40bdbd0fe04b)

Author SHA1 Message Date
Jonas Jenwald 544d29f5cb Add a `recoveryMode` that suppresses errors from the `Parser`, and utilize it when searching for the main trailer in `XRef_indexObjects` (bug 1250079) 9 years ago
Jonas Jenwald 77c6ed5389 Attempt to ignore multiple identical Tf (setFont) commands in `PartialEvaluator_getTextContent` (issue 5808) 9 years ago
Jonas Jenwald 558a22cd02 Prevent errors when parsing Annotations with missing (or invalid) /Subtype entries (issue 7446) 9 years ago
Jonas Jenwald 4fe891c5e7 Add a reduced test-case for issue 7403 9 years ago
Jonas Jenwald 90d19de935 Catch errors and continue parsing in `parseCMap` (issue 7492) 9 years ago
Jonas Jenwald 64783c8b6e Don't map glyphs to the Lepcha Unicode block (issue 7426) 9 years ago
Jonas Jenwald bdd58ab1d2 Ignore .notdef in the `differences` array when building a fallback `toUnicode` map in `PartialEvaluator_buildToUnicode` (issue 5256) 9 years ago
Jonas Jenwald 7866109af9 Fallback to attempt to recover standard glyph names when amending the `charCodeToGlyphId` with entries from the `differences` array in `type1FontGlyphMapping` (issue 7439) 9 years ago
Jonas Jenwald 6a0b047bfa Add upper-case `I` as a possible space replacement fallback in `Font.spaceWidth` to improve text-selection (issue 7180) 9 years ago
Jonas Jenwald 6260fc09a3 Attempt to recover valid `format 3` FDSelect data from broken CFF fonts (bug 1146106) 9 years ago
Jonas Jenwald 98fe094d18 Let non-viewable Popup Annotations inherit the parent's Annotation Flags if the parent is viewable 9 years ago
Jonas Jenwald 7ddb0bc718 Attempt to combine text runs positioned with `setTextMatrix` 9 years ago
Jonas Jenwald c9b6de3b16 Prevent adding invalid values in `CFFDict_setByKey` (bug 1068432) 9 years ago
Jonas Jenwald e281ef15db Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229) 9 years ago
Jonas Jenwald 079b563e2d Ensure that the `params` parameter of the `PredictorStream` is a dictionary (issue 7200) 9 years ago
Yury Delendik d76db416f4 Adds more SMask tests. 9 years ago
Jonas Jenwald 05cf709f8e Parse Type1 font files to determine the various `Length{n}` properties, instead of trusting the PDF file (issue 5686, issue 3928) 9 years ago
Jonas Jenwald 17aaa125df Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101) 9 years ago
Jonas Jenwald ac772017b6 Add unit-tests for destionations in /Names (NameTree) dictionaries where all entries are indirect objects 9 years ago
Jonas Jenwald 13d7a5070e Prevent failures in the Annotation code if the `Rect` array contains indirect objects (issue 7115) 9 years ago
Jonas Jenwald dfe9015a43 Convert `uniXXXX` glyph names to proper ones when building the `charCodeToGlyphId` map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 9 years ago
Preetham Mysore be1e12dbcb Fix for descent calculation while reading font hhea headers 9 years ago
Brendan Dahl 6e1d131384 For CIDFontType2 use CID as glyph ID when missing CID to GID map. 9 years ago
Brendan Dahl ff87f3fb86 Only draw glyphs on canvas if they are in the font or the font file is missing. 9 years ago
Jonas Jenwald 505f15f221 Avoid accidentally getting the entire font file in `readNameTable` (issue 7020) 9 years ago
Tim van der Meij ad31e52a26 Group popup creation code and apply it to more annotation types 9 years ago
Tim van der Meij 10902fd882 Implement unit and reference testing for FileAttachment annotations 9 years ago
Jonas Jenwald 07e1ad40a2 Replace `getAll` with `getKeys` in `PartialEvaluator_hasBlendModes` to speed up loading of badly generated PDF files (issue 6961) 9 years ago
Jonas Jenwald 85cf90643f [api-minor] Add support for PageLabels in the API 9 years ago
Jonas Jenwald 0030a82dc3 [api-minor] Add support for URLs in the document outline 9 years ago
Jonas Jenwald 4855d4cc9f Map missing glyphs to the `notdef` glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889) 9 years ago
Jonas Jenwald b4020047bc Replace the linked test-case for issue 1155 with a reduced one 9 years ago
Jonas Jenwald d52495a9c8 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in `sanitizeGlyphLocations` 9 years ago
Daan Sprenkels 90ec2c9294 shading-pattern: Decreased `Shadings.SMALL_NUMBER` 9 years ago
Jonas Jenwald 896e390285 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782) 9 years ago
Brendan Dahl eb7c36beb6 Add validation for callsubr and callgsubr for type 2 charstrings. 9 years ago
Tim van der Meij 6ef7120a04 Implement support for Highlight annotations 9 years ago
Tim van der Meij 34918a6666 Implement support for Squiggly annotations 9 years ago
Jonas Jenwald 1d1f175826 Apply Patterns, if necessary, when rendering text 9 years ago
Tim van der Meij c5f4b9750e Implement support for StrikeOut annotations 9 years ago
Jonas Jenwald 2f2ea6160b Ensure that the `baseTransform` is applied when rendering annotations 9 years ago
Tim van der Meij cd28dd34fe Implement support for Underline annotations 9 years ago
Tim van der Meij 7d43971f54 Implement support for Popup annotations 9 years ago
Jonas Jenwald ee0d522187 Use `adjustWidths` for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903) 10 years ago
Jonas Jenwald 4810b7b8fc Fix the `charCodeOf` method in `IdentityToUnicodeMap` in order to prevent text selection from breaking 10 years ago
Yury Delendik 15c9969abe Adds transfer function support for SMask. 10 years ago
Brendan Dahl 87762afec4 Remove glyph id's outside the range of valid glyphs. 10 years ago
Daan Sprenkels a9081653fc shading-pattern: While drawing patterns, transform to the baseTransform first 10 years ago
Jonas Jenwald 6dfe53b976 [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that enables replacing of all whitespace with standard spaces in the textLayer (issue 6612) 10 years ago
Jonas Jenwald 055573fc83 Replace the unavailable linked test-case for issue 1055 with a reduced test-case 10 years ago