2716 Commits (fd4428136b6a2dffb31b88f9b6da724623c5e8c5)

Author SHA1 Message Date
Jonas Jenwald cb5f9df0c8 [EnhanceTextSelection] Make `expandTextDivs` more efficient by updating all styles at once instead of piecewise 9 years ago
Tim van der Meij 323e86c442 Text widget annotations: implement unit testing and sanitize data values 9 years ago
Jonas Jenwald 356b321f6d Fallback to the `StandardEncoding` for Nonsymbolic fonts without `/Encoding` entry (issue 7580) 9 years ago
Yash Srivastav 4e428c7675
Fix lint warnings in URL polyfill 9 years ago
Yury Delendik 160b176109 Adding "proper" message port for fake worker. 9 years ago
Jonas Jenwald f620f61887 Change `src/core/jpx.js` to use the `error` utility function instead of using `throw new Error` 9 years ago
Jonas Jenwald 325f7afcca For embedded Type1 fonts without included `ToUnicode`/`Encoding` data, attempt to improve text selection by using the `builtInEncoding` to amend the `toUnicode` map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142) 9 years ago
Tim van der Meij be485f59ab Text widget annotations: implement maximum length and text alignment 9 years ago
Jonas Jenwald 0b75f63c03 Don't duplicate the first entry in the `charCodeToGlyphId` map for CIDFontType2 fonts with a `CIDToGIDMap` that already mapped the first entry to a non-zero `glyphId` (issue 7544) 9 years ago
Tim van der Meij e686db250c Render interactive form (AcroForm) text widget annotations 9 years ago
Jonas Jenwald 44b75c01a1 Check that Type1C fonts does not actually contain OpenType font files (issue 7598) 9 years ago
Tim van der Meij 576f742047 Improve the structure for widget annotations 9 years ago
Jonas Jenwald 37998076c9 In `display/api.js` ensure that we always reject with an `Error` in `JpegDecode`, and adjust a couple of other rejection sites as well 9 years ago
Tim van der Meij 96593571eb Optimize scale calculation in `text_layer.js` 9 years ago
Jonas Jenwald a35773ec8c Change `src/core/jpg.js` to use the `error` utility function instead of `throw`ing 9 years ago
Tim van der Meij b3818d5c36 Replace `div.dataset` with a `WeakMap` in `text_layer.js` 9 years ago
Tim van der Meij b10add14f3 Refactor `text_layer.js` to pass the task as a parameter 9 years ago
Tim van der Meij 7c961b6b7a Minor code style improvements after #7539 9 years ago
Jeremy Press 6faa84abdb Continuing fairexpand #6663 9 years ago
Jonas Jenwald 1bbc694ac3 Assign the `quantizationTables` after parsing the entire JPEG image, to prevent issues when the DQT (Define Quantization Tables) marker is encountered after SOF{n} (Start of Frame) markers (issue 7406) 9 years ago
Jonas Jenwald 088ce6c009 Add a unit-test to check that `ProblematicCharRanges` contains valid entries 9 years ago
Jonas Jenwald 78889646c8 Create a fallback annotation `id` for entries in `Annots` dictionaries that are not indirect objects (issue 7569) 9 years ago
Jonas Jenwald 5379749d4b Try to prevent `CanvasGraphics_getSinglePixelWidth` from intermittently returning incorrect values in Firefox (issue 7188) 9 years ago
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 83ce6f0b6d Adjust the (applicable) existing `isName` callsites to use the new `isName(v, name)` version of the function 9 years ago
Jonas Jenwald af636aae96 Add a parameter to the `isName` function that enables checking not just that something is a `Name`, but also that the actual `name` properties matches 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 390c02a3e9 Attempt to cache fonts that are direct objects (i.e. `Dict`s), as opposed to `Ref`s, to prevent re-rendering after `cleanup` from breaking (issue 7403 and issue 7402) 9 years ago
Jonas Jenwald 2e9cd3ea64 Slightly refactor the `fontRef` handling in `PartialEvaluator_loadFont` (issue 7403 and issue 7402) 9 years ago
Jonas Jenwald f297e4d17c [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that controls whether `PartialEvaluator_getTextContent` will attempt to combine same line text items 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
klemens 6f03f62327 trivial spelling fixes 9 years ago
Jonas Jenwald 8f4ec669d0 Remove the obsolete `MozBlobBuilder` fallback from the `createBlob` utility function 9 years ago
Jonas Jenwald 51e46fa1a7 Change the `warn` to `info` in `recoverGlyphName` to reduce the console spam 9 years ago
Simon Cornelius P. Umacob d872fc90b9 Expose the text widget's maximum length. 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 c1ca268ef3 Skip mapping of glyphs to Unicode "Ideographic space" (issue 7416) 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 a36a946976 Move the `isSpace` utility function from core/parser.js to shared/util.js 9 years ago
Jonas Jenwald b02d560ae0 Fix errors in `setGState` in `PartialEvaluator_getTextContent` that prevents text-selection from working properly 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 b354682dd6 [api-minor] Let `LinkAnnotation`/`PDFLinkService_getDestinationHash` return a stringified version of the destination array for explicit destinations 9 years ago
Jonas Jenwald 01ab15a6f1 [api-minor] Let `Catalog_getPageIndex` check that the `Ref` actually points to a /Page dictionary 9 years ago
Jonas Jenwald 7ddb0bc718 Attempt to combine text runs positioned with `setTextMatrix` 9 years ago
Tim van der Meij 6a7012aaca Remove unused variables 9 years ago
Jonas Jenwald 182d33800a Ignore 'endobj' commands inside of `ObjStm` streams (issue 5241, bug 898610, bug 1037816) 9 years ago